skevy / graphiql-app

Light, Electron-based Wrapper around GraphiQL
MIT License
2.96k stars 336 forks source link

Not working #121

Closed nanandn closed 5 years ago

nanandn commented 6 years ago

I just installed 0.7.2 version. Doesn't work. Doesn't load the shema. 'Edit HTTP headers' doesn't do anything.

The same URL (http://localhost:8080/graphiql) works in the browser. Any idea why this app won't work? screen shot 2018-04-05 at 1 43 18 pm

gjtorikian commented 6 years ago

Please try updating and see if that fixes the issue. The latest version is 0.7.2.

nanandn commented 6 years ago

I am using 0.7.2 I tried uninstall and re-install. Trird installimg using brew and the dmg image.

Same problem.

TimoPurzner commented 6 years ago

Your endpoint needs to be graphql not graphiql

nanandn commented 6 years ago

Cool. That works. Since the endpoint was graphiql in the browser, I was using that. "graphql" works.

Thanks Anand

nanandn commented 6 years ago

However, GET is not working. Only POST works. GET gives an error "java.lang.RuntimeException: variables should be either an object or a string"

TimoPurzner commented 6 years ago

I mad the same mistake, graphiql is only the url for the website. The graphiql website just use as default endpoint /graphql and the electron app let you choose your own endpoint.

Yeah Graphql only supports POST requests