Closed seiya-git closed 4 years ago
up, same issue
(node:28276) UnhandledPromiseRejectionWarning: ReadError: The server aborted the pending request at IncomingMessage.
(/storage/emulated/0/Download/Project/spotify/node_modules/got/dist/source/core/index.js:684:31) at Object.onceWrapper (events.js:421:28) at IncomingMessage.emit (events.js:315:20) at IncomingMessage.origin.emit (/storage/emulated/0/Download/Project/spotify/node_modules/@szmarczak/http-timer/dist/source/index.js:39:20) at TLSSocket.socketCloseListener (_http_client.js:420:11) at TLSSocket.emit (events.js:327:22) at net.js:671:12 at TCP.done (_tls_wrap.js:561:7) (Use node --trace-warnings ...
to show where the warning was created)
started getting this error aswell
(node:14676) UnhandledPromiseRejectionWarning: ReadError: The server aborted the pending request
at IncomingMessage.node --trace-warnings ...
to show where the warning was created)
The fix is just to add a code
property here:
This used to be ECONNRESET
Same issue here. I got:
UnhandledPromiseRejectionWarning: ReadError: The server aborted the pending request
What really bothers me (most) is that I can't catch
it with a try...catch...
.
@dannycreations @zedd3v @SukkaW Fixed. See #1308
@szmarczak Thanks!
Describe the bug
Actual behavior
Make request to the server The server aborted the pending request got returned error error have code "undefined"
Expected behavior
Make request to the server The server aborted the pending request got will retry request if retry option set got returned response or error
Code to reproduce
Checklist