-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Loading query for ever when there are syntax errors #171
Comments
@nicolaslopezj I'd be surprised if this was actually happening and we hadn't caught it yet, but it's certainly possible. Could you try and make a PR with a failing test? Thanks! |
I did the test and it passed, took another look into my code and realized that I was having an error in the console.error(`GraphQL Error: ${error.message}`)
console.error(`At ${error.path[0]}`) With no path, it was giving the error: (STDERR) GraphQL Error: Cannot read property '0' of undefined We should wrap |
I've noticed that each time I run a query with a error it stays loading for a lot of time and then it responds:
In the server it logs
I think we are missing a
try/catch
in the server.I'm using Apollo with Meteor.
Is anyone else having this error?
The text was updated successfully, but these errors were encountered: