Skip to content
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

Perpetual ECONNREFUSED when running on bare-bones nextjs app #325

Closed
thepuzzlemaster opened this issue Dec 6, 2021 · 2 comments
Closed

Comments

@thepuzzlemaster
Copy link

thepuzzlemaster commented Dec 6, 2021

bug report

  • version 1.14.0
  • platform OSX

Repro steps
I ran into an issue on my fairly large nextjs app when moving from a custom server which ran using https to the next start server running on http. I was able to make a minimal repro here. (kindly ignore the repo name. That was initially created for a different issue)

  • yarn install
  • yarn test:integration

running curl http://localhost:3333 returns the html string
I'm using http-get on account of the webpack dev server.

  • expected behavior
    • start-server-and-test recognizes the running server and kicks off the test suite
  • actual behavior
    • Permanent loop of ECONNREFUSED errors until timeout limit is reached

I've tried tcp:3333 syntax, with the same result. I'm really not sure why it can't reach the server address.

@thepuzzlemaster
Copy link
Author

Well, interestingly enough, it works fine using 127.0.0.1:3333, rather than localhost:3333

I also see the same behavior using just wait-on, so this seems to be related to that dependency, not this module.

@nephix
Copy link

nephix commented Oct 29, 2022

Ran into the same problem
Related issue in wait-on: jeffbski/wait-on#109

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants