Getting asyncio.exceptions.CancelledError when connecting a WebSocket

195 views
Skip to first unread message

mellowce...@gmail.com

unread,
Oct 23, 2019, 9:05:52 AM10/23/19
to django...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages