esbonio
esbonio copied to clipboard
Preview does not recover from laptop sleep
Or more generally, any connection interruption
connection handler failed
Traceback (most recent call last):
File "/var/home/alex/Projects/esbonio-beta/code/bundled/libs/websockets/legacy/protocol.py", line 959, in transfer_data
message = await self.read_message()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/home/alex/Projects/esbonio-beta/code/bundled/libs/websockets/legacy/protocol.py", line 1029, in read_message
frame = await self.read_data_frame(max_size=self.max_size)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/home/alex/Projects/esbonio-beta/code/bundled/libs/websockets/legacy/protocol.py", line 1104, in read_data_frame
frame = await self.read_frame(max_size)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/home/alex/Projects/esbonio-beta/code/bundled/libs/websockets/legacy/protocol.py", line 1161, in read_frame
frame = await Frame.read(
^^^^^^^^^^^^^^^^^
File "/var/home/alex/Projects/esbonio-beta/code/bundled/libs/websockets/legacy/framing.py", line 68, in read
data = await reader(2)
^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/asyncio/streams.py", line 731, in readexactly
raise exceptions.IncompleteReadError(incomplete, n)
asyncio.exceptions.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 "/var/home/alex/Projects/esbonio-beta/code/bundled/libs/websockets/legacy/server.py", line 240, in handler
await self.ws_handler(self)
File "/var/home/alex/Projects/esbonio-beta/code/bundled/libs/esbonio/server/features/preview_manager/webview.py", line 80, in connection
async for message in websocket:
File "/var/home/alex/Projects/esbonio-beta/code/bundled/libs/websockets/legacy/protocol.py", line 497, in __aiter__
yield await self.recv()
^^^^^^^^^^^^^^^^^
File "/var/home/alex/Projects/esbonio-beta/code/bundled/libs/websockets/legacy/protocol.py", line 568, in recv
await self.ensure_open()
File "/var/home/alex/Projects/esbonio-beta/code/bundled/libs/websockets/legacy/protocol.py", line 935, in ensure_open
raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: no close frame received or sent