tldraw / tldraw

SDK for creating whiteboards and canvas experiences on the web.

Home Page:https://tldraw.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Nagellan opened this issue · comments

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

  • I agree to follow this project's Code of Conduct