Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preview does not recover from laptop sleep #646

Open
alcarney opened this issue Sep 28, 2023 · 0 comments
Open

Preview does not recover from laptop sleep #646

alcarney opened this issue Sep 28, 2023 · 0 comments
Labels
bug Something isn't working lsp Issues that relate to the language server
Milestone

Comments

@alcarney
Copy link
Member

alcarney commented Sep 28, 2023

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
@alcarney alcarney added bug Something isn't working lsp Issues that relate to the language server labels Sep 28, 2023
@alcarney alcarney added this to the 1.0 milestone Sep 28, 2023
@alcarney alcarney added this to Esbonio Oct 11, 2023
@github-project-automation github-project-automation bot moved this to Todo in Esbonio Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lsp Issues that relate to the language server
Projects
Status: Todo
Development

No branches or pull requests

1 participant