-
Notifications
You must be signed in to change notification settings - Fork 96
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
start-server-and-test failure wait for localhost of react-app Node.js 18 #356
Comments
I don't know if Perhaps the resolution should be to add documentation to the README to workaround such servers by specifying one of the following?
instead of |
When start-server-and-test is outputting the error message in debug mode:
the default webbrowser (in my case Google Chrome) is successfully displaying I made a note about this in the original posting. |
|
🎉 This issue has been resolved in version 1.15.5 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Unfortunately this is not the case. The issue is still reproducible with 1.15.5.
|
This is a follow-on from the issue #348 "Next.js server start hangs".
Environment
Node.js 18.14.x
Windows 11 local
ubuntu-22.04 on GitHub
Problem description
start-server-and-test fails waiting for http://localhost:3000 locally on Windows 11 with Node.js 18.14.2 and on GitHub in an
ubuntu-22.04
runner using the current default Node.js 18.14.1.Debug logs show
So the IPv6 address (
::1
) is being tested whilst the server is only listening on the IPv4 address (127.0.0.1
).Steps to reproduce
Windows 11 local
Clone https://github.com/MikeMcC399/react-app-test
nvm use 18.14.2 npm ci export DEBUG=start-server-and-test npm run test:cypress
test hangs although the default browser successfully opens http://127.0.0.1:3000.
curl receives a reponse for:
http://localhost:3000
http://127.0.0.1:3000
not for
http://[::1]:3000
GitHub
View workflow log https://github.com/MikeMcC399/react-app-test/actions/workflows/test-react-app.yml or
fork https://github.com/MikeMcC399/react-app-test and run
.github/workflows/test-react-app.yml
Workaround
wait for http://127.0.0.1:3000 instead of http://localhost:3000
On Windows 11
Related issues
The text was updated successfully, but these errors were encountered: