-
-
Notifications
You must be signed in to change notification settings - Fork 429
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
Constantly getting error in console WebSocket connection to 'ws://localhost:8081/' failed:
#477
Comments
Thank you for your contribution. We will check and reply to you as soon as possible. |
Plz check your dev-server $ pnpm dev-server This is automatic on |
@Jonghakseo
|
Same issue |
still getting this ![]() |
Have you checked to see if there are any other processes already occupying port 8081? And would like some information about the operating environment (OS, node version, etc.)? |
@Jonghakseo there is no other processes running the 8081, only dev-server starting ont this port, macOS Sonoma 14.5 , |
Have you tried reloading the extension? |
@Jonghakseo |
I'm on Sonoma 14.5, and node v21. |
I've tried the same node version on Sonoma 14.5, but it doesn't reproduce the issue, which is interesting... 🫠 |
Can I know the browser information? I'm curious about your Chrome version. |
@Jonghakseo I have the same problem on Windows, version of Chrome is 126.0.6478.127 |
@Jonghakseo No, one But there's some strange things when i stop dev script and try to rerun, sometimes i have an info about "On this port sth running already" so kind of this. No i struggling with this, and i was tried to restart PC and i hope it work now. PS: Don't stop this task it's annoying I was restarted PC and play some music on YT and cooking about 30 min. then i sit down and run 'pnpm dev' and this error occur again |
@Jonghakseo OO probably i see what's going on. If i get any error, then script break and when i trying to rerun manually after error, that error about running process on port occur. Maybe it's related |
I'll have to take a look at the code and issues in other HMR projects that use websockets... |
Same issue |
To those who reported this issue... Is HMR not working properly due to this issue, or is it working properly after reloading the extension? If you were developing with I'd like to know more specifically if the above issue is interfering with your development. |
now i have downloaded latest project version, tried to start it and getting same issue, i have tried to reload and rebuild it, but it is still present
no, i am getting thouse errors when server is running, |
We're looking for help from people who can reproduce this issue on the Discord channel. https://discord.com/channels/1263404974830915637/1264515166473551906/1270506301763620915 |
Max we can do for now is: ws.onerror = () => {
console.clear();
}; i was trying to solve this entire yesterday, but it's not able to catch or sth like that. There's issue about that: I was waiting for response, that's interesting case. |
Yeah, that's issue between package versions, cause i recently change 'ws' from deps to 'devDeps' That's why remove node_module script is necessary @Jonghakseo :) We need to implement it, for upgrade |
@jjwallace We cannot do nothing with it, i spent 2 days of trying to find solution, but nothing works. I'm waiting for #477 (comment) |
I was using Brave (latest version), then I switch to Microsoft Edge and now HMR is working properly and Websocket connection is established. |
#719 Doesn't solve this issue, it still happening, i think it's issue browser related. I was reading a little about it and it's probably because of security issue. I think, we can close it here. But for people which will read this thread in the future. |
Open console and see this error:
Reload server disconnected. Please check if the WebSocket server is running properly on ws://localhost:8081. This feature detects changes in the code and helps the browser to reload the extension or refresh the current tab.
also in messages (not errors):

This clogs the console, not convenient.
How to fix this?
The text was updated successfully, but these errors were encountered: