You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Server should respond with HTTP 400 to malformed requests.
Instead of RuntimeException if we can throw JsonParseException then it will be easy to handle that error in GlobalErrorHandler because RuntimeException is very generic and if we handle RuntimeException then it will handle other exceptions also.
Actual Behaviour
Unexpected error occurred: Error deserializing object from JSON: Unexpected character ('q' (code 113)): was expecting double-quote to start field name
at [Source: (byte[]) with 500 error.
Steps To Reproduce
To Reproduce:
Setup a server with any GraphQL schema.
Send POST request to the server with request body set to "Bad request" or any other invalid Json.
See HTTP 500 error instead of HTTP 400.
Environment Information
OS: Windows
Request sent from Postman
micronaut-graphql version=4.1.4
Example Application
No response
Version
4.1.4
The text was updated successfully, but these errors were encountered:
Expected Behavior
Server should respond with HTTP 400 to malformed requests.
Instead of RuntimeException if we can throw JsonParseException then it will be easy to handle that error in GlobalErrorHandler because RuntimeException is very generic and if we handle RuntimeException then it will handle other exceptions also.
Actual Behaviour
Unexpected error occurred: Error deserializing object from JSON: Unexpected character ('q' (code 113)): was expecting double-quote to start field name
at [Source: (byte[]) with 500 error.
Steps To Reproduce
To Reproduce:
Environment Information
OS: Windows
Request sent from Postman
micronaut-graphql version=4.1.4
Example Application
No response
Version
4.1.4
The text was updated successfully, but these errors were encountered: