-
Notifications
You must be signed in to change notification settings - Fork 97
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
Fix pinging the server when it listens on 0.0.0.0 and the user provided the port number #357
Conversation
@MikeMcC399 what do you think about this solution? I wish I could try pinging both |
|
Ok so the solution is to use explicit host and maybe put a warning when someone uses just a port Sent from my iPhoneOn Feb 26, 2023, at 12:45, Mike McCready ***@***.***> wrote:
@bahmutov
I tried this fix with #356 and it did not solve the issue. In this issue the hostname localhost is specified, so it does not rely on wait-on assuming a default hostname.
The wait-on issue jeffbski/wait-on#109 is unresolved, although there has been a fork https://github.com/metcoder95/wait-on created where the issue is resolved. The owner of the fork reports that he implemented "Happy Eyeballs" (see metcoder95/wait-on#20).
I didn't understand your sentence "The latest versions of Node and some web servers listen on host 0.0.0.0 which no longer means localhost." and I am not sure if it is a correct explanation. What I saw in the react-scripts example is that the web server was listening on 0.0.0.0 (meaning all addresses), dns was resolving localhost to 127.0.0.1 and ::1 then wait-on tried to test the localhost IPv6 ::1 on Node.js 18 and the web server did not respond.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Plus why would wait-on matter? We pass full URL to wait-on in this case. Sent from my iPhoneOn Feb 26, 2023, at 12:55, Gleb Bahmutov ***@***.***> wrote:Ok so the solution is to use explicit host and maybe put a warning when someone uses just a port Sent from my iPhoneOn Feb 26, 2023, at 12:45, Mike McCready ***@***.***> wrote:
@bahmutov
I tried this fix with #356 and it did not solve the issue. In this issue the hostname localhost is specified, so it does not rely on wait-on assuming a default hostname.
The wait-on issue jeffbski/wait-on#109 is unresolved, although there has been a fork https://github.com/metcoder95/wait-on created where the issue is resolved. The owner of the fork reports that he implemented "Happy Eyeballs" (see metcoder95/wait-on#20).
I didn't understand your sentence "The latest versions of Node and some web servers listen on host 0.0.0.0 which no longer means localhost." and I am not sure if it is a correct explanation. What I saw in the react-scripts example is that the web server was listening on 0.0.0.0 (meaning all addresses), dns was resolving localhost to 127.0.0.1 and ::1 then wait-on tried to test the localhost IPv6 ::1 on Node.js 18 and the web server did not respond.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
🎉 This PR is included in version 1.15.5 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Thanks for your work on this project! But FYI I believe this release breaks the Cypress template of It looks like a breaking change to me. I relied on the documented behavior that |
As for the Node.js 17+ and In Vite, we choose to default to |
Since this appears to be a breaking change, it would need to be reverted, as breaking changes require the release of a new major version. |
How can I revert a release provides advice about what to do if a release accidently includes a breaking change. Edit: It looks like 1.15.5 has been withdrawn from https://www.npmjs.com/package/start-server-and-test?activeTab=versions |
I deprecated that npm dist tagSent from my iPhoneOn Feb 27, 2023, at 13:54, Mike McCready ***@***.***> wrote:
@bahmutov
How can I revert a release provides advice about what to do if a release accidently includes a breaking change.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
|
Please use the exact dependency versionSent from my iPhoneOn Feb 27, 2023, at 22:54, Haoqun Jiang ***@***.***> wrote:
I deprecated that npm dist tag
1.x or ^1.0.0 still resolves to 1.5.5 according to https://semver.npmjs.com/
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
A breaking change was introduced in start-server-and-test 1.5.5 and now :4173 is not equivalent to localhost:4173, which Vite uses by default, so we have to use the full url in the command. bahmutov/start-server-and-test#357 (comment)
I don't think what you are seeing is contradictory. See https://docs.npmjs.com/deprecating-and-undeprecating-packages-or-package-versions.
|
😮 I didn't know that. Nice feature! |
A breaking change was introduced in start-server-and-test 1.5.5 and now :4173 is not equivalent to localhost:4173, which Vite uses by default, so we have to use the full url in the command. bahmutov/start-server-and-test#357 (comment)
A breaking change was introduced in start-server-and-test 1.5.5 and now :4173 is not equivalent to localhost:4173, which Vite uses by default, so we have to use the full url in the command. bahmutov/start-server-and-test#357 (comment)
Replace assuming the port XXXX refers to
localhost:XXXX
and instead use127.0.0.1:XXXX