ibrod83 / nodejs-file-downloader

130 stars 23 forks source link

code: 'ECONNRESET' error on some of the urls? #41

Closed nohchi93 closed 2 years ago

nohchi93 commented 2 years ago

Hi

I am getting this error on some of the video urls but not others. Really appreciate any help with this,

Error: aborted at connResetException (node:internal/errors:692:14) at TLSSocket.socketCloseListener (node:_http_client:414:19) at TLSSocket.emit (node:events:539:35) at node:net:709:12 at TCP.done (node:_tls_wrap:582:7) { code: 'ECONNRESET'

Setting User-Agent did not help.

error.responseBody returns undefined.

I probably should add that it starts downloading those "rogue" videos but then stops and deletes the file. Again this happens only to specific urls that are pretty much equal to those that work. Manually I can download the same file just fine.

Thanks!

EDIT: All of those links are from the same website

ibrod83 commented 2 years ago

I think you forgot to add the links :D

nohchi93 commented 2 years ago

Hey sorry I was not in front of the computer these days.

I think it is specific problem with the link. I have tried other libraries as well as using native https module. All gave me some sort of errors and problems with those URLs.

So I guess you can close the issue.

Thanks

P.S. Great library by the way. Really appreciate your work.