graphql-python / graphql-python/graphql-ws

GeventSubscriptionServer ignore schema validation errors

Đang mở
#52 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
270
Fork
85
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

* GraphQL AioWS version: 0.3.1
* Python version: Python 3.8.5
* Operating System: Debian

### 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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.