Skip to content

Add Error Handling for JSON body parsing #74

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

Merged
merged 2 commits into from
Oct 19, 2024
Merged

Conversation

domwebber
Copy link
Contributor

This PR handles the HTTP-500 error that occurs as a result of sending a POST request with the Content-Type: application/json but a non-JSON body.

Resolves #73

@mendhak
Copy link
Owner

mendhak commented Oct 19, 2024

Thanks please can you add a bit in tests.sh to test this as well?

@domwebber
Copy link
Contributor Author

Just added a test for this in 33314c1 - thanks!

@mendhak mendhak merged commit 8fb4ccd into mendhak:master Oct 19, 2024
2 checks passed
@mendhak
Copy link
Owner

mendhak commented Oct 21, 2024

Oops forgot to say, :35 is now pushed I think

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

Successfully merging this pull request may close these issues.

HTTP-500 Error on Invalid JSON with Content-Type: application/json
2 participants