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

Show a message saying invalid graphql endpoint if it cannot introspect #18

Open
karthikvt26 opened this issue Aug 7, 2018 · 6 comments
Labels

Comments

@karthikvt26
Copy link

➜ ~ gq http://localhost:8080

Error: Network error: Unexpected token N in JSON at position 0
at new ApolloError (~/.nvm/versions/node/v10.1.0/lib/node_modules/graphqurl/node_modules/apollo-client/bundle.umd.js:124:32)
at ~/.nvm/versions/node/v10.1.0/lib/node_modules/graphqurl/node_modules/apollo-client/bundle.umd.js:1248:45
at ~/.nvm/versions/node/v10.1.0/lib/node_modules/graphqurl/node_modules/apollo-client/bundle.umd.js:1680:21
at Array.forEach ()
at /.nvm/versions/node/v10.1.0/lib/node_modules/graphqurl/node_modules/apollo-client/bundle.umd.js:1679:22
at Map.forEach ()
at QueryManager.broadcastQueries (
/.nvm/versions/node/v10.1.0/lib/node_modules/graphqurl/node_modules/apollo-client/bundle.umd.js:1672:26)
at ~/.nvm/versions/node/v10.1.0/lib/node_modules/graphqurl/node_modules/apollo-client/bundle.umd.js:1175:35

Expectation: Invalid GraphQL endpoint.

@UtkarshGupta-CS
Copy link

UtkarshGupta-CS commented Oct 4, 2018

@karthikvt26 Is http://localhost:8080/ your graphql endpoint?

Usually, you can set custom graphql endpoint like http://localhost:8080/graphql or http://localhost:8080/graphqlApi.

@tomodutch
Copy link

I would like to pick this up

@chtnnh
Copy link

chtnnh commented Oct 26, 2021

Hey! Can I pick this up @shahidhk @shraddhaag? Seems like a good place to start!

@shraddhaag
Copy link
Contributor

Hey @chtnnh go ahead! Let us know if you need any help :)

@chtnnh
Copy link

chtnnh commented Oct 27, 2021

Hey @shraddhaag ! Thank you for the confirmation!

Could you help me setup graphqurl on my local? I am running into issue #103

@chtnnh
Copy link

chtnnh commented Nov 2, 2021

Gentle ping @shraddhaag

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

Successfully merging a pull request may close this issue.

6 participants