Skip to content

FormatException when trying to pass in Basic-Auth credentials #133

Description

@jxh2

FormatException: Invalid radix-10 number (at character 1)
notmyactualpassword@example.com
^

#0 int._handleFormatError (dart:core-patch/integers_patch.dart:126:5)
#1 int._parseRadix (dart:core-patch/integers_patch.dart:152:16)
#2 int._parse (dart:core-patch/integers_patch.dart:98:12)
#3 int.parse (dart:core-patch/integers_patch.dart:60:12)
#4 new ServerInfo (package:linkcheck/src/server_info.dart:47:19)
#5 crawl. (package:linkcheck/src/crawl.dart:83:21)
#6 SetBase.forEach (dart:collection/set.dart:143:30)
#7 crawl (package:linkcheck/src/crawl.dart:82:45)
#8 run (package:linkcheck/linkcheck.dart:277:24)
#9 main. (file:///Users/jxh/.pub-cache/hosted/pub.dev/linkcheck-3.0.0/bin/linkcheck.dart:9:22)
#10 _rootRun (dart:async/zone.dart:1399:13)
#11 _CustomZone.run (dart:async/zone.dart:1301:19)
#12 _runZoned (dart:async/zone.dart:1804:10)
#13 runZonedGuarded (dart:async/zone.dart:1792:12)
#14 main (file:///Users/jxh/.pub-cache/hosted/pub.dev/linkcheck-3.0.0/bin/linkcheck.dart:7:9)
#15 _delayEntrypointInvocation. (dart:isolate-patch/isolate_patch.dart:295:33)
#16 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)


I had run it with .pub-cache/bin/linkcheck http://myusername:notmyactualpassword@example.com not knowing any other way to have it work with a site requiring Basic-Auth. Interesting that it ate the username before giving up looking for (I gather) a port number. This is the old, old URL format user:password@host[:port].

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions