Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jxh2 opened this issue Apr 19, 2024 · 0 comments
Open

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

jxh2 opened this issue Apr 19, 2024 · 0 comments

Comments

@jxh2
Copy link

jxh2 commented Apr 19, 2024

FormatException: Invalid radix-10 number (at character 1)
[email protected]
^

#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:[email protected] 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].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant