[2019-06-11 07:20:29 +0000] [31064] [ERROR] Exception in ASGI application
Traceback (most recent call last):
File "/usr/lib/python3.5/asyncio/tasks.py", line 241, in _step
result = coro.throw(exc)
File "/usr/local/lib/python3.5/dist-packages/websockets/protocol.py", line 674, in transfer_data
message = yield from self.read_message()
File "/usr/local/lib/python3.5/dist-packages/websockets/protocol.py", line 742, in read_message
frame = yield from self.read_data_frame(max_size=self.max_size)
File "/usr/local/lib/python3.5/dist-packages/websockets/protocol.py", line 815, in read_data_frame
frame = yield from self.read_frame(max_size)
File "/usr/local/lib/python3.5/dist-packages/websockets/protocol.py", line 884, in read_frame
extensions=self.extensions,
File "/usr/local/lib/python3.5/dist-packages/websockets/framing.py", line 99, in read
data = yield from reader(2)
File "/usr/lib/python3.5/asyncio/streams.py", line 669, in readexactly
yield from self._wait_for_data('readexactly')
File "/usr/lib/python3.5/asyncio/streams.py", line 459, in _wait_for_data
yield from self._waiter
File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 285, in result
raise CancelledError
concurrent.futures._base.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/uvicorn/protocols/websockets/websockets_impl.py", line 146, in run_asgi
result = await self.app(self.scope, self.asgi_receive, self.asgi_send)
File "/usr/local/lib/python3.5/dist-packages/uvicorn/middleware/asgi2.py", line 7, in __call__
await instance(receive, send)
File "/usr/local/lib/python3.5/dist-packages/channels/sessions.py", line 183, in __call__
return await self.inner(receive, self.send)
File "/usr/local/lib/python3.5/dist-packages/channels/middleware.py", line 41, in coroutine_call
await inner_instance(receive, send)
File "/usr/local/lib/python3.5/dist-packages/channels/consumer.py", line 59, in __call__
[receive, self.channel_receive], self.dispatch
File "/usr/local/lib/python3.5/dist-packages/channels/utils.py", line 52, in await_many_dispatch
await dispatch(result)
File "/usr/local/lib/python3.5/dist-packages/channels/consumer.py", line 73, in dispatch
await handler(message)
File "/usr/local/lib/python3.5/dist-packages/channels/generic/websocket.py", line 198, in websocket_receive
await self.receive(bytes_data=message["bytes"])
File "/home/nima/stt/stt_project/stt_app/consumer.py", line 257, in receive
await self.send(bytes_data=(await self._fetch(self.session)).encode())
File "/usr/local/lib/python3.5/dist-packages/channels/generic/websocket.py", line 213, in send
await super().send({"type": "websocket.send", "bytes": bytes_data})
File "/usr/local/lib/python3.5/dist-packages/channels/consumer.py", line 81, in send
await self.base_send(message)
File "/usr/local/lib/python3.5/dist-packages/channels/sessions.py", line 236, in send
return await self.real_send(message)
File "/usr/local/lib/python3.5/dist-packages/uvicorn/protocols/websockets/websockets_impl.py", line 204, in asgi_send
await self.send(data)
File "/usr/local/lib/python3.5/dist-packages/websockets/protocol.py", line 462, in send
yield from self.ensure_open()
File "/usr/local/lib/python3.5/dist-packages/websockets/protocol.py", line 646, in ensure_open
) from self.transfer_data_exc
websockets.exceptions.ConnectionClosed: WebSocket connection is closed: code = 1006 (connection closed abnormally [internal]), no reason