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

Get introspective schema on client side #14

Open
nerdyator opened this issue Jul 12, 2018 · 1 comment
Open

Get introspective schema on client side #14

nerdyator opened this issue Jul 12, 2018 · 1 comment

Comments

@nerdyator
Copy link

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.

@ahokinson
Copy link

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

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

No branches or pull requests

2 participants