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

NodeJS WebSocket error are uncaught #2601

Closed
tomaka opened this issue Aug 9, 2022 · 0 comments · Fixed by #2604
Closed

NodeJS WebSocket error are uncaught #2601

tomaka opened this issue Aug 9, 2022 · 0 comments · Fixed by #2604

Comments

@tomaka
Copy link
Contributor

tomaka commented Aug 9, 2022

This just happened to me on NodeJS:

node:events:505
      throw er; // Unhandled 'error' event
      ^

Error: connect ECONNREFUSED 18.182.27.167:26820
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
Emitted 'error' event on WebSocket instance at:
    at emitErrorAndClose (/home/tomaka/Projets/smoldot/bin/wasm-node/javascript/node_modules/ws/lib/websocket.js:1002:13)
    at ClientRequest.<anonymous> (/home/tomaka/Projets/smoldot/bin/wasm-node/javascript/node_modules/ws/lib/websocket.js:854:5)
    at ClientRequest.emit (node:events:527:28)
    at Socket.socketErrorListener (node:_http_client:454:9)
    at Socket.emit (node:events:527:28)
    at emitErrorNT (node:internal/streams/destroy:157:8)
    at emitErrorCloseNT (node:internal/streams/destroy:122:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  errno: -111,
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '18.182.27.167',
  port: 26820
}

Probably a consequence of #2589.

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