Replies: 2 comments
-
Subscriptions should only work with websockets, so fact that even subscription's resolver is called is a bug in Ariadne. |
Beta Was this translation helpful? Give feedback.
-
We'll fix this in Ariadne 0.23 so trying to do a subscription without using a WebSocket will return an error. For posterity what happened here is there are two query execution strategies in GraphQL:
|
Beta Was this translation helpful? Give feedback.
-
Hello there,
very similar to Issue 320 I experienced errors in my productive app that subscriptions are not calling the source definition. Going back to the documentary example i experience the same problem:
Calling with uvicorn app:app
Now i am trying to call the subsricptions with
Ending up with the error message
unsupported operand type(s) for +: 'NoneType' and 'int'
as count+1 cannot be computed as count is None as the source is never called.python 3.10.5, ariadne 0.22, httpx 0.22.6, uvicorn 0.27.1
Help is pretty much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions