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)
@fent This is where it happens.
Got that error, too. No specific Video or something just happened - and nothing can be downloaded.
There's no need to call ytdlStream.end() btw, .destroy() should be enough in theory.
Have been getting this error for a few months now...
I have noticed that using the audioonly flag actually helps. Doesn't throw that error so often anymore.
Does this happen at the start of the download, middle, end?
Mainly the end, around 15 seconds before the end of the video
Happening to me too.
I have the same issue, but it happens to me in the middle / first half of the video
I've noticed the issue occur sporadically, sometimes I can go a few videos with nothing while others cut off half way or near the end of playback.
Yeah I think it is pretty much random. But for me it's more often at the beginning of a video (most times)
Can also report this issue. Happens randomly through playback, just started happening recently. I've always had this with connection loss, but the bot is currently not losing connection and it's just happening while the song was playing fine. Seems to be more common in the past few days.
@fent People are saying it could be due to the fact you are downloading videos "unofficially", or without a developer key.
Same over here, random but mostly after the middle of the video
I'm still having issues with this in #128 even though the pull marked it as fixed.
I can also confirm that this issue is still occurring at roughly the same frequency.
I can confirm as well.
Can confirm that this is still occurring about halfway through the stream.
I almost always get this error at 1:23 when I try to stream this video: https://www.youtube.com/watch?v=iRSuh7OVdDs
This error occurs for me with every video longer than ~1min, but I found that that video throws the error fairly consistently.