-
Notifications
You must be signed in to change notification settings - Fork 27.4k
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
Next v12 upgrade: WebSocket connection to 'wss://localhost:3000/_next/webpack-hmr' failed: for https connections #31139
Comments
Same issue here. |
@alexmarioru For me, it was occuring becauase I had set Here, the protocol is TL;DR @timneutkens , |
This comment has been minimized.
This comment has been minimized.
If you are using |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
What version of Next.js are you using?
12.0.3
What version of Node.js are you using?
14.17.6
What browser are you using?
Chrome
What operating system are you using?
macOS
Describe the Bug
Post v12.0.3 migration, when I try to run the application locally via https URL,
https://dev.abcd.com:443
; it throws the errorWebSocket connection to 'wss://localhost:3000/_next/webpack-hmr' failed
.http://localhost:3000
was set as assertPrefix.However, It works fine when I try to use http URL,
http://dev.abcd.com:3000
After digging a bit I found that, the cause was that the websocket connections for
ws://localhost:3000/_next/webpack-hmr
worked well, butwss://localhost:443/_next/webpack-hmr
failed. I can't figure out why secure connections are failing#30491 did not help as I'm neither using nginx, nor a custom express server.
The text was updated successfully, but these errors were encountered: