GeventSubscriptionServer ignore schema validation errors
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 55/100
Direzione di ricerca
Inizia da gevent.py intorno alle righe 74–75 e riproduci una subscription contenente un campo non valido utilizzando la configurazione GraphQL AioWS indicata. Traccia il modo in cui gli errori di validazione dello schema producono un ExecutionResult, quindi verifica che tali errori vengano restituiti invece di essere sostituiti dall’assertion “A subscription must return an observable”.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
- 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
- Lingua principale
- Python
- Stelle
- 270
- Fork
- 85
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di graphql-python/graphql-ws
-
using this with signals Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
graphql-python/graphql-ws#95 · 1 reazione ·
-
graphql-ws-next Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
graphql-python/graphql-ws#90 · 4 commenti ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
graphql-python/graphql-ws#89 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 25/100
graphql-python/graphql-ws#87 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
graphql-python/graphql-ws#84 · 6 commenti · 3 reazioni ·
Tutte le issue di graphql-python/graphql-ws
Issue simili
-
essnmx good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
-
[Feature] 奇物选择添加优先级 Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
syfoud/Simulated_Scepter#174 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Giskard-AI/giskard-oss#2840 · 1 commento ·
-
A claim comment carrying the issue number is silently declined while the workflow reports success Apertaarea: repo bug perceived difficulty: 2
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
yeti-platform/yeti#1380 ·