Open niklasR opened 5 years ago
Just spent two hours trying to debug ApolloServer error formatting because of this, FML.
(NOTE: it also happens for 400 status codes, e.g. GRAPHQL_VALIDATION_FAILED
)
This appears to happen with all non-success status codes. Also, it is happening on the HTML client delivered via CDN.
This issue pertains to the following package(s):
What OS and OS version are you experiencing the issue(s) on?
Mac OS 10.14.1
What version of graphql-playground(-electron/-middleware) are you experiencing the issue(s) on?
Version 1.8.4
What is the expected behavior?
Show Body as it is returned by the server as
What is the actual behavior?
Body shown in error object
What steps may we take to reproduce the behavior?
Set up a GraphQL server that returns a 401 status code without a graphQL error in the body.
Gif showing the same 200 and 401 responses rendered differently: