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

Migration from request #45

Open
ghorofamike opened this issue Dec 7, 2021 · 0 comments
Open

Migration from request #45

ghorofamike opened this issue Dec 7, 2021 · 0 comments

Comments

@ghorofamike
Copy link

The package.json lists request as a dependency, is there a plan to get migrate from it? what are the alternatives? any drop in replacement?
On Node 17.0.1, i get this error which might be due to changes in how node handles streams between node 15.x and 16.x


info HTTP GET /api/events 200 36.479 ms - -
Error: aborted
    at connResetException (node:internal/errors:691:14)
    at abortIncoming (node:_http_server:594:17)
    at socketOnClose (node:_http_server:588:3)
    at Socket.emit (node:events:402:35)
    at TCP.<anonymous> (node:net:687:12) {
  code: 'ECONNRESET'
} 
node:events:368
      throw er; // Unhandled 'error' event
      ^

Error: aborted
    at connResetException (node:internal/errors:691:14)
    at Socket.socketCloseListener (node:_http_client:407:19)
    at Socket.emit (node:events:402:35)
    at TCP.<anonymous> (node:net:687:12)
Emitted 'error' event on Request instance at:
    at IncomingMessage.<anonymous> (/wildduck/node_modules/request/request.js:1079:12)
    at IncomingMessage.emit (node:events:390:28)
    at emitErrorNT (node:internal/streams/destroy:164:8)
    at emitErrorCloseNT (node:internal/streams/destroy:129:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  code: 'ECONNRESET'
}

Node.js v17.0.1
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

No branches or pull requests

1 participant