swapi-graphene icon indicating copy to clipboard operation
swapi-graphene copied to clipboard

Get introspective schema on client side

Open nerdyator opened this issue 6 years ago • 1 comments

Hello Team,

Im trying to get introspective schema on my android client. for that Im using following command. apollo-codegen download-schema http://swapi.graphene-python.org/--output schema.json

But it returns me following error: error: Error while fetching introspection query result: invalid json response body at http://swapi.graphene-python.org/ reason: Unexpected token < in JSON at position 1

I require schema.json at client side to query the server.

Kindly guide. Thank you.

nerdyator avatar Jul 12 '18 15:07 nerdyator

I'm late to this, but you're trying to get a JSON response from an HTML landing page.

Try the same action on the actual GraphQL endpoint: http://swapi.graphene-python.org/graphql

ahokinson avatar Nov 01 '18 11:11 ahokinson