-
Notifications
You must be signed in to change notification settings - Fork 51
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
Unhandled exception #40
Comments
I am using a MacOS High Sierra 10.13.6 |
Sorry I didn't see this earlier. Could you please share the HTML file this failed on? If you're not sure, please share the result of |
I'm having a similar problem, I think. Here's a page I've put on my server under the name <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Example Title</title>
<style type="text/css">
</style>
</head>
<body>
</body>
</html> (Disclaimer: this is a file from an old site. I promise I don't use PHP for anything modern.) Here's a log from my terminal illustrating the failure:
Is it possible that this is specifically a PHP-related thing? Despite the PHP URL, the result of an HTTP request should be a valid HTML document, so I'm not sure why it would fail. Using linkcheck 2.0.9 with Dart 2.4.1 on Debian 10. Thanks for the excellent tool! |
Hi, thanks for the detailed report! It looks like the local server you're using isn't reporting the Content-Type (mime type). I fixed the bug that crashes I said "looks like" above because I'm not 100% sure. It's possible there's some other reason why The fix will land shortly as |
Thanks for pushing this update! I've just checked the server I'm using. When accessing a page which doesn't crash
The page that does crash
With 2.0.10, I'm now getting a different exception:
It appears that this occurs when the charset is missing from the Thanks for the help on this! |
As a note, I was not a maintainer closing this issue, so I'm not permitted to re-open it. I just learned that about GitHub. :) |
This is excellent info, @zepalmer! I'll look into this. No promises on speed, though. :/ |
No problem! Thanks again for the excellent tool. This is part of my workflow for updating my course website and speeds things up a lot. If it takes a while, that's fine; if it bugs me, I'll go learn Dart and send you a PR. :) |
Ooof, this took way longer than I anticipated, but it's finally fixed in version |
The text was updated successfully, but these errors were encountered: