websocketstimeoutexception
[1 rows x 4 columns]2020-06-11 23:18:28.841055line:419
ws recv()
Traceback (most recent call last):
File "websocket_example.py", line 420, in subscribe_without_login
res_b = await asyncio.wait_for(ws.recv(), timeout=2)
File "/opt/bin/py3/lib/python3.8/asyncio/tasks.py", line 490, in wait_for
raise exceptions.TimeoutError()
asyncio.exceptions.TimeoutError
2020-06-11 23:18:30.844289line:426
send ping
Traceback (most recent call last):
File "/opt/bin/py3/lib/python3.8/site-packages/websockets/protocol.py", line 838, in transfer_data
await asyncio.shield(self._put_message_waiter)
asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "websocket_example.py", line 427, in subscribe_without_login
await ws.send("ping")
File "/opt/bin/py3/lib/python3.8/site-packages/websockets/protocol.py", line 555, in send
await self.ensure_open()
File "/opt/bin/py3/lib/python3.8/site-packages/websockets/protocol.py", line 812, in ensure_open
raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: code = 1006 (connection closed abnormally [internal]), no reason
2020-06-11 23:19:18.343182line:439
2020-06-11 23:19:18.343170连接关闭,正在重连……
2020-06-11 23:19:18.343200line:440
code = 1006 (connection closed abnormally [internal]), no reason
2020-06-11 23:19:18.343374line:654
hhhhh
2020-06-11 23:19:18.503111line:419
ws recv()
以上是 websocketstimeoutexception 的全部内容, 来源链接: utcz.com/z/517352.html