-
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
Unexpected freezing and infinite loop when using localhost
instead of 127.0.0.1
#360
Comments
Thanks for the logs and information! The logs show:
For comparison: In my own different test Next.js environment on Ubuntu (simple starter). I see it is successfully trying to contact http://localhost:3000 via On ubuntu netstat -lnt | grep 3000 showed
I suspect on your system that you may get a different result for (I cloned your repository and tried to follow your instructions in an Ubuntu environment, however that didn't work for me. I don't want to spend time now getting that to work as your debug logs showed enough of the problem. Also I don't have a macOS system so even if it did work for me I can't be sure that I am emulating your environment.) |
On macOS 13.2.1, tcp6 0 0 ::1.3000 ::1.61369 ESTABLISHED
tcp6 0 0 ::1.61369 ::1.3000 ESTABLISHED
tcp6 0 0 ::1.3000 ::1.61368 ESTABLISHED
tcp6 0 0 ::1.61368 ::1.3000 ESTABLISHED And
|
Thanks for the additional debug information. I don't understand in that case why
is happening. It probably needs somebody with better network know-how than I have to work out why it's failing. Edit: The command |
There is a possibility that you could start your server on host 0.0.0.0 and that your results might be different doing that. Check your documentation. |
Regarding your repository https://github.com/Avansai/next-multilingual , if you want to make this better to use, I would suggest to create a new branch with your changes in it, then test it by cloning to a clean system. That way you can see if there is anything missing. I suspect that you may have some modules globally installed. I cloned https://github.com/Avansai/next-multilingual
|
@MikeMcC399 the Regarding your suggestion to use Regarding https://github.com/Avansai/next-multilingual, you are correct, you need to run There are no global modules installed, the instructions should work as-is - if not please let me know and I will update anything that might be missing. I have shared this repository on several other GitHub issues in other repos and it usually works well without needing to create a branch. If there is any issue reproducing the problem, I can try to create a minimal-reproduction repo just for this but of course, this will take more time for me to get setup |
Thanks very much for your detailed answer! I do understand that you are looking for a "proper" fix! I logged a separate issue jeffbski/wait-on#137 regarding the underlying technology in an attempt to get a proper fix. From my point of view there isn't a need to research your issue any deeper, since it is already clear.
You don't need to do anything more on your repo for my benefit. Thanks for correcting the typo about the |
As requested by @bahmutov @MikeMcC399 - this is the new issue related to #333 and was meant to be resolved by
start-server-and-test
^2.0.0
This issue seems to impact mostly macOS version 13+ (I'm on macOS 13.2.1)
How to reproduce:
package.json
and make sure that all the127.0.0.1
are replaced bylocalhost
npm install
"tmp-test": "cross-env DEBUG=start-server-and-test npm run e2e-build-headless"
npm run tmp-test
You will see the following debug logs:
The text was updated successfully, but these errors were encountered: