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

Better HTTP error handling on application submission #293

Open
petschekr opened this issue Feb 6, 2020 · 0 comments
Open

Better HTTP error handling on application submission #293

petschekr opened this issue Feb 6, 2020 · 0 comments

Comments

@petschekr
Copy link
Member

For example, when a resume that is too large is uploaded, a 413 Request Entity Too Large error is returned by the file upload middleware. The current code tries to parse the HTML error page as JSON resulting in an opaque Unexpected token < in JSON at position 0 error.

Better error handling would involve user-friendly error messages for common HTTP status codes and a catch-all handler for this that displays the malformed JSON for debugging (e.g. in a "Show details" link)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant