-
Notifications
You must be signed in to change notification settings - Fork 133
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
Casting Error in GraphQL C# Library #600
Comments
Hi, could you post the complete HTTP response you get when this issue occurs? |
Formatted JSON Output (for readability) {
"error_code": "ComplexityException",
"status_code": 429,
"error_message": "Complexity budget exhausted, query cost 30001 budget remaining 19986 out of 1000000 reset in 3 seconds",
"error_data": {},
"errors": [
"Complexity budget exhausted, query cost 30001 budget remaining 19986 out of 1000000 reset in 3 seconds"
],
"account_id": 2213213
} |
The response does not adhere to the GraphQL Spec. The It is currently not possible to use a custom GraphQLResponse type, the only way would be to clone the code and build yourself a custom version of this library. |
I called this out to the OP in the monday.com community as well. monday.com refuses to acknowledge they do not follow the spec for errors as well. |
We are facing a piquant situation using GraphQLClient's SendQueryAsync method to call Monday.com API. The line goes like this
var response = await graphQLClient.SendQueryAsync(request)
If the server returns a proper JSON it is all fine. However if the server returns a message like Complexity budget exhausted, query cost 30001 budget remaining 29984 out of 1000000 reset in 8 seconds, it throws a message like
How do we configure this graphqlclient to cast the string into GraphQL Error or are we missing something else?
The text was updated successfully, but these errors were encountered: