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 Quota Exceeded Exception when it's actually not #268

Closed
Jaqen00 opened this issue Jan 22, 2019 · 23 comments
Closed

Youtube Quota Exceeded Exception when it's actually not #268

Jaqen00 opened this issue Jan 22, 2019 · 23 comments

Comments

@Jaqen00
Copy link

Jaqen00 commented Jan 22, 2019

I'm using youtube-upload and have been for quite some time without any problems. Recently, we've been getting this 403 exception:

Using client secrets: /root/ytb_api/ppx_client_secrets.json
Using credentials file: /root/ytb_api/ppx_credentials.json
Start upload: ./ppx_video/new.mp4
[RequestError] Server response: {
"error": {
"errors": [
{
"domain": "youtube.quota",
"reason": "quotaExceeded",
"message": "The request cannot be completed because you have exceeded your \u003ca href="/youtube/v3/getting-started#quota"\u003equota\u003c/a\u003e."
}
],
"code": 403,
"message": "The request cannot be completed because you have exceeded your \u003ca href="/youtube/v3/getting-started#quota"\u003equota\u003c/a\u003e."
}
}

In the google developer's console, it says that we are still under the quota (currently it states "units/day 163,817 of 50,000,000").
Am I missing something about how it work?

@Jaqen00
Copy link
Author

Jaqen00 commented Jan 22, 2019

@tokland

@bichotll
Copy link

Unfortunately, Youtube has drastically reduced the quota to 10.000 per day for any new/recently created API.

@AndCycle
Copy link

not just recently, the secret key from my old project is no longer usable, they have roll out the quota limit to everyone.

@bichotll
Copy link

not just recently, the secret key from my old project is no longer usable, they have roll out the quota limit to everyone.

That did not happen to me. I have a key that is ± a year old?

For the record. There is a form to request more quota: https://services.google.com/fb/forms/ytapiquotarequest/

@AndCycle
Copy link

have read the official document
https://developers.google.com/youtube/v3/getting-started#quota

Note that projects that had enabled the YouTube Data API before April 20, 2016, have a different default quota for that API.

although the statement says it only affect project after 2016,
one of my old project created at 2012 is affected and got weird issue prevent it from using youtube data api.

@bichotll
Copy link

Ugh...Youtube is becoming too restrictive - and messy!
I hope there is a change soon..or a new video platform!

@indatawetrust
Copy link

I was having this issue with a newly opened google cloud account. I didn't experience this problem when I tried it from another account that was actively used and had a billing.

@Jaqen00
Copy link
Author

Jaqen00 commented Mar 16, 2019

I‘m using selenium for a alternative way to upload more videos

@renenijman
Copy link

I‘m using selenium for a alternative way to upload more videos

Could you elaborate? I cannot seem to find how to do that.

@Jaqen00
Copy link
Author

Jaqen00 commented Mar 20, 2019

use chrome webdriver,first login Google account in webdriver,then find the <input type=“file”> element in upload page and sendfile.@renenijman

@renenijman
Copy link

use chrome webdriver,first login Google account in webdriver,then find the element in upload page and sendfile.@renenijman

Got it. Thanks for the quick reply!

@ShuhuaGao
Copy link

@Jaqen00 Is there any limit on the number of videos if we use selenium?

@Jaqen00
Copy link
Author

Jaqen00 commented May 18, 2019 via email

@ShuhuaGao
Copy link

@Jaqen00 Thank you for the quick response. That would be great without such strict quota limitation. I encountered some weird issues with YouTube Data API V3: even with a newly created project on Google Console and its secrets file, it shows 'quota exceeded' when uploading video with this 'youtube-upload' tool.

@emughal85
Copy link

emughal85 commented Jul 4, 2019

is there any kind of search limit in youtube data API V3 of quota? Like 100 searches i can do in a day or more than this can anyone tell me?

@suneetk92
Copy link

suneetk92 commented Aug 12, 2019

is there any kind of search limit in youtube data API V3 of quota? Like 100 searches i can do in a day or more than this can anyone tell me?

YouTube Search API consumes 100 units per search and the quota limits is set to 10,000. So,
no of searches = 10,000/100 = 100 searches

@tavurth
Copy link

tavurth commented Oct 26, 2019

Quota is 1,600 per video upload. This still works for me, as I can get around 6 videos per day uploaded. Some days I have more videos than others, but I can just queue them up with a cron to be uploaded on a day with less traffic.

If you really need more, you can also pay to increase the quota up as high as you want.

@brokeharvard
Copy link

use chrome webdriver,first login Google account in webdriver,then find the element in upload page and sendfile.@renenijman

@Jaqen00 Any chance you could share your code for doing this? Were you able to insert video title, description, tags, custom thumbnail, etc?

@kootsoop kootsoop added this to Needs triage in YouTube Uploader Bug Triage May 6, 2020
@linouk23
Copy link

use chrome webdriver,first login Google account in webdriver,then find the element in upload page and sendfile.@renenijman
@Jaqen00 Any chance you could share your code for doing this?
@brokeharvard

Please check out https://github.com/linouk23/youtube_uploader_selenium.

@moiseyo
Copy link

moiseyo commented Jul 12, 2020

I have Quota Name Limit Queries per day 0

##############################################################

youtube.error.PyYouTubeException: YouTubeException(status_code=403,message=The request cannot be completed
because you have exceeded your quota.)

When I check Quotas I saw :

Quota Name Limit
Queries per day 0
Queries per 100 seconds per user 300,000
Queries per 100 seconds 3,000,000

Errors 100
YouTube Data API v3 12 100 51 367

@amnonbb
Copy link

amnonbb commented Jul 29, 2020

I solve it by creating new project with new Credentials in Google Console.

@Jaqen00 Jaqen00 closed this as completed Dec 2, 2020
YouTube Uploader Bug Triage automation moved this from Needs triage to Closed Dec 2, 2020
@Jaqen00 Jaqen00 reopened this Dec 2, 2020
YouTube Uploader Bug Triage automation moved this from Closed to Needs triage Dec 2, 2020
@Jaqen00 Jaqen00 closed this as completed Dec 27, 2020
YouTube Uploader Bug Triage automation moved this from Needs triage to Closed Dec 27, 2020
@Brainard-tech
Copy link

I'm using youtube-upload and have been for quite some time without any problems. Recently, we've been getting this 403 exception:

Using client secrets: /root/ytb_api/ppx_client_secrets.json
Using credentials file: /root/ytb_api/ppx_credentials.json
Start upload: ./ppx_video/new.mp4
[RequestError] Server response: {
"error": {
"errors": [
{
"domain": "youtube.quota",
"reason": "quotaExceeded",
"message": "The request cannot be completed because you have exceeded your \u003ca href="/youtube/v3/getting-started#quota"\u003equota\u003c/a\u003e."
}
],
"code": 403,
"message": "The request cannot be completed because you have exceeded your \u003ca href="/youtube/v3/getting-started#quota"\u003equota\u003c/a\u003e."
}
}

can anyone tell me what is happen because it wasn't quite long i started the project and having this problem
can

@AndCycle
Copy link

AndCycle commented Oct 8, 2022

@Brainard-tech #313

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

No branches or pull requests