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.
10 Replies
- 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!are you using
entersState
Yes
all that function really does is just abort if you dont enter the state in the specified timeout
Should I just remove it then? Will I run into any issues by doing that?
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
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
so you don't know what's causing that crash ?
Correct
But this is the only error occurring closest to the time of crash 🤷♂️
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