hubotio / hubot

A customizable life embetterment robot.
https://hubotio.github.io/hubot/
MIT License
16.66k stars 3.75k forks source link

Web service test fails in Node.js 21 #1684

Closed joeyguerra closed 1 year ago

joeyguerra commented 1 year ago

should start a web service fails when run with Node 21.

Error: listen EADDRINUSE: address already in use 0.0.0.0:3000
    at Server.setupListenHandle [as _listen2] (node:net:1872:16)
    at listenInCluster (node:net:1920:12)
    at doListen (node:net:2069:7)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)

Emitted 'error' event on Server instance at:
    at emitErrorNT (node:net:1899:8)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)
 {
  code: 'EADDRINUSE',
  errno: -48,
  syscall: 'listen',
  address: '0.0.0.0',
  port: 3000
}

Node.js v21.0.0
technicalpickles commented 1 year ago

Isn't that saying there's already a process listening on port 3000?

joeyguerra commented 1 year ago

Yes. And I didn't find another process binding to that port. It's very suspicious.