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

UTF-8 Encoding Latin-1 Bug in HTML files #137

Open
flooie opened this issue May 12, 2022 · 2 comments
Open

UTF-8 Encoding Latin-1 Bug in HTML files #137

flooie opened this issue May 12, 2022 · 2 comments
Assignees

Comments

@flooie
Copy link
Collaborator

flooie commented May 12, 2022

Unfortunately, we are experiencing occasional crashes on CL from the inability to extract HTML from certain HTML files.

These occur mostly around HTML files downloads from the NY lower courts, with messages like

*Error: 'utf-8' codec can't decode byte 0xe9 in position 437. Having gone thru a number of them I think this is a
latin-1 utf8 encoding bug.

Soo...

I've reviewed the HTML text extraction and found atleast one bug in the unicode/decode encoding part of the loop. If utf8 fails it doesnt bother looping thru the other encodings. But I'm not sure that is the source of the error. So, for now I've updated the error messages, fixed that bug and I expect to wait and see if my improved error messages can catch the bug more directly.

@flooie flooie self-assigned this May 12, 2022
@flooie
Copy link
Collaborator Author

flooie commented May 12, 2022

Sentry issue: COURTLISTENER-2JJ

1 similar comment
@sentry-io
Copy link

sentry-io bot commented May 12, 2022

Sentry issue: COURTLISTENER-2JJ

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