paritytech/smoldot

NodeJS WebSocket error are uncaught

Closed this issue · 0 comments

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.