Skip to content

TODO: websockets.exceptions.ConnectionClosedError: #9

@eeriemyxi

Description

@eeriemyxi
wskey-1  | [09:53:14 AM] [ERROR] @ server.py:375 conn_handler :: connection handler failed
wskey-1  | Traceback (most recent call last):
wskey-1  |   File "/mechvibes-lite/.venv/lib/python3.12/site-packages/websockets/asyncio/server.py", line 373, in conn_handler
wskey-1  |     await self.handler(connection)
wskey-1  |   File "/mechvibes-lite/src/mechvibes_lite/wskey/__init__.py", line 53, in evdev_sender
wskey-1  |     await websocket.send(str(key.scancode))
wskey-1  |   File "/mechvibes-lite/.venv/lib/python3.12/site-packages/websockets/asyncio/connection.py", line 458, in send
wskey-1  |     async with self.send_context():
wskey-1  |                ^^^^^^^^^^^^^^^^^^^
wskey-1  |   File "/usr/local/lib/python3.12/contextlib.py", line 210, in __aenter__
wskey-1  |     return await anext(self.gen)
wskey-1  |            ^^^^^^^^^^^^^^^^^^^^^
wskey-1  |   File "/mechvibes-lite/.venv/lib/python3.12/site-packages/websockets/asyncio/connection.py", line 933, in send_context
wskey-1  |     raise self.protocol.close_exc from original_exc
wskey-1  | websockets.exceptions.ConnectionClosedError: no close frame received or sent

Handle these errors in the listeners.

Metadata

Metadata

Assignees

Labels

todoA task to do.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions