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
JSON.parse errors are not handled nicely like other errors are. A custom error class should be exported, and the instances should have a 400 status code for a correct response to the client.
To duplicate the issue: With a basic server setup like the example API, send a multipart GraphQL request with a JSON syntax error in one of the JSON form fields. The response to the client will be a 500 status, when it should be a 400.
The text was updated successfully, but these errors were encountered:
JSON.parse
errors are not handled nicely like other errors are. A custom error class should be exported, and the instances should have a 400 status code for a correct response to the client.See:
To duplicate the issue: With a basic server setup like the example API, send a multipart GraphQL request with a JSON syntax error in one of the JSON form fields. The response to the client will be a 500 status, when it should be a 400.
The text was updated successfully, but these errors were encountered: