-
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
Next.js server start hangs #348
Comments
I am seeing this problem as well. I'm using EDIT: Looks like in version EDIT 2: After fiddling a bit more, I came up with this update to the command in the -start-server-and-test 'http-server ./app --port=8082' 8082 'cypress run --e2e'
+start-server-and-test --expect 200 'http-server ./app --port=8082' http://127.0.0.1:8082 'cypress run --e2e' The significant changes were:
This seemed to do the trick. |
I had the exactly same problem (in local) that what @eyaleizenberg was reporting. I downgrade from Node v18.13.0 to v16.19.0 and it works well again. Something there is not quite right. |
Faced this issue as well. I was launching my tests with command
and my test haven't started. For me issue was resolved when I changed localhost to 127.0.0.1:
However, when I tried to connect to my storybook app on http://localhost:8080 during the first run, everything was fine, site was available by domain name. My node version is 18.12.0, start-server-and-test version is 1.15.2 |
A workaround that worked for me is to using the local IP address instead localhost on the starting script:
|
|
I had the same problem in a Meteor.js app. I fixed it by adding Here is part of my package.json:
|
Can someone please provide a small repo with a reproducible example? |
This issue is solved in v1.15.4. |
|
Which version of Next.js is causing an issue? I set up a repository with Next.js 13 and latest versions of everything else and there was no issue with |
I suggest to open a separate issues for each other server that has been mentioned here, that is ones which are not Next.js, otherwise troubleshooting in this issue is going to get quite confusing! @eyaleizenberg Are you still having an issue with Next.js? |
Can someone provide a repo with an example that shows the problem? Or debug logs? Anything? |
|
* ci(node): switch to Node.js v18 * ci(scripts): change localhost ip issue bahmutov/start-server-and-test#348
🎉 This issue has been resolved in version 1.15.5 🎉 The release is available on: Your semantic-release bot 📦🚀 |
I created a new next.js project and added start-server-and-test but no matter what I do, the test run doesn't start. This is my output:
I ran the curl command to check if a Head request returns 200 and it does.
My guess is the part the says
is responding with HTTP status code NaN
is the problem.What am I missing here?
Thanks.
The text was updated successfully, but these errors were encountered: