robinfriedli / aiode

Discord bot that plays Spotify tracks and YouTube videos or any URL including Soundcloud links and Twitch streams
Apache License 2.0
289 stars 73 forks source link

Message returned by source: no PLAYER_JS_URL in youtube root EID: 8bdc6350-c058-46ba-8653-8c5c12bb65be, html<redacted> #242

Closed ghost closed 3 years ago

ghost commented 3 years ago

I got this error like if i want to play any track and i did not change anyhting in the code. just the normal setup like bot token etc..

and heres the console error:

https://pastebin.com/k2i3azkG

robinfriedli commented 3 years ago

Looks like the pastebin expired. Is your clone up to date?

ghost commented 3 years ago

Oh sry.. here is my paste server.. and yeah its up to date..

https://paste.proxyping.de/rorafapeyo.pl

robinfriedli commented 3 years ago

That can't be the latest build since lavaplayer is currently at 1.3.76 while you're on lavaplayer 1.3.73. Try pulling and rebuilding your jar.

ghost commented 3 years ago

hm.. alright.. i will try that give me a moment..

robinfriedli commented 3 years ago

Does it work now? 🙂

ghost commented 3 years ago

yeep thx this was my failure...

ghost commented 3 years ago

but what can i do to this..

There has been an API error while loading some tracks. Please try again.
Exception
GoogleJsonResponseException: The request cannot be completed because you have exceeded your <a href="/youtube/v3/getting-started#quota">quota</a>.
CommandContext ID
d00d71d6-d178-455e-8077-09983ffab849
robinfriedli commented 3 years ago

Make sure the YOUTUBE_API_DAILY_QUOTA property in resources/settings.properties (or for botify 2 the property botify.preferences.youtube_api_daily_quota in src/main/resources/application.properties) is set to the quota you were given for your YouTube Data API project so that the bot can limit usage of the API accordingly.

ghost commented 3 years ago

it is set to 10000, the normal limit..

robinfriedli commented 3 years ago

When I created my project YouTube gave me 1000000, 10000 is very low. That's worth 100 search requests. Was the quota limit property set correctly the whole time or have you just set it now? Have you seen a message logged by the YouTubeService when exceeding the quota and what's the output of the youtube quota command? Quota resets at midnight pacific time, if you find yourself hitting the limit in the future you could just further limit the quota limit property so botify stops using the API and falls back to crawling html pages earlier.

ghost commented 3 years ago

Yes I have set the quota limit from the beginning to 10000 and the command shows me this: https://upload.proxyping.de/rCaM7bTzKxW5Ceq.png

robinfriedli commented 3 years ago

Looks good. If you run into a quota limit again in the future consider further lowering the limit. If the quota is 50k or below botify stops using the YouTube API where possible upon reaching 50% of the quota usage (else it's 75%) but note that searching YouTube playlist always requires using the API.

ghost commented 3 years ago

I have another question, the bot is lagging very much but the bot is on a strong server....

robinfriedli commented 3 years ago

Define "strong". What's the JVM's max heap size, how much memory is used (analytics command), what's the CPU usage, do you use the jda-nas native buffer, do you get any packet loss, are you on botify 1 or botify 2 and how many concurrent streams are playing?

Also this has nothing to do with the original issue, mae a separate issue or use the discord in the future.

ghost commented 3 years ago

it runs on an linux system, and no there is no packet loss.. Screenshot of usage: https://suka.blyat.xyz/uploads/16f694f5-a0eb-438f-8929-e0087ce66df2/18hnMBfN_.png

analytics command: https://suka.blyat.xyz/uploads/16f694f5-a0eb-438f-8929-e0087ce66df2/SLFqGAz8_.png

robinfriedli commented 3 years ago

You still haven't answered how many guilds are playing concurrently, if you're using a native buffer (NATIVE_AUDIO_BUFFER / botify.preferences.native_audio_buffer property) and whether you're using botify 1 or 2. And how did you check for packet loss? Can probably rule out CPU or memory usage, provided those screenshots were taken while there was stuttering.