GeventSubscriptionServer ignore schema validation errors
还没有人认领这个 Issue。
评估
调研方向
从 gevent.py 第 74–75 行附近开始,使用报告中的 GraphQL AioWS 设置重现包含无效字段的 subscription。跟踪 schema 验证错误如何产生 ExecutionResult,然后验证这些错误会被呈现,而不是被断言 “A subscription must return an observable” 替换。
由索引模型根据 Issue 内容生成。
描述
- 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
- 主要语言
- Python
- 星标
- 270
- 派生
- 85
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
graphql-python/graphql-ws 的其他 Issue
-
难度 5/5 一周以上 新手友好度 20/100
graphql-python/graphql-ws#95 · 1 个 reaction ·
-
graphql-ws-next 未关闭
难度 5/5 一周以上 新手友好度 20/100
graphql-python/graphql-ws#90 · 4 条评论 ·
-
难度 3/5 1-2 天 新手友好度 35/100
graphql-python/graphql-ws#89 ·
-
难度 2/5 1-3 小时 新手友好度 25/100
graphql-python/graphql-ws#87 ·
-
难度 4/5 3-5 天 新手友好度 35/100
graphql-python/graphql-ws#84 · 6 条评论 · 3 个 reaction ·
查看 graphql-python/graphql-ws 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
anthropics/skills#1811 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
speaches-ai/speaches#678 ·
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
datalayer/mcp-compose#42 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
conda-forge/spacy-feedstock#177 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
UKGovernmentBEIS/inspect_evals#2523 ·