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

Bug: There was an error executing that command. #1235

Closed
SmaDababaXor opened this issue Aug 11, 2022 · 14 comments
Closed

Bug: There was an error executing that command. #1235

SmaDababaXor opened this issue Aug 11, 2022 · 14 comments

Comments

@SmaDababaXor
Copy link

Describe the bug
A description of what the bug is. when ever i use prefix play is says There was an error executing that command.

How To Reproduce
Steps to reproduce the behavior:

  1. !play https://youtu.be/S2ujotDMluo
    2.There was an error executing that command.

Expected behavior
plays the song

Environment (add if possible)

  • Node.js version: Welcome to Node.js v16.15.0

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

@ChineseUncleTom
Copy link

Same issue here

@nhanledev
Copy link

Same issue with any song and search feature

@slunkius
Copy link

To me it says:
Invalid regular expression: missing /

@ceselder
Copy link

same issue

@ceselder
Copy link

SyntaxError: Invalid regular expression: missing / at new Script (node:vm:100:7) at Object.exports.decipherFormats (/root/evobot/node_modules/ytdl-core/lib/sig.js:116:51) at runMicrotasks (<anonymous>) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Promise.all (index 0) at async exports.getInfo (/root/evobot/node_modules/ytdl-core/lib/info.js:401:17)

@ceselder
Copy link

its a bug in node-ytdl-core

fent/node-ytdl-core#1110

@ceselder
Copy link

fent/node-ytdl-core#1108 (comment)

temp fix

@razeNFR
Copy link

razeNFR commented Aug 18, 2022

Thank for the fix, it worked for me :)

@legouju
Copy link

legouju commented Aug 18, 2022

fent/node-ytdl-core#1108 (comment)

temp fix

yep can vouch, changing this fixed, now need to see if I can get the docker container to use the latest node-ytdl-core as I belive it has been fixed now.

@Cptnmo109
Copy link

Cptnmo109 commented Aug 19, 2022

Just change the ytdl version inside package.json to 4.10.0 after that run

npm install ytdl-core@4.10.0

Delete the package-lock.json
And start the bot

@SmaDababaXor
Copy link
Author

fent/node-ytdl-core#1108 (comment)
temp fix

yep can vouch, changing this fixed, now need to see if I can get the docker container to use the latest node-ytdl-core as I belive it has been fixed now.

where do i put this in replt.it?

@dracorl
Copy link

dracorl commented Aug 20, 2022

same here

@lucid-OmO
Copy link

lucid-OmO commented Aug 20, 2022

fent/node-ytdl-core#1108 (comment)
temp fix

yep can vouch, changing this fixed, now need to see if I can get the docker container to use the latest node-ytdl-core as I belive it has been fixed now.

where do i put this in replt.it?

you can fix it by changing the youtube-dl version to 4.10.0 inside the package.json and delete the package-lock.json, run npm install ytdl-core@4.10.0 and after that just restart the bot

@eritislami
Copy link
Owner

36ef0c2

Reinstall your npm packages to get the fix

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