-
Notifications
You must be signed in to change notification settings - Fork 163
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
GraphiQL results show [object Object]
for errors without data with AC 2.0
#81
Comments
Ah, this seems to specifically happen with certain kinds of errors, like unknown fields. So this query
triggers the issue. |
Looks like the difference between this kind of response which looks good:
and this which doesn't
|
[object Object]
with AC 2.0[object Object]
for errors without data with AC 2.0
May also be the difference between a 200 response and a 400 response. |
Confirmed that it definitely works with AC 1.0. |
OK, this issue needs to be fixed in apollo-link-http, not just in the devtools. It's because of this code which doesn't appear to have an equivalent in the 1.0 createNetworkInterface.
It also misleadingly puts an error on a field called |
Filed apollographql/apollo-link#178 for the underlying issue. |
@evans Now you have fixed the apollo-link issue, can you check to see if this is fixed? |
This issue still occurs with Apollo Client Developer Tools 2.0.6 and |
This is fixed in the newest build! |
This still happens with |
I've also observed this behaviour in |
Using |
Actual response taken from the Network tab:
|
Seeing this with:
|
I just upgraded to AC 2.0 and devtools 2.0.5. When I run a query, I get
[object Object]
as the response instead of JSON.The text was updated successfully, but these errors were encountered: