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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 bot won't play songs #1496

Closed
AronF opened this issue Sep 25, 2023 · 2 comments
Closed

馃悰 bot won't play songs #1496

AronF opened this issue Sep 25, 2023 · 2 comments

Comments

@AronF
Copy link

AronF commented Sep 25, 2023

Describe the bug
/play for most songs results in "There was an error executing that command." reply discordside, though occasionally everything works fine.
serverside error:

TypeError: Cannot read properties of undefined (reading 'find')
    at video_basic_info (/home/aron/evobot/node_modules/play-dl/play-dl/YouTube/utils/extractor.ts:234:159)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Function.from (/home/aron/evobot/structs/Song.ts:53:18)
    at async Object.execute (/home/aron/evobot/commands/play.ts:61:14)

How To Reproduce
Steps to reproduce the behavior:
The occurance is essentially random, though it seems certain queries result in more frequent errors. No query seems 100% reliable though.

Expected behavior
A description of what you expected to happen.
/play should play the requested song with the correct environment. It instead results in an error.

Environment (add if possible)

  • Node.js version: v20.4.0

Additional information & screenshots
Add any other context or screenshots about the problem here.
image

@ywanes
Copy link

ywanes commented Sep 26, 2023

#/play https://www.you tube.com/wat ch?v=kJQP7 kiw5Fk
TypeError: Cannot read properties of undefined (reading 'find')
at video_basic_info (/home/evobot/node_modules/play-dl/dist/index.js:2:2210)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Function.from (/home/evobot/dist/structs/Song.js:23:24)
at async Object.execute (/home/evobot/dist/commands/play.js:54:20)

@eritislami
Copy link
Owner

Run npm ci to get the latest play-dl package version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants