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

UnicodeDecodeError is not handled properly #62

Open
ohnomydjango opened this issue Oct 23, 2024 · 0 comments
Open

UnicodeDecodeError is not handled properly #62

ohnomydjango opened this issue Oct 23, 2024 · 0 comments
Assignees

Comments

@ohnomydjango
Copy link
Contributor

If a request is sent with invalid utf-8 characters that aren't escaped, the package crashes with error:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa0 in position 317: invalid start byte

This will result in a 500 internal server error when it reality it should be a 400 bad request.

The fix here to be to catch the UnicodeDecodeError.

@ohnomydjango ohnomydjango self-assigned this Oct 23, 2024
@ohnomydjango ohnomydjango changed the title UnicodeDecodeError are not handled properly UnicodeDecodeError is not handled properly Oct 23, 2024
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