node-ytdl-core: Random ECONNRESET

Hello,

I’ve had a issue with this library ever since I started to use it. I basically pass the ytdl stream into ffmpeg to extract the audio from the video. Sometimes the stream crashes with an ECONNRESET, and i have no idea why.

Stacktrace: Error: read ECONNRESET at exports._errnoException (util.js:1007:11) at TLSWrap.onread (net.js:563:26)

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 6
  • Comments: 52 (9 by maintainers)

Commits related to this issue

Most upvoted comments

@fent People are saying it could be due to the fact you are downloading videos “unofficially”, or without a developer key.

Hey guys, he’s actually currently working on a fix for it so we can stop confirming this, as the PR #128 should fix it.

Still happens. If I run locally, it works fine, but when I run it on a server, downloading stops 10-15 seconds before the video ends

@FireController1847 sorry about that, that’s how bad this is getting I messed up the markup -.- fixed it