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

Port binding is not working and multiple endpoint is broken #480

Open
oklas opened this issue Feb 17, 2023 · 0 comments · May be fixed by #481
Open

Port binding is not working and multiple endpoint is broken #480

oklas opened this issue Feb 17, 2023 · 0 comments · May be fixed by #481

Comments

@oklas
Copy link

oklas commented Feb 17, 2023

Typical usage like this:

tsx ./node_modules/.bin/micro -l tcp://localhost:3010 ./src/service/index.ts

is not working.

Error message:

micro: Accepting connections on port 3010
micro: Error: listen EADDRINUSE: address already in use localhost
    at __node_internal_captureLargerStackTrace (node:internal/errors:490:5)
    at __node_internal_uvExceptionWithHostPort (node:internal/errors:589:12)
    at Server.setupListenHandle [as _listen2] (node:net:1724:21)
    at listenInCluster (node:net:1789:12)
    at Server.listen (node:net:1888:5)
    at startEndpoint (/Users/oklas/sdm-queue/node_modules/micro/dist/src/bin/micro.js:123:12)
    at start (/Users/oklas/sdm-queue/node_modules/micro/dist/src/bin/micro.js:145:13)
micro: Gracefully shutting down. Please wait...
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
oklas added a commit to oklas/micro that referenced this issue Feb 17, 2023
@oklas oklas linked a pull request Feb 17, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant