tldraw / tldraw

SDK for creating whiteboards and canvas experiences on the web.
https://tldraw.dev
Other
33.86k stars 2.03k forks source link

[Bug]: WebSocket connection to 'wss://...' failed: WebSocket is closed before the connection is established. #3711

Open Nagellan opened 1 month ago

Nagellan commented 1 month ago

What happened?

The blank page happens very often in case of shared projects.

Screenshot 2024-05-07 at 13 08 56

Nothing changes when I change browser to firefox or anything else.

Seems like it happens randomly: I had case when one person and I could use the page while the other person had blank page. Seems like websocket servers don't work as expected, and whether it should be fixed or at least it might be useful to handle this case and show some information on a page instead of blank page.

How can we reproduce the bug?

  1. Create new tldraw project
  2. Create share link (readonly or not, doesn't matter) and give it to someone
  3. After some time it might happen that you or person you shared link to will see blank page

expected: shared project opens stably and when some problem rarely happens, human readable error message is shown on a page actually: shared project cannot be opened for some periods of time, and the blank page is shown

What browsers are you seeing the problem on?

Chrome, Firefox, Safari (any)

Contact Details

ireknazmievirek@gmail.com

Code of Conduct

linear[bot] commented 1 month ago

TLD-2502 [Bug]: WebSocket connection to 'wss://...' failed: WebSocket is closed before the connection is established.