-
Notifications
You must be signed in to change notification settings - Fork 644
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
Error 403 Daily Limit Exceeded #551
Comments
The quota affects all mpsyt users; API keys for the youtube api have a quota on requests/day. As far as I am aware this is the first time the quota has been reached for mpsyt. I don't know if this is going to start being a regular problem... You can also get your own api key and use it in mpsyt with |
Thanks Rahul!! Will give it a try :) 2016-11-17 1:04 GMT-06:00 Rahul Roshan notifications@github.com:
|
Same issue here. |
Yeah, this has clearly become an issue, though I don't know what can be done about it. As mentioned above, people can get their own API keys from Google so they are not subject to the quota of the shared key. |
I'm using it through a public VPN and after connecting to another server, it's working again. Also sometimes I can see the error but after a retry it works (without changing the connection).. so the problem appears to be random, and not linked to the API key. |
For some reason Rahul Roshan response was not posted on GitHub, just email, I quote him to have it as reference: Create your own API key for youtube data API. edit file, /usr/local/lib/python3.5/site-packages/mps_youtube/config.py Worked for me. |
@jdsampayo That's not the right way to do it. Just run |
Create your own API key for youtube data API. edit file, /usr/local/lib/python3.5/site-packages/mps_youtube/config.py Worked for me. |
@rahulroshan96 What's with the comment copy-paste? |
Ran into this issue again briefly after light mpsyt usage earlier today - mostly experimenting with config settings. I'm using mpsyt on Android 7.0 via Termux and was able to launch it successfully with the default API key after running |
I ran into this today also, I resolved it, creating my own app in google and setting my API key with You need to restart mps-yt in order to load the new key. This is my key: AIzaSyC0tF7MUWtVaGEnxQWOOjHSGA_Ty_nE9go |
Happened with for the first time today. Here is how I got it working:
It began to work after I followed the above steps. |
It didn't work for me. I had to remove "~/.config/mps-youtube/config" to force Really. Why this API key is hardcoded anyways? Why configuration file is not plain text? Why API key can't be updated from inside the program? It smells like spaghetti. |
I have just pushed a PR which changes the config format to JSON, so that users can more easily edit the API key: #998 |
It actually can. The |
@ids1024 IKR The point is that I couldn't do that with default API key which has exceeded the daily request limit; read: made program to stop working to the point that I couldn't change ANY settings. In such case I could either wait until limit is reset or fiddle in application code. |
I have tried changing my API Key using
I also tried modifying ConfigItem("api_key", "AIzaSyxxxxxxxxxxxxxxxxxxxx", Recently I tried modifying ~/.config/mps-youtube/config or ~/.config/mps-youtube/config.json, both manage to change the old API Key but I still have an error:
I deleted I have tried with different APIs, even with @jdsampayo's, used the help page that @kudo-shinichi referred and every time I restarted mps-youtube. Any help? |
@TsukiZombina if you check the error message, it's because you're using an API key which does not have its access configured. Each key belongs to someone's google account - the one that ships with this code by default happens to belong to the main dev. The one you clicked on has either not been activated, or has been turned off. If you want to bypass the issue, you should set up your own API key, at
This is a real chore, and I wish the main dev would look into getting a paid account or something and supporting the costs with a transparent donation system, so that by default At any rate, here's mine for convenience, since I doubt enough people will see this page to bust my free quota: "AIzaSyA1n8CiAdiEleM3CCLhhSA6w27xjj-6LIs" ALSO NOTE that every time you run
So:
|
@TsukiZombina I suggest you create your own key following the steps of @dt-rush if you need help let us know. I received this email from Google: When I checked the console it was always at 99.9% usage, so I regenerated the key to avoid that google removes my access. As they key is free, I highly advise you generate your own so you don't have the problems of usage. Sorry about the inconveniences, Best regards, |
Thanks @jdsampayo, I have created and used my own API key before, it has no restrictions and the Youtube Data API enabled and made another restricted just for use in |
@TsukiZombina are you sure you're deleting the config file? It will use the old API keys if you haven't deleted the config file, regardless of what you put in the source code. Another idea: clone the If after all that, you still see the error, I'm not sure what to say. I know that when I configured my own key, it was sending the error you saw, about how the API is not enabled, for about 10 minutes after I enabled it, as it takes some time to propagate inside google's network. Maybe that's why you saw that error? |
Are you sure your mpsyt version uses a youtube-dl newer it equal to 2019.06.21? Could you post the output of |
This is @kkkrist:
@dt-rush I did that, I deleted the config file and after seeing that the json was added I updated my |
I'm a little confused about this bug, because despite setting my own API key yesterday (and verified that it's getting used), today I'm getting this quota error despite that the usage on the key is nowhere near the quota. Even more tellingly, it's the exact same error as given in issue #567, right down to the project number in the URL:
422897895433 is the same project number that this original poster of issue #567 noted. And I promise that I did set my own API key and it has seen usage - I can verify that in my dashboard. It seems like there are cases when the built-in API key is being used even when a custom API key is set? |
I'm using mpsyt 0.2.8, by the way. Sorry for not mentioning that. |
After noticing that 0.2.8 was released quite some time ago, I installed the latest Git checkout instead - but I'm still getting that error. (Sorry, I can't edit comments on this browser.) |
Setting the API key and deleting Open up
And change |
Ah, thank you! I'd submit this as an issue, but the GitHub doesn't appear to exist any more: https://github.com/np1/pafy/ . Their homepage doesn't work either: https://np1.github.io/pafy/ . I suspect a patch won't be forthcoming. Is it worth forking it into mps-youtube? Or even re-implementing its functions? |
https://github.com/mps-youtube/pafy/ It was all moved into an org a while ago. |
Same here only edditing question for y'all: Is this an actual bug or intended? |
set api_key AIzaSyAoy3pYe_wQravVIa-S5tB0fySC0L06vug |
TL;DR: check your daily quota. If it's set to 0, it means the project cannot access Youtube, even if the API is enabled. If you have a GCP project, with the Youtube data API enabled and a key generated but still get this message, it might be because the project has been blocked/banned from Youtube. I had a project from a year ago, with a key that worked back then. Using that key now gives me this error message when trying to In the end I deleted the project, created a new one and it worked 😯 . Thanks to https://stackoverflow.com/a/59662005/1410035 for the tip. |
I just created a google project and added the youtube data api, created a key and... 10 mins later I'm over the 10,000 requests quota limit? wtf? does it count every buffer fill as a request or what? |
I just created a new project, used it a while and have still not reached 50 requests. |
I'm getting the following error trying to search:
Error 403 Daily Limit Exceeded. The quota will be reset at midnight Pacific Time (PT). You may monitor your quota usage and adjust limits in the API Console: https://console.developers.google.com/apis/api/translate/quotas?project=655912152876
I use mps-youtube almost daily at my cafe and it is the first time I get it,
Tried to search a similar bug but didn't found anything about it.
The text was updated successfully, but these errors were encountered: