ZerioDev / Music-bot

A complete code to download for a cool Discord music bot !
https://discord.gg/5cGSYV8ZZj
GNU General Public License v3.0
864 stars 1.05k forks source link

Could not extract stream for this track #274

Closed originalaidn closed 1 year ago

originalaidn commented 1 year ago

/home/container/node_modules/discord-player/dist/index.js:985 const error = new Error("Could not extract stream for this track"); ^ Error: Could not extract stream for this track at GuildQueuePlayerNode.play (/home/container/node_modules/discord-player/dist/index.js:985:23) at runMicrotasks () at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Object.execute (/home/container/commands/music/play.js:59:33) Node.js v17.9.1

Alphaegen commented 1 year ago

On which branch are you?

originalaidn commented 1 year ago

this is the beta version, but when I use the master version, the music doesn't start, only the bot join to the vc and also i tried to use your version, but i got same error

Alphaegen commented 1 year ago

Could you try running DP_FORCE_YTDL_MOD='play-dl' yarn start or DP_FORCE_YTDL_MOD='play-dl' npm start for me? Depending on which package manager you're using of course. Then try playing a song again.

As a sidenote, have you installed ffmpeg as a package of your system? Which version is it? (you can check by running ffmpeg)

originalaidn commented 1 year ago

I couldn't run these commands, because my bot is running in a container (the host uses containers to NODEJS, PYTHON, DOTNET 5 & 6 bots), and I can't run commands in console.

I used this (https://github.com/iGameCreep/Music-bot) version, but since Saturday I didn't get error but also the music not started

Darthwayne commented 1 year ago

I have the same issue. Bot works fine on desktop, but when I put it into a free hosting service, it auto updates packages, adding yt-dlcore, removing another. Error becomes 'could not extract stream'. Hopefully the calls to the unneeded dependencies can be removed whatever they specifically are.

originalaidn commented 1 year ago

my problem solved, but idk how