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.

Access GraphQL errors when HTTP status code is 500

See original GitHub issue

Is there a way to prevent Villus from imposing a [Network] Internal Server Error when the GraphQL server responds with a 500 status code ? When I configure the server to send 200 on error instead, I can access the GraphQL errors returned from the combined error just fine.

Maybe add some kind of custom error handling / formatting feature ?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
logaretmcommented, Feb 26, 2021

Oh, the batch is culprit, the fetch plugin was updated to support this use case.\

Thank you for reporting this, will fix it later today.

0reactions
logaretmcommented, Feb 27, 2021

Published with rc.13

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error handling - Apollo GraphQL Docs
Setting HTTP status code and headers · If Apollo Server hasn't correctly started up or is in the process of shutting down, it...
Read more >
Status Codes in GraphQL - Medium
As you all know, REST APIs use status codes as a part of the response (200-ok, 404-not found, 500-internal server error etc.). In...
Read more >
HTTP 500 error code returned from APIs - monday Community
Hi,. This is about graphQl APIs which is returning HTTP 500 error when invalid or non-existing ID is passed in the query. For...
Read more >
Top GraphQL Errors and How to fix them
Error handling in GraphQL is different on both server and client side tooling. You no longer are looking at HTTP status codes to...
Read more >
GraphQL: How to resolve an HTTP Error 500 - WorkflowGen
Verify that iisnode, URL Rewrite, and Node. · Verify that IIS Anonymous authentication mode is disabled in the graphql node. · Verify that...
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