-
Notifications
You must be signed in to change notification settings - Fork 120
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
TypeError: Invalid URL for test on Windows #298
Comments
It seems that
It's possible to work around the IPv6 issue by setting the environment variable |
Logs with workaround for IPv6 problem added. In this case, instead of 7 test failing, the number of failed tests is reduced to 3.
|
Code for fixing the IPv6 part was there: https://github.com/tcort/markdown-link-check/pull/294/files |
Perhaps this PR should be reactivated? That would however only be an advantage if the other Windows issues are going to be addressed. I checked locally on Ubuntu 22.04 with a default network setup and there were no problems running
|
It looks like an "upstream" issue with the windows path, there: https://github.com/tcort/link-check/blob/cefe9ccf2db982a93d53261d9481415e567b5635/index.js#L21 const url = link.startsWith('#') ? link : new URL(link, opts.baseUrl); or a wrong path in tests:
|
This issue is no longer reproducible in |
Issue
Running the test suite
npm test
on Microsoft Windows 11 results inTypeError: Invalid URL
for 7 of the tests.Repro steps
markdown-link-checkv3.12.0
Windows 11
Node.js
v20.11.1
(LTS)Logs
The text was updated successfully, but these errors were encountered: