You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that upon any websocket_disconnect call in a Consumer Class which inherits from AsyncConsumer we get the following error.
Application instance <Task pending coro=<SessionMiddlewareInstance.__call__() running at /Users/adamlamorre/Work/Adam/ChatEngine/api.chatengine.io/venv/lib/python3.6/site-packages/channels/sessions.py:183> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7fcf742f7d08>()]>> for connection <WebSocketProtocol client=['127.0.0.1', 63557] path=b'/person_v3/'> took too long to shut down and was killed.
Here is an example consumer to recreate:
from channels.consumer import AsyncConsumer
class ExampleConsumer(AsyncConsumer):
async def websocket_connect(self, event):
await self.send({"type": "websocket.accept"})
async def websocket_receive(self, event):
if str(event['text']) == '"ping"':
await self.send({
"type": "websocket.send",
"text": "pong"
})
async def websocket_disconnect(self, event):
# Do anything
pass
Here are my relevant dependencies and their versions:
It seems that upon any
websocket_disconnect
call in a Consumer Class which inherits fromAsyncConsumer
we get the following error.Here is an example consumer to recreate:
Here are my relevant dependencies and their versions:
They are older versions to avoid this issue per MrVhek's comment
The text was updated successfully, but these errors were encountered: