-
Notifications
You must be signed in to change notification settings - Fork 60
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
[RFC] Better error messaging for GraphQuery #209
Comments
Oh lord, that's nice. |
Hey @phillysnow, the v6 client handles this by returning a When making the same query as linked in the issue and above, the client will throw the following error (
Huh, interesting! That seems like an API issue rather than something that should be handled in the client. What do you think @lihbr? |
OK, so the client already returns this info, that's awesome. I agree, we could definitely speak with the dev team about making these error messages more helpful though. |
OK, actually the non-CDN version returns HTML because accessed from a browser (user-agent based?) using tools like Insomnia it returns valid JSON. Definitely shouldn't be handled by the client. |
I'm going to close this since the client already handles this by throwing a |
Issue
When users currently do not correctly format a GraphQuery their queries simply fail.
Solution
The API browser for example returns more specific error messaging:
Could we pull this error messaging into the Client?
Forum
https://community.prismic.io/t/not-able-to-query-slice-machine-slices-with-graphquery/7030/24
The text was updated successfully, but these errors were encountered: