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
I want to catch the error of when the GraphQL endpoint returns the error code 400 - 403, and NOT an error related to the incorrect schema, for example.
I would know what NameError I should assign to except block to be able to print error messages in a friendly way to the user.
The text was updated successfully, but these errors were encountered:
This is not really documented except maybe in the source code
You can check this comment explaining the situation.
A 40x error should normally generate a TransportServerError but only if we did not receive a valid GraphQL response and will in the next release put the http code in the TransportServerError exception.
Hello!
Is there any documentation about error handling?
I want to catch the error of when the GraphQL endpoint returns the error code 400 - 403, and NOT an error related to the incorrect schema, for example.
I would know what NameError I should assign to except block to be able to print error messages in a friendly way to the user.
The text was updated successfully, but these errors were encountered: