Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when playing a song #16

Closed
hmes98318 opened this issue Apr 6, 2023 · 0 comments · Fixed by #17
Closed

Error when playing a song #16

hmes98318 opened this issue Apr 6, 2023 · 0 comments · Fixed by #17
Labels
bug Something isn't working

Comments

@hmes98318
Copy link
Owner

C:\Users\usr\Documents\GitHub\Music-Disc\node_modules\discord-player\dist\index.js:949
const error = new Error("Could not extract stream for this track");
^

Error: Could not extract stream for this track
at GuildQueuePlayerNode.play (C:\Users\usr\Documents\GitHub\Music-Disc\node_modules\discord-player\dist\index.js:949:23)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.execute (C:\Users\usr\Documents\GitHub\Music-Disc\src\commands\play.js:77:13)

Node.js v18.14.2

This is an error caused by ytdl-core, changing the stream to play-dl can solve this problem.

  1. npm install play-dl
  2. Set DP_FORCE_YTDL_MOD="play-dl" environment variable

Version Information:

  • Node.js: 18.14.2
  • Discord.js: 14.7.1
  • Music-Disc: 1.3.0
  • Dependency modules
    • discord-player: 6.0.0
    • ytdl-core: 4.11.3
    • ffmpeg-static: 5.1.0
    • opusscript: 0.0.8
@hmes98318 hmes98318 added the bug Something isn't working label Apr 6, 2023
@hmes98318 hmes98318 changed the title Error when olaying a song Error when playing a song Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant