partykit / remix-starter

🎈 PartyKit ⤫ Remix 💿
MIT License
71 stars 2 forks source link

Error: Can't establish a connection to the server #3

Open jccdev45 opened 7 months ago

jccdev45 commented 7 months ago

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

threepointone commented 7 months ago

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?

jccdev45 commented 7 months ago

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.

threepointone commented 6 months ago

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

threepointone commented 6 months ago

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

blissdev commented 2 months ago

Has this been resolved?