-
-
Notifications
You must be signed in to change notification settings - Fork 438
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
500 error for unknown types in variable definitions #1936
Comments
Thanks for the report. This issue applies more broadly to any unknown type in any variable definition, see #1943 for reproduction. I think this should be fixed upstream in https://github.com/webonyx/graphql-php. There is a validation rule in the GraphQL specification governing that variables must be input types, but it does not explicitly mention that the defined type must also exist: http://spec.graphql.org/draft/#sec-Variables-Are-Input-Types. I think because of this, no explicit test for proper handling of this case exists in the library. |
I opened a pull request against the reference implementation to add a validation step for this: graphql/graphql-js#3282 |
Looks like this is solved upstream now graphql/graphql-js#3284 |
Describe the bug
It returns 500 server error, if you are sending an unknown type in the orderByDirective.
Expected behavior/Solution
It should send some kind of GraphQL incorrect format response.
Steps to reproduce
orderBy
directiveOutput/Logs
Click to expand
Lighthouse Version
5.23
The text was updated successfully, but these errors were encountered: