Skip to content

websockets.exceptions.ConnectionClosedError: no close frame received or sent #47

@thammegowda

Description

@thammegowda

2022-08-15 21:13:10,772][mephisto.operations.operator][INFO] - Operator running task ID = 4
[2022-08-15 21:13:26,844][mephisto.abstractions.architects.channels.websocket_channel][ERROR] - Socket logged error: no close frame received or sent
Traceback (most recent call last):
File "/home/darma/.conda/envs/darma/lib/python3.7/site-packages/websockets/legacy/protocol.py", line 945, in transfer_data
message = await self.read_message()
File "/home/darma/.conda/envs/darma/lib/python3.7/site-packages/websockets/legacy/protocol.py", line 1015, in read_message
frame = await self.read_data_frame(max_size=self.max_size)
File "/home/darma/.conda/envs/darma/lib/python3.7/site-packages/websockets/legacy/protocol.py", line 1090, in read_data_frame
frame = await self.read_frame(max_size)
File "/home/darma/.conda/envs/darma/lib/python3.7/site-packages/websockets/legacy/protocol.py", line 1149, in read_frame
extensions=self.extensions,
File "/home/darma/.conda/envs/darma/lib/python3.7/site-packages/websockets/legacy/framing.py", line 70, in read
data = await reader(2)
File "/home/darma/.conda/envs/darma/lib/python3.7/asyncio/streams.py", line 677, in readexactly
raise IncompleteReadError(incomplete, n)
asyncio.streams.IncompleteReadError: 0 bytes read on a total of 2 expected bytes

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/darma/.conda/envs/darma/lib/python3.7/site-packages/mephisto/abstractions/architects/channels/websocket_channel.py", line 140, in run_socket
message = await websocket.recv()
File "/home/darma/.conda/envs/darma/lib/python3.7/site-packages/websockets/legacy/protocol.py", line 553, in recv
await self.ensure_open()
File "/home/darma/.conda/envs/darma/lib/python3.7/site-packages/websockets/legacy/protocol.py", line 921, in ensure_open
raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: no close frame received or sent
[2022-08-15 21:13:34,463][mephisto.operations.client_io_handler][INFO] - Sending alive
[2022-08-15 21:13:34,463][mephisto.abstractions.architects.channels.websocket_channel][INFO] - channel open

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions