Bot suddenly stops playing music
when playing bigger songs, bot suddenly aborts
5 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- 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!I see
But the aborts are very consistent, like exactly 40 seconds in and it just dies and this makes me believe it may not be a net issue
Is there any other reason why the bot may have aborted?
0.15.0
I updated it to 0.16.0 and the issue still persists
interestingly it seems to take longer time to abort, like now it runs for 45 sec before stoping
theres no problem with shorter songs
├── @discordjs/[email protected]
└─┬ [email protected]
└── @discordjs/[email protected] deduped
To debug your voice connection and player:
- Use
debug: true
when creating your VoiceConnection
and AudioPlayer
- Add an event listener to the <VoiceConnection> and the <AudioPlayer>:
- Add an error
listener to the stream you are passing to the resource:
Note: The <>
represents classes that need to be adapted to their respective name in your code
ignore the
Error: aborted with resource
Its a custom error message I use for the audioplayer
Im using a readable stream
ytdl
I think I'm not allowed to show you code
Ok understandableeurla-spotify is better