We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Error
Server Version: Hasura Cloud
Cloud
graphql-ws,messages,error,websocket
The error message provides an object with the errors field set to an array of GraphQLErrors.
errors
GraphQLError
{ "type": "error", "id": "1", "payload": { "errors": [ { "extensions": { "path": "$.selectionSet.somefield", "code": "validation-failed" }, "message": "field \"somefield\" not found in type: 'query_root'" } ] } }
The error message implements the GraphQL over WebSocket Error message.
{ "type": "error", "id": "1", - "payload": { - "errors": [ - { - "extensions": { - "path": "$.selectionSet.somefield", - "code": "validation-failed" - }, - "message": "field \"somefield\" not found in type: 'query_root'" - } - ] - } + "payload": [ + { + "extensions": { + "path": "$.selectionSet.somefield", + "code": "validation-failed" + }, + "message": "field \"somefield\" not found in type: 'query_root'" + } + ] }
graphql-ws
Connection Closed: 4400
Next
GraphQL's ExecutionResult
{ - "type": "error", + "type": "next", "id": "1", "payload": { "errors": [ { "extensions": { "path": "$.selectionSet.somefield", "code": "validation-failed" }, "message": "field \"somefield\" not found in type: 'query_root'" } ] } }
This issue is quite critical for clients using graphql-ws because malformed messages result in immediate connection termination, as per the GraphQL over WebSocket Protocol.
No.
No, I am not familiar with Haskell.
The text was updated successfully, but these errors were encountered:
Merge pull request #1 from paritosh-08/sam/oss/server/graphqlws-error…
ec0f697
…-code fix issues hasura#7706 and hasura#7696
Closed via a886da2
Sorry, something went wrong.
sordina
paritosh-08
Successfully merging a pull request may close this issue.
Version Information
Server Version: Hasura Cloud
Environment
Cloud
Keywords
graphql-ws,messages,error,websocket
What is the current behaviour?
The error message provides an object with the
errors
field set to an array ofGraphQLError
s.What is the expected behaviour?
The error message implements the GraphQL over WebSocket
Error
message.How to reproduce the issue?
graphql-ws
without setting the authorization header (you can use the GraphiQL ❤️ graphql-ws gist)Connection Closed: 4400
because theError
message is malformedScreenshots or Screencast
Any possible solutions?
Error
message when sendingGraphQLError
s as presented above.Next
message to transmit an error as a part of theGraphQL's ExecutionResult
like this:Additional info
This issue is quite critical for clients using
graphql-ws
because malformed messages result in immediate connection termination, as per the GraphQL over WebSocket Protocol.Can you identify the location in the source code where the problem exists?
No.
If the bug is confirmed, would you be willing to submit a PR?
No, I am not familiar with Haskell.
The text was updated successfully, but these errors were encountered: