graphqurl icon indicating copy to clipboard operation
graphqurl copied to clipboard

Show a message saying `invalid` graphql endpoint if it cannot introspect

Open karthikvt26 opened this issue 5 years ago • 6 comments

➜ ~ 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.

karthikvt26 avatar Aug 07 '18 11:08 karthikvt26

@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.

UtkarshGupta-CS avatar Oct 04 '18 12:10 UtkarshGupta-CS

I would like to pick this up

tomodutch avatar Oct 05 '18 17:10 tomodutch

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

chtnnh avatar Oct 26 '21 14:10 chtnnh

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

shraddhaag avatar Oct 27 '21 04:10 shraddhaag

Hey @ShraddhaAg ! Thank you for the confirmation!

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

chtnnh avatar Oct 27 '21 05:10 chtnnh

Gentle ping @ShraddhaAg

chtnnh avatar Nov 02 '21 18:11 chtnnh