node-ytdl-core icon indicating copy to clipboard operation
node-ytdl-core copied to clipboard

Random ECONNRESET

Open MergHQ opened this issue 10 years ago • 52 comments

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)

MergHQ avatar Jul 10 '16 15:07 MergHQ

Do you have an example where this happens?

Is the example here similar?

fent avatar Jul 12 '16 03:07 fent

@fent This is where it happens.

MergHQ avatar Jul 12 '16 10:07 MergHQ

Got that error, too. No specific Video or something just happened - and nothing can be downloaded.

mh4ck avatar Jul 12 '16 12:07 mh4ck

There's no need to call ytdlStream.end() btw, .destroy() should be enough in theory.

fent avatar Jul 21 '16 13:07 fent

Have been getting this error for a few months now...

amishshah avatar Oct 24 '16 20:10 amishshah

I have noticed that using the audioonly flag actually helps. Doesn't throw that error so often anymore.

MergHQ avatar Oct 24 '16 21:10 MergHQ

Does this happen at the start of the download, middle, end?

fent avatar Oct 24 '16 23:10 fent

Mainly the end, around 15 seconds before the end of the video

amishshah avatar Oct 25 '16 09:10 amishshah

Happening to me too.

ghost avatar Jan 01 '17 01:01 ghost

I have the same issue, but it happens to me in the middle / first half of the video

fgardt avatar Feb 22 '17 19:02 fgardt

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.

derekmartinez18 avatar Feb 24 '17 20:02 derekmartinez18

Yeah I think it is pretty much random. But for me it's more often at the beginning of a video (most times)

fgardt avatar Feb 24 '17 21:02 fgardt

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.

FireController1847 avatar Mar 08 '17 23:03 FireController1847

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

FireController1847 avatar Mar 08 '17 23:03 FireController1847

Same over here, random but mostly after the middle of the video

TinyMan avatar Mar 17 '17 17:03 TinyMan

I'm still having issues with this in #128 even though the pull marked it as fixed.

OzairP avatar Mar 22 '17 17:03 OzairP

I can also confirm that this issue is still occurring at roughly the same frequency.

derekmartinez18 avatar Mar 23 '17 19:03 derekmartinez18

I can confirm as well.

FireController1847 avatar Mar 23 '17 22:03 FireController1847

Can confirm that this is still occurring about halfway through the stream.

sarcher-dev avatar Mar 30 '17 06:03 sarcher-dev

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.

Ghoulean avatar Apr 01 '17 19:04 Ghoulean