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
{{ message }}
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.
apollo-link-http should make the contents of the error available to its clients even if it's on a 400, as long as JSON parses properly. Or perhaps apollo-server should not make these errors return 400. I'm not sure.
The text was updated successfully, but these errors were encountered:
apollo-server
turns any response witherror
and nodata
into a 400. An easy way to trigger such a response is to ask for a field that doesn't exist, egquery { xxxx }
.apollo-link-http
turns that into an error which doesn't actually have the JSON on it.It does put the response on the error, but the JSON was already read so you can't re-read it from the response.
Also, it puts an error describing the fact that this was a 400 response onto the thus-misleadingly-named
parseError
field.This is the root cause behind [errors showing up in the devtools as
[object Object]
]: apollographql/apollo-client-devtools#81apollo-link-http should make the contents of the error available to its clients even if it's on a 400, as long as JSON parses properly. Or perhaps apollo-server should not make these errors return 400. I'm not sure.
The text was updated successfully, but these errors were encountered: