-
-
Notifications
You must be signed in to change notification settings - Fork 509
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
[BUG] thread 'tokio-runtime-worker' panicked at 'called Option::unwrap()
on a None
value
#905
Comments
it's just a place where i used unwrap, thinking it would always be valid, but it isnt 🙃 a quick look at the code in question makes me think the page you're requesting doesn't have a |
After debugging my ass hell out I found which page is blamed for <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Export to PDF</title>
<script type="text/javascript">
window.status='Export to PDF';
</script>
</head>
<frameset rows="0,*"" frameborder="NO" border="0" framespacing="0">
<frame src="" name="topFrame" id="topFrame" title="topFrame" />
<frame src="http://redacted.com/capture/pdf.php?url=" name="mainFrame" id="mainFrame" title="mainFrame" />
</frameset>
<noframes><body>
</body>
</noframes></html> looks like there's indeed a |
ok, the html parser we use doesn't recognize the body tag because it's within the
i'll update ferox to properly handle cases like this. it'll be in the next release. Thanks for tracking this down! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@all-contributors add @ktecv2000 for bugs |
I've put up a pull request to add @ktecv2000! 🎉 |
I think it's similar to issue #563, and I've encountered this issue on version
2.10.0
and2.9.1
I try to remove other unrelated argument as much as possible and this is the shortest command I could possibly reproduce this issue
Error:
thread 'tokio-runtime-worker' panicked at 'called
Option::unwrap()
on aNone
value', src/nlp/document.rs:51:14It might be related to
--collect-words
optionThe text was updated successfully, but these errors were encountered: