Skip to content

Commit

Permalink
Fix error handling for subgraphs
Browse files Browse the repository at this point in the history
The new rules are:
1. If the content type of the response is invalid then we won't try to parse.
2. If there is an HTTP status error it will always be attached as a graphql error.
3. If an HTTP status is not 2xx and the body was empty then don't report the parse error.

Fixes #3141
  • Loading branch information
bryn committed Jun 27, 2023
1 parent 6f459b7 commit eee38bf
Showing 1 changed file with 279 additions and 46 deletions.
Loading

0 comments on commit eee38bf

Please sign in to comment.