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

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

Open
jccdev45 opened this issue Jan 26, 2024 · 5 comments
Open

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

jccdev45 opened this issue Jan 26, 2024 · 5 comments

Comments

@jccdev45
Copy link

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
@threepointone
Copy link
Contributor

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
Copy link
Author

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
Copy link
Contributor

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

@threepointone
Copy link
Contributor

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

@blissdev
Copy link

blissdev commented Jun 1, 2024

Has this been resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants