remix-starter icon indicating copy to clipboard operation
remix-starter copied to clipboard

Error: Can't establish a connection to the server

Open jccdev45 opened this issue 1 year ago • 6 comments

Steps to Reproduce

  1. npx create-remix@latest --template partykit/remix-starter
  2. npm run dev
  3. Open browser console

Description

The browser console displays web socket errors when initiating a newly created app. Upon the first opening, the app seems to connect, but sometimes when a second tab is opened to simulate a new user, the connection hangs and fails to update the user count. Subsequently, refreshing the page also results in a failed connection. No errors are shown in the terminal, only in the browser console. I am using Firefox (version below) but the errors are still present on Chrome as well.

Error Message

partykit-remix-error partykit-remix-error2

Environment

  • Operating System: Windows 10
  • Browser: Firefox Developer Edition 123.0b2

jccdev45 avatar Jan 26 '24 10:01 jccdev45

Huh, that's weird. I wonder if it's because it's on windows. Can you deploy it to the platform and tell me whether the problem persists even then?

threepointone avatar Jan 26 '24 10:01 threepointone

Appreciate the super quick reply. I didn't think to do it before but I was able to reproduce the error on my Macbook with Chrome so not a Windows thing. It does only seem to be when in the dev environment. There were no errors when I ran npm run build / npm start nor when I ran npm run deploy.

jccdev45 avatar Jan 26 '24 11:01 jccdev45

I can confirm that it looks like this is a problem with firefox.

threepointone avatar Jan 31 '24 14:01 threepointone

In fact, it even struggles to connect to remix' dev server for hot updates etc.

threepointone avatar Jan 31 '24 14:01 threepointone

Has this been resolved?

blissdev avatar Jun 01 '24 21:06 blissdev

This is still an issue for me

dmdboi avatar Feb 10 '25 18:02 dmdboi