umutxyp / MusicBot

An enhanced music bot that is compatible with discord.js v14 and works with slash commands. Discord music bot codes that can be used on any server and are simple to install.
https://discord.gg/codes
982 stars 1.07k forks source link

Playlist causes bot to freeze/crash #32

Closed CIsxxc closed 2 years ago

CIsxxc commented 2 years ago

Hi, Sorry I keep making issue tickets :/

I create playlist - /playlist create (Name) Rock (public) True

Then I - /playlist add-music (playlist-name) Rock (name) https://open.spotify.com/playlist/1R2yVdmsa5R8wLBr2aEKHn

I can see they are in the playlist by running - /playlist list (name) Rock

All music shows. So I try to play the playlist and I it freezes, so I check terminal and get this error.

"/home/container/node_modules/discord-player/dist/Structures/PlayerError.js:28 Error.captureStackTrace(this); ^ InvalidTrack: [InvalidTrack] invalid track at new PlayerError (/home/container/node_modules/discord-player/dist/Structures/PlayerError.js:28:15) at Queue.addTrack (/home/container/node_modules/discord-player/dist/Structures/Queue.js:235:19) at Timeout._onTimeout (/home/container/commands/play.js:95:7) at processTicksAndRejections (node:internal/process/task_queues:96:5) { createdAt: 2022-08-31T16:35:27.122Z, statusCode: 'InvalidTrack' } Node.js v17.9.1"

Have you experienced this issue? Can I not add playlist in this way?

CIsxxc commented 2 years ago

I can play the playlist if I do it this way - /play normal https://open.spotify.com/playlist/1R2yVdmsa5R8wLBr2aEKHn

umutxyp commented 2 years ago

ı fixed. THANK YOU.

updated files: play.js playlist.js