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

YouTube ratelimit issue, affecting youtubei #786

Open
AI-Avalon opened this issue Oct 19, 2021 · 7 comments
Open

YouTube ratelimit issue, affecting youtubei #786

AI-Avalon opened this issue Oct 19, 2021 · 7 comments
Labels
bug Something isn't working

Comments

@AI-Avalon
Copy link
Contributor

[10/19/21, 05:43:52] [error]: SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse ()
at Gunzip. (/app/node_modules/youtubei/dist/common/HTTP.js:65:39)
at Gunzip.emit (node:events:390:28)
at endReadableNT (node:internal/streams/readable:1343:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21)

Is this my problem?
I'm asking because at some point, the Bot stopped playing music.

@Hazmi35
Copy link
Owner

Hazmi35 commented Oct 19, 2021

Not sure, but what do you do to get those errors? is it reproducible?

@AI-Avalon
Copy link
Contributor Author

I'm not sure. It worked fine until now, but I got a 429 error and stopped the bot for 2 days a day and watched it. After that, when I tried to start it, the above error appeared and nothing was used during that time. The file I'm using is released 5.1.1
errorpicture
It looks something like this

@Hazmi35
Copy link
Owner

Hazmi35 commented Oct 19, 2021

What is the input to your play command?

@AI-Avalon
Copy link
Contributor Author

I typed this into Discord as [mu!p https://www.youtube.com/watch?v=PXYWXx8bf6E] with the prefix mu!

@Hazmi35
Copy link
Owner

Hazmi35 commented Oct 19, 2021

Hmm, I couldn't reproduce the issue, it seems like the problem isn't coming from Jukebox itself, this is probably related to SuspiciousLookingOwl/youtubei#19, can you try with another network?

@AI-Avalon
Copy link
Contributor Author

I just tried it on another network and it works!
Thank you!
Sorry for the inconvenience...
Also, while I'm here, can I make a request to add a shuffle function?

@Hazmi35
Copy link
Owner

Hazmi35 commented Oct 19, 2021

I just tried it on another network and it works! Thank you! Sorry for the inconvenience... Also, while I'm here, can I make a request to add a shuffle function?

Please open a new issue for that, also Pull Requests are always appreciated.

@Hazmi35 Hazmi35 changed the title Errors that prevent music from playing YouTube ratelimit issue, affecting youtubei Oct 19, 2021
@Hazmi35 Hazmi35 added the bug Something isn't working label Oct 19, 2021
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

No branches or pull requests

2 participants