-
Notifications
You must be signed in to change notification settings - Fork 27.1k
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
WebSocket is closed before the connection is established #51028
Comments
[UpdateServer]: error sending to WebSocket: IO error: An established connection was aborted by the software in your host machine. (os error 10053): An established connection was aborted by the software in your host machine. (os error 10053) |
Can confirm, am getting the same issue. This started after I updated Next.js (and a bunch of other packages) from
All Packages[email protected] /path/to/my/project Notes
Things I have tried
As I am somewhat new to Next.js, I am not sure what other information from my project would be of use. Please let me know, and I will provide it. Thank you for your time, I hope this either gets resolved or a solution is found. |
I think this is related to this pull request #49805 |
The PR has been merged but I'm still having this issue, seems on Window OS but not in Ubuntu, is there any fix? |
I'm having the same issue with the development server on [email protected] |
This comment has been minimized.
This comment has been minimized.
I have the same issue, downgrading to [email protected] works. |
If you are using nginx, you need to add this configuration:
|
Verify canary release
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 22.5.0: Mon Apr 24 20:52:24 PDT 2023; root:xnu-8796.121.2~5/RELEASE_ARM64_T6000 Binaries: Node: 16.19.1 npm: 8.19.3 Yarn: N/A pnpm: N/A Relevant packages: next: 13.4.4 eslint-config-next: 13.4.3 react: 18.2.0 react-dom: 18.2.0 typescript: 5.0.4
Which area(s) of Next.js are affected? (leave empty if unsure)
No response
Link to the code that reproduces this issue or a replay of the bug
/
To Reproduce
Configure a websocket connection in nextjs.
Describe the Bug
Console log report:
WebSocket connection to 'ws:<URL>/_next/webpack-hmr' failed: WebSocket is closed before the connection is established.
Expected Behavior
websocket should work as expected
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
The text was updated successfully, but these errors were encountered: