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
GeventSubscriptionServer ignore any schema validation errors.
I use Altair GraphQL client. When I send subscription request with schema text errors (for example: wrong field name), this error is covered by GeventSubscriptionServer and just raise "A subscription must return an observable"
I think problem in following lines in gevent.py, line 74:75:
assert isinstance(execution_result, Observable), \ "A subscription must return an observable"
There's check only for Observable, but in case of schema error its return ExecutionResult object with errors, then assert is failed, another error is raising
What I Did
Any subscription query with any schema error
The text was updated successfully, but these errors were encountered:
Description
GeventSubscriptionServer ignore any schema validation errors.
I use Altair GraphQL client. When I send subscription request with schema text errors (for example: wrong field name), this error is covered by GeventSubscriptionServer and just raise "A subscription must return an observable"
I think problem in following lines in
gevent.py
, line 74:75:assert isinstance(execution_result, Observable), \ "A subscription must return an observable"
There's check only for Observable, but in case of schema error its return ExecutionResult object with errors, then assert is failed, another error is raising
What I Did
Any subscription query with any schema error
The text was updated successfully, but these errors were encountered: