question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uncaught Error: Mode graphql failed to advance stream.

See original GitHub issue

I am trying to use graphiql with a gatsby project and I am experiencing the same issue described in #163. As the author of that issue wrote, I can’t type anything into the editor. The editor space is just blank. When looking at the developer tools I see:

Uncaught Error: Mode graphql failed to advance stream.

I’ve tried clearing the local storage, and that doesn’t do anything. I believe this issue originated when I accidentally hit option-space instead of ctrl-space, which I’ve seen reported as an issue with another plugin:

https://github.com/jimkyndemeyer/js-graphql-intellij-plugin/issues/33

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:31 (17 by maintainers)

github_iconTop GitHub Comments

50reactions
benjiecommented, Jan 1, 2019

This seems to happen when the data in localStorage cannot be restored. Unfortunately clearing localStorage and then reloading does not resolve it because GraphiQL writes to local storage when the page reloads.

I solved this in Chrome by:

  1. Open DevTools
  2. Go to Application > Local Storage > http://localhost (or whatever)
  3. Press the “Clear All” button (🚫)
  4. Chrome Menu > More Tools > Task Manager
  5. Find the relevant tab and kill it (don’t give it a chance to write to localStorage)
  6. Reload the killed page
34reactions
benjiecommented, Jan 1, 2019

Alternatively, run the following JS snippet and then reload the page:

localStorage.clear(); localStorage.setItem = () => {}

Read more comments on GitHub >

github_iconTop Results From Across the Web

Shopify GraphiQL App crashing
Error on browser console is: 95a748ef8046c36a4e505f5b6233ec24.jpg:1 GET. ... Uncaught Error: Mode graphql failed to advance stream. at an ...
Read more >
Full Stack Error Handling with GraphQL and Apollo
This could be caused by a downstream API or database failure, or some other program bug. Where the error occurred: graphQLErrors vs networkError....
Read more >
Troubleshooting JSS Next.js apps - Sitecore Documentation
GraphiQL is blank, and developer tools show "Error: Mode graphql failed to advance stream". You might encounter this problem when the ...
Read more >
Resolve unauth errors for GraphQL requests in AWS AppSync
401 Unauthorized: The request is denied by either AWS AppSync or the authorization mode because the credentials are missing or invalid. 200 OK ......
Read more >
Building a GraphQL API in Go using gqlgen | by Jigar - Servian
gqlgen generates some dummy resolvers that simply panic with an error message not implemented . These are in src/cmd/go-graphql/graph/schema.resolvers.go.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found