You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error thrown during subscription execution results in websocket connection terminating due to secondary unhandled error whilst trying to handle the first error. This is related to the reworking of errors in #2036 and related PRs.
Steps to reproduce
Plugin:
makeExtendSchemaPlugin({typeDefs: gql` extend type Subscription { error: Int } `,plans: {Subscription: {error: {subscribePlan(){returnlambda(constant(3),()=>{thrownewError("Testing error");});},},},},})
GraphQL request:
subscription {
error
}
Expected results
Error rendered in GraphiQL but socket connection not terminated.
Actual results
{
"errors": [
{
"message": "Socket closed with event 4500 Cannot read properties of undefined (reading 'message')",
"stack": "Error: Socket closed with event 4500 Cannot read properties of undefined (reading 'message')\n at Object.error (http://127.0.0.1:5678/:49:1285975)\n at http://127.0.0.1:5678/:49:474548"
}
]
}
Summary
Error thrown during subscription execution results in websocket connection terminating due to secondary unhandled error whilst trying to handle the first error. This is related to the reworking of errors in #2036 and related PRs.
Steps to reproduce
Plugin:
GraphQL request:
Expected results
Error rendered in GraphiQL but socket connection not terminated.
Actual results
Additional context
Originally reported by @gitrojones in benjie/ouch-my-finger#12
The text was updated successfully, but these errors were encountered: