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

Internal Server Error when receiving invalid JSON. #81

Merged
merged 10 commits into from Oct 28, 2019
Merged

Internal Server Error when receiving invalid JSON. #81

merged 10 commits into from Oct 28, 2019

Conversation

AutumnalDream
Copy link
Contributor

When receiving invalid JSON and content type is "application/json" tartiflette-starlette returns a 500. This catches decode errors and now returns a 400.

@florimondmanca
Copy link
Contributor

Nice little improvement, yup!

Could we add a test for this as well?

@AutumnalDream
Copy link
Contributor Author

@florimondmanca Added test :)

tartiflette_starlette/endpoints.py Outdated Show resolved Hide resolved
tests/test_graphql_api.py Outdated Show resolved Hide resolved
Copy link
Contributor

@florimondmanca florimondmanca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks!

@florimondmanca
Copy link
Contributor

florimondmanca commented Oct 27, 2019

@AutumnalDream There is a conflict, certainly due to the renaming of the package that happened today. Could you rebase your changes from master?

@florimondmanca
Copy link
Contributor

Merging, thanks!

@florimondmanca florimondmanca merged commit 682deeb into tartiflette:master Oct 28, 2019
@florimondmanca
Copy link
Contributor

Released in 0.7.1 :-)

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.

None yet

2 participants