My music bot is broken

I'm developing a music bot with discord-player package and while music is playing I'm getting "read ECONNRESET" error and the bot starts the music from the beginning I googled it and since 2018 (version 11.x) d.js users getting the same error but I couldn't find any solution for this error
15 Replies
d.js toolkit
d.js toolkit13mo ago
- 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! - Marked as resolved by staff
treble/luna
treble/luna13mo ago
Seems like a network issue
Parzival
ParzivalOP13mo ago
I am not at home right now, can I run it in my virtual machine in a few hours and send you the result?
treble/luna
treble/luna13mo ago
well, the error indicates a network issue, so nothing djs can do about I also hope your music source is tos compliant
Parzival
ParzivalOP13mo ago
I think so Is Spotify tos compliant?
treble/luna
treble/luna13mo ago
spotify's doesnt allow playback So your bot is probably using youtube internally Which is agains tos
Parzival
ParzivalOP13mo ago
when I check the source of the music it says the music playing from Spotify
treble/luna
treble/luna13mo ago
spotify's api does not allow playback
Parzival
ParzivalOP13mo ago
and it give me a Spotify link for source
treble/luna
treble/luna13mo ago
So that's impossible It offers info about a track Which is then probably put into youtube
Parzival
ParzivalOP13mo ago
oh get it
treble/luna
treble/luna13mo ago
regardless, check if you actually have a tos compliant bot first, and then get a better network
Parzival
ParzivalOP13mo ago
is Apple Music aginst tos?
treble/luna
treble/luna13mo ago
read their tos
Parzival
ParzivalOP13mo ago
okay thanks for help and your time have a good day
Want results from more Discord servers?
Add your server