[BUG] Error prevents playing
R2D2VaderBeef opened this issue · 1 comments
R2D2VaderBeef commented
Bug Description
When you try to play a song with queue.play() an error is thrown: Invalid regular expression: missing /
Reproduction Steps
Steps to reproduce the behavior:
Use queue.play with any content. This worked with the sample code copied from the Example Usage section on this page of your docs.
Expected Result
A song should play.
Attachments
node:internal/errors:466
ErrorCaptureStackTrace(err);
^
Error [ERR_UNHANDLED_ERROR]: Unhandled error. ('Invalid regular expression: missing /')
at new NodeError (node:internal/errors:377:5)
at Player.emit (node:events:516:17)
at FFmpeg.<anonymous> (PATH TO MY PROJECT\node_modules\discord-music-player\dist\managers\Queue.js:242:29)
at FFmpeg.emit (node:events:539:35)
at PassThrough.<anonymous> (PATH TO MY PROJECT\node_modules\discord-ytdl-core\index.js:1:1100)
at PassThrough.emit (node:events:539:35)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
code: 'ERR_UNHANDLED_ERROR',
context: 'Invalid regular expression: missing /'
}
Node.js v18.1.0
Versioning:
- OS: Windows 10 (though the error was also present on Ubuntu 20.04 (Heroku Stack heroku-20))
- Node Version v18.1.0
- Module Version v9.0.2
R2D2VaderBeef commented
Update: This is in fact a bug in ytdl-core. For anyone who looks at this before a fix comes out, rollback ytdl-core to 4.10.0 to solve.