-
Notifications
You must be signed in to change notification settings - Fork 15
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
Handle ResponseContent is not JSON #164
Comments
parkhomenko
pushed a commit
that referenced
this issue
Oct 22, 2021
DRV-271: Add type conversion functions
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If a non 2XX error code is received, then
resultRequest.ResponseContent
is deserialized by Newtonsoft.Json.faunadb-csharp/FaunaDB.Client/Client/FaunaClient.cs
Line 183 in a5c58cf
However, the ResponseContent received is sometimes not JSON. One user received the following error; it's possible that the ResponseContent is html rather than a JSON string.
It may be helpful to handle this error more gracefully and provide the user with a better message.
The text was updated successfully, but these errors were encountered: