500 Internal Server Error returned when trying an introspection
See original GitHub issueI’m trying to use this GraphQL API in Swift, I’m currently using the Apollo library in my project,
and to make that library to work I need to download the schema.json
as specified over there: Apollo downloading chema.
For downloading this schema Apollo provide another library: Apollo Codegen that will download the schema for you.
So I’ve created my token with the authentication guide and run this command line:
$ apollo-codegen download-schema https://api.yelp.com/v3/graphql --output schema.json --header "Authorization: Bearer ###########"
and it return me:
No introspection query result data found, server responded with: {"message":"The server has either erred or is incapable of performing the requested operation.\n\n\n\n\n","code":"500 Internal Server Error","title":"Internal Server Error"}
So I’ve tried one more tool to download the schema to make sure that is not the tool the problem. And with the library graphql-js-schema-fetch I’m receiving the same kind of error:
"The server has either erred or is incapable of performing the requested operation.\n\n\n\n\n","code":"500 Internal Server Error","title":"Internal Server Error"
Maybe I’m missing something, thanks for the help !
Issue Analytics
- State:
- Created 6 years ago
- Comments:38 (10 by maintainers)
Hey everyone, I’ve got a fix in-flight but it’ll be a few days before I can push it out. I have a few more kinks I need to iron out and it’ll be set, I’ll keep everyone posted on progress.
Hey everyone, I pushed out a fixed for this. I’ve double checked that apollo-codegen works now. This change also changed the default behavior for the API and expects JSON requests by default. Regular GraphQL requests still work if you pass in the content type header
Content-Type: application/graphql
.I put up a small page here explaining: https://www.yelp.com/developers/graphql/guides/requests.
Closing this issue for now, let me know if anything else is still busted!