I'm attempting to use a GraphQL subscriptions over WebSocket
implementation called DjangoChannelsGraphqlWs [1] but in setting it up
I'm getting asyncio.exceptions.CancelledError on connection. I get a
similar error in tests with the asyncio pytest mark.
I've already opened a ticket [2] with the writers of the library where
you may find a lot more details. A more general question would be how to
find the root cause of this exception? which is obviously a symptom and
not the real problem. Debugging with async is a bit of a mess seeing as
the stack doesn't work like a synchronous program. The --pdb flag with
pytest isn't much help
[1]:
https://github.com/datadvance/DjangoChannelsGraphqlWs
[2]:
https://github.com/datadvance/DjangoChannelsGraphqlWs/issues/28