Skip to content

"Remote end closed socket abruptly" Node.js 12.16.3 #312

@ivanstanev

Description

@ivanstanev

Hey! The new patch release of Node.js (12.16.3) broke needle (we're using 2.4.0) and using needle with redirects now causes the following error:

Error: Remote end closed socket abruptly.
    at TLSSocket.on_socket_end (/Users/ivan/local/node_modules/needle/lib/needle.js:473:17)
    at processTicksAndRejections (internal/process/task_queues.js:79:11)

You can reproduce it with the following piece of code:

await needle('get',
  `https://github.com/kubernetes-sigs/kind/releases/download/v0.7.0/kind-linux-amd64`,
  null,
  { follow_max: 2 },
);

A similar issue was raised a while ago here: #261

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