question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

500 Internal Server Error returned when trying an introspection

See original GitHub issue

I’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:closed
  • Created 6 years ago
  • Comments:38 (10 by maintainers)

github_iconTop GitHub Comments

5reactions
tomelmcommented, Jul 21, 2017

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.

3reactions
tomelmcommented, Jul 25, 2017

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!

Read more comments on GitHub >

github_iconTop Results From Across the Web

HTTP 500 Internal Server Error: What It Means & How to Fix It
An HTTP 500 internal server error is a general error message. It covers unexpected issues that don't fit into existing error codes. HTTP...
Read more >
What is a 500 Internal Server Error? - Allconnect.com
A 500 Internal Server Error is an umbrella term for several issues often involving the server of the website you're trying to reach....
Read more >
The remote server returned an error: (500) Internal Server Error
Hello,. I am using an URL trying to retreive information from an API. When I paste this URL in the Chrome browser, I...
Read more >
AFNetwoking POST call returns 500 internal server error but ...
Sometimes i would get a 500 internal server error although the server ... on the server side, particularly the System.reflection DLL file.
Read more >
Rover CLI error codes - Apollo GraphQL Docs
This is most likely caused by an invalid endpoint or headers, causing the server to return something that is not JSON (like an...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found