Skip to content
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

Error occurs but result.error undefined #3136

Closed
wroughtec opened this issue Mar 9, 2018 · 4 comments
Closed

Error occurs but result.error undefined #3136

wroughtec opened this issue Mar 9, 2018 · 4 comments

Comments

@wroughtec
Copy link

Intended outcome:
Expected result.error to have an error or Network status = 8

Actual outcome:
An error occurs but does not trigger queries error handling, ie the result.error is undefined and network status - 7
screen shot 2018-03-09 at 10 02 08
The apollo-link-error seems to pick it up just not the actual query

How to reproduce the issue:
Add a none existent field to the query

Version

Seems to be similar to (?regression):
apollographql/react-apollo#1320

@Elijen
Copy link

Elijen commented Apr 11, 2018

I have the same problem on:
[email protected]
[email protected]

This renders Apollo completely useless.

@andiwinata
Copy link

andiwinata commented May 17, 2018

seems similar with:
apollographql/react-apollo#1546
apollographql/react-apollo#1314

@hwillson
Copy link
Member

hwillson commented Aug 5, 2018

Since this is already being tracked in the React Apollo repo (see #3136 (comment)), I'll close it here. Thanks!

@hwillson hwillson closed this as completed Aug 5, 2018
@sinclairnick
Copy link

I managed to fix this by setting ssrMode: true in the client options, as I am using NextJs. Hope this helps

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants