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

Unrecoverable error when running first against a non-running site #1

Closed
jvliwanag opened this issue Aug 26, 2015 · 8 comments
Closed
Labels

Comments

@jvliwanag
Copy link

Steps to recreate:

  1. Open GraphiQL binary. Point it to a url that's currently not running.
  2. Type in a syntactically valid graphql query: e.g. '{ a }'
  3. Press the 'Play' button.
  4. Start up your graphql server. Change the URL.
  5. Re-run your query. Currently, no output is produced. On the JS console the following error appears:
Uncaught TypeError: Cannot read property 'getQueryType' of undefined -- bundle.js:27

Restarting the app doesn't help.

Workaround:

  1. rm -Rf ~/Library/Application\ Support/graphiql-app/
  2. Make sure you execute your queries against a running server
@skevy
Copy link
Owner

skevy commented Aug 26, 2015

Interesting. I'll look into this. Thanks for reporting!

@skevy skevy added the Blocker label Aug 26, 2015
@KyleAMathews
Copy link
Collaborator

Ran into this as well.

@skevy
Copy link
Owner

skevy commented Sep 5, 2015

Interesting that you guys are saying this is unrecoverable. I get the error (which happens in GraphiQL btw, not in my code), but as soon as I change the URL again (which refreshes the editor), I'm able to complete the query successfully. This is still failing hard for you guys even on the latest version?

@skevy
Copy link
Owner

skevy commented Sep 5, 2015

In general though, I feel like we're running into this error: graphql/graphiql#16

@skevy skevy closed this as completed in b85bcde Sep 5, 2015
@skevy
Copy link
Owner

skevy commented Sep 5, 2015

@KyleAMathews
Copy link
Collaborator

Woot! It's working! Thanks!
screen shot 2015-09-05 at 2 25 20 pm

@skevy
Copy link
Owner

skevy commented Sep 5, 2015

👍

@jvliwanag
Copy link
Author

Took me a long time to check back on this. But everything's working great with the latest release! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants