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 (update) #358
Comments
Cross-post my comment here as it's likely relevant: #357 (comment)
|
Many thanks for the vite documenation link https://vitejs.dev/config/server-options.html#server-host which clears up an issue I have in cypress-io/github-action#802! |
I don't believe that this issue can be resolved by Ideally Secondly, the wait-on technology, that In the meantime there is the workaround of waiting for the IPv4 loopback address I will leave this issue open for comments first, then I intend to close it. |
I guess it would be possible to add a new feature to If I don't know if it would be a good thing to implement it here. It should really be a change to |
Or even NodeJS itself, or potentially whatever lower level things NodeJS is relying on. This affects the entire NodeJS ecosystem, and shouldn't be imposed on package maintainers maybe beyond a callout in the readme IMO. For me, I was able to just switch from |
This is an update to issue #356 which was closed automatically. The issue is still reproducible in start-server-and-test
1.15.52.0.0.The environment is updated to start-server-and-test
1.15.52.0.0 and cypress 12.7.0Environment
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
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: