Discord.js: ECONNRESET when streaming YouTube Audio

Created on 13 Sep 2016  路  18Comments  路  Source: discordjs/discord.js

{ Error: read ECONNRESET
    at exports._errnoException (util.js:1026:11)
    at TLSWrap.onread (net.js:564:26) code: 'ECONNRESET', errno: 'ECONNRESET', syscall: 'read' }

This happens seemingly randomly when playing back audio and it isn't caught by the error event.

help wanted high voice bug

All 18 comments

have u upgrade to the latest version ( 9.2.0)?

Yeah.

_ECONNRESET strikes yet again_ :disappointed:

+1, I'm experiencing it too. Although it's been reduced with the new 9.2.0 it still happens every now and then. I don't get the error during streams, but it happens whenever it switches to another stream.

@purvaldur ok it must just be a stream killing issue, I'll take a look

Probably fixed in https://github.com/hydrabolt/discord.js/commit/b0adc881f382e02dc917bef1ae103f35a7c03426, as the errors only appear when switching streams (when the prior stream ends), this should be a fairly simple fix of just listening for errors from the streams and ignoring them, seeing as though they will be destroyed fairly soon anyway. Please test by installing from indev (npm i hydrabolt/discord.js#indev).

Will do sir! I'll update if it appears during my abuse tests.

@hydrabolt Related but a different issue now. This existed before but this REALLY shouldn't be uncaught.
image
That occurred after rapidly stopping and playing audio. It should at least be able to handle that reasonably.

And additionally, it happens still.
image

Like MikaalSky said, the econn resets still happen.

http://i.imgur.com/qWicyMJ.png

epipe happens when you stop voice connection/dispatcher before stopping the source/stream (like you close the "pipe" before stopping the flow 馃槃 ). this could possibly be what you are doing, which would be affecting the results

+1 pls fix

@GusCaplan It should still be handled.

I don't remember closing this O>O

+1 really want that fix

+1

fix coming in v10

As of https://github.com/hydrabolt/discord.js/commit/b0921ae0ef21440831a730f4d7126f1a020c64a5, ECONNRESET and other various random errors should now be fully caught and will not cause your processes to crash! 馃帀

Will be released in version 10 very soon!

Nice thing @hydrabolt

Was this page helpful?
0 / 5 - 0 ratings

Related issues

PaulSenon picture PaulSenon  路  19Comments

chadrien picture chadrien  路  29Comments

godleydemon picture godleydemon  路  23Comments

SirDeadlystrike picture SirDeadlystrike  路  32Comments

vladfrangu picture vladfrangu  路  23Comments