Skip to content

ECONNRESET with the example #4

Open

Description

@JJ

I'm trying to use the example, and I get:

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

Error: Client network socket disconnected before secure TLS connection was established
    at connResetException (node:internal/errors:692:14)
    at TLSSocket.onConnectEnd (node:_tls_wrap:1586:19)
    at TLSSocket.emit (node:events:539:35)
    at endReadableNT (node:internal/streams/readable:1344:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Emitted 'error' event on WebSocket instance at:
    at emitErrorAndClose (/home/jmerelo/Code/Python/shibot/node_modules/ws/lib/websocket.js:1008:13)
    at ClientRequest.<anonymous> (/home/jmerelo/Code/Python/shibot/node_modules/ws/lib/websocket.js:856:5)
    at ClientRequest.emit (node:events:527:28)
    at TLSSocket.socketErrorListener (node:_http_client:454:9)
    at TLSSocket.emit (node:events:527:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  code: 'ECONNRESET',
  path: undefined,
  host: 'stream.aisstream.io',
  port: 443,
  localAddress: undefined
}

This is node 18.0.0, ws 8.13.0

Activity

  1. added a commit that references this issue on Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions