Quota Exceeded: How do I check & fix

8 views
Skip to first unread message

Landon Ginn

unread,
Mar 9, 2023, 12:22:03 PM3/9/23
to Google APIs Discovery Service Users
Hello,

This is my first experience working with the youtube api. I have used google drive and sheets api in the past, but I have not experienced the exceeded quota error before now. 

I have payment and billing setup, though I do not know how to find a "plan" i might be on. so for all I know this is an account issue.
 
For context, I am building a Youtube production suite for myself and have been working on the publishing portion of things this last week. 
After lots of trial and error, I have a working library to push a Video to my channel. 
But it didnt take more than 5 successful tries before I was met with a "Quota Exceeded" error message. Ill note that I am manually running the script, and it is taking 4 videos I finished editing to push as 1 long form and 3 shorts at varying scheduled dates. 

I was re-running the script because of random tiny fixable issues (syntax etc). So I am guessing there is a limit I missed in the Google Cloud site for how many times I am allowed make a push. 
I thought I read somewhere there was a limit of 10,000 calls in a day or something, however, as I mentioned, im calling only 4 videos per run. 

I did keep the "resumable upload" logic so Im wondering if every response chunk counts as a call too? 

Is there a way to setup a mock upload or dry run so I dont actually use up quota while testing? and Is there a way to raise the quota or can I use something like py-spy to figure out when and where my quota is being used? 

attached is the code being ran. NOTE: it successfully uploads. but maybe something im not considering is calling too many times and filling quota way too fast. 

Thank you to anyone willing to steer me in the right direction on this. youtubecall.jpgresumable.jpg is



Reply all
Reply to author
Forward
0 new messages