-
Notifications
You must be signed in to change notification settings - Fork 165
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Description
The graphQL server throws an InvalidOperationException("Cannot execute request if no query is specified") when HTTP GET is requested on graphql endpoint.
This is a very common scenario (people opening the graphql endpoint in browser). It is causing an internal server error. It would be better if the GraphQL framework could handle this situation. Instead the error is propagated to ASP.NET middleware.
Steps to reproduce
Open url http://{server}/graphql in browser which points to the graphql endpoint.
Expected result
Bad http request (400)
Actual result
Unhandled exception is thrown.
Returned Http Response 500.
psmolinsky
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request