You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please describe the problem you are having in as much detail as possible:
Few days ago I noticed my bot was unable to connect to a few voice servers, which resulted in me getting some VOICE_CONNECTION_TIMEOUT exceptions, which I wasn't able to handle properly:
Trying to catch the promise returned by join only caught uWs having issues, but not these ones. I also attempted adding listeners to the connection's error and failed events, to no avail. I ended up using the uncaughtException process event to avoid the bot crashing entirely in the mean time. No audio would play, and I had no idea what to do, so I concluded this wasn't something on my part and decided to wait and ask around the Discord.js server, nobody had any idea.
Okay. Now with Discord having caught on to some apparent connectivity issues, I gave voice on my bot another try, on the server regions that had issues. It works again, but nowVOICE_CONNECTION_TIMEOUT exceptions are getting throwns and caught from the join returned promise / handled the events, even though it works? What?
I took a quick look at the current code on master and it seems that besides when the bot fails to authenticate or disconnects, that timeout is never cleared, at least not in VoiceConnection.js. Is this intended, is there something I'm not getting or doing right?
Please describe the problem you are having in as much detail as possible:
Few days ago I noticed my bot was unable to connect to a few voice servers, which resulted in me getting some
VOICE_CONNECTION_TIMEOUT
exceptions, which I wasn't able to handle properly:Trying to catch the promise returned by
join
only caught uWs having issues, but not these ones. I also attempted adding listeners to the connection'serror
andfailed
events, to no avail. I ended up using theuncaughtException
process event to avoid the bot crashing entirely in the mean time. No audio would play, and I had no idea what to do, so I concluded this wasn't something on my part and decided to wait and ask around the Discord.js server, nobody had any idea.Okay. Now with Discord having caught on to some apparent connectivity issues, I gave voice on my bot another try, on the server regions that had issues. It works again, but now
VOICE_CONNECTION_TIMEOUT
exceptions are getting throwns and caught from thejoin
returned promise / handled the events, even though it works? What?I took a quick look at the current code on
master
and it seems that besides when the bot fails to authenticate or disconnects, that timeout is never cleared, at least not inVoiceConnection.js
. Is this intended, is there something I'm not getting or doing right?Further details:
master
branch, commit 700201eThe text was updated successfully, but these errors were encountered: