Open axiomofjoy opened 2 weeks ago
Can confirm this - the problem is, a subscriptions never sets an execution_context.result (it is always None) and therefore the error check failes.
I think the problem is send_next because it just formats the error and in line 381 it send the message without going through the gql middlewares
Same problem in the graphql-ws implementation here
The
MaskErrors
schema extension does not seem to mask errors for subscriptions. I am running on the latest version ofstrawberry
. Example included below:The errors are masked for queries:
But not for subscriptions:
Describe the Bug
I expect the
MaskErrors
extension to mask my errors for subscriptions as well as queries and mutations, but it does not appear to do so.System Information
Upvote & Fund