-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Correct handling when empty GraphQL requests arrive #20293
Comments
/cc @phillip-kruger |
fedinskiy
added a commit
to fedinskiy/quarkus-test-suite
that referenced
this issue
Jan 5, 2022
1 task
fedinskiy
added a commit
to fedinskiy/quarkus-test-suite
that referenced
this issue
Jan 6, 2022
fedinskiy
added a commit
to fedinskiy/quarkus-test-suite
that referenced
this issue
Jan 7, 2022
fedinskiy
added a commit
to fedinskiy/quarkus-test-suite
that referenced
this issue
Jan 10, 2022
fedinskiy
added a commit
to fedinskiy/quarkus-test-suite
that referenced
this issue
Jan 10, 2022
fedinskiy
added a commit
to fedinskiy/quarkus-test-suite
that referenced
this issue
Jan 10, 2022
fedinskiy
added a commit
to fedinskiy/quarkus-test-suite
that referenced
this issue
Jan 10, 2022
fedinskiy
added a commit
to fedinskiy/quarkus-test-suite
that referenced
this issue
Jan 10, 2022
fedinskiy
added a commit
to fedinskiy/quarkus-test-suite
that referenced
this issue
Jan 10, 2022
fedinskiy
added a commit
to quarkus-qe/quarkus-test-suite
that referenced
this issue
Jan 10, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When an empty POST request arrives at the
/graphql
endpoint, the client receives a500 Internal Server Error
and this appears in the log:an empty GET request yields
204 No Content
Expected behavior
I believe that the correct behavior for both cases is to issue
400 Bad Request
, per the spec: https://github.com/graphql/graphql-over-http/blob/40a50a351a887799b3d1550b665b2101b26dcda4/spec/GraphQLOverHTTP.md#unparseable-or-invalid-request-bodyActual behavior
No response
How to Reproduce?
Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: