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

UnhandledPromiseRejectionWarning: RequestError: Error: read ECONNRESET #649

Closed
rsa408 opened this issue Jan 21, 2022 · 1 comment
Closed

Comments

@rsa408
Copy link

rsa408 commented Jan 21, 2022

Hello Guys,

When I run this code most of time I get the following error, what I find is that this error occurs during the line of await client.login();

(node:6032) UnhandledPromiseRejectionWarning: RequestError: Error: read ECONNRESET
    at new RequestError (D:\insta\newp\node_modules\request-promise-core\lib\errors.js:14:15)
    at Request.plumbing.callback (D:\insta\newp\node_modules\request-promise-core\lib\plumbing.js:87:29)
    at Request.RP$callback [as _callback] (D:\insta\newp\node_modules\request-promise-core\lib\plumbing.js:46:31)
    at self.callback (D:\insta\newp\node_modules\request\request.js:185:22)
    at Request.emit (events.js:315:20)
    at Request.onRequestError (D:\insta\newp\node_modules\request\request.js:877:8)
    at ClientRequest.emit (events.js:315:20)
    at TLSSocket.socketErrorListener (_http_client.js:469:9)
    at TLSSocket.emit (events.js:315:20)
    at emitErrorNT (internal/streams/destroy.js:106:8)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:6032) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:6032) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Thanks for helping.

@sindresorhus
Copy link
Member

Wrong repo

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

2 participants