AbortError: the operation was aborted

I've been getting this error for a while now (I'm on the latest DJS version 0.17.0 atm but I believe this has been occurring well before that). It appears to be occuring randomly, and I've only recently started potentially correlating it to a full bot crash for me. Any help is greatly appreciated.
No description
10 Replies
d.js toolkit
d.js toolkit2mo ago
- What are your intents? GuildVoiceStates is required to receive voice data! - Show what dependencies you are using -- generateDependencyReport() is exported from @discordjs/voice. - Try looking at common examples: https://github.com/discordjs/voice-examples. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
pat
pat2mo ago
are you using entersState
dzlandis
dzlandisOP2mo ago
Yes
pat
pat2mo ago
all that function really does is just abort if you dont enter the state in the specified timeout
dzlandis
dzlandisOP2mo ago
Should I just remove it then? Will I run into any issues by doing that?
pat
pat2mo ago
well I guess if you use the function you are atleast ensured that you are in the given state after the timeout might end up being an issue if you do something in one state that should be done in another state not sure though
dzlandis
dzlandisOP2mo ago
Also, is it possible that this could be causing a full bot crash? I've noticed a correlation between this error firing and my whole bot just dying. Despite me handling unhandledExceptions through event listeners
pat
pat2mo ago
so you don't know what's causing that crash ?
dzlandis
dzlandisOP2mo ago
Correct But this is the only error occurring closest to the time of crash 🤷‍♂️
pat
pat2mo ago
try removing entersstate then if you come into some behaviour where you need to be in a specific state do something like T.once(state, { action }) i guess or you could even pass in an abortsignal and handle that manually
Want results from more Discord servers?
Add your server