macOS 10.13.4
v1.5.4
apollo-server-core responds with a 400 status code if there are errors in the request as received from the client. Playground doesn't show the server response, instead it prints:
{
"error": "Response not successful: Received status code 400"
}
When it receives a response with a 400 status code, Playground ensures the response is still JSON and parses it. If it has GraphQL errors it prints them.
Submit an invalid client request to a GraphQL server based on Apollo, e.g. pass an array variable where a string is expected.
Got same problem after upgrade prisma (older versions works fine). This error when use graphql-yoga via yarn start and graphql playground both.
Playground version 1.5.13
We are using GraphQL Playground Lambda Middleware and see this behaviour in 1.5.x. 1.4.x and older work fine.
A very simple type that has a mandatory argument called like so:
query{ getUser {
name
}}
In 1.4.x:
{
"errors": [
{
"message": "Field \"getUser\" argument \"email\" of type \"String!\" is required but not provided.",
"locations": [
{
"line": 2,
"column": 3
}
]
}
]
}
In 1.5x:
{
"error": "Response not successful: Received status code 400"
}
Most helpful comment
We are using GraphQL Playground Lambda Middleware and see this behaviour in 1.5.x. 1.4.x and older work fine.
A very simple type that has a mandatory argument called like so:
In 1.4.x:
In 1.5x: