linkcheck icon indicating copy to clipboard operation
linkcheck copied to clipboard

FormatException when trying to pass in Basic-Auth credentials

Open jxh2 opened this issue 1 year ago • 0 comments

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].

jxh2 avatar Apr 19 '24 02:04 jxh2