s15199d
s15199d

Reputation: 7717

Quota exceeded for quota metric 'Requests' and limit 'Requests per minute' of service 'mybusinessaccountmanagement.googleapis.com'

I get this error after making my first request:

Quota exceeded for quota metric 'Requests' and limit 'Requests per minute' of service 'mybusinessaccountmanagement.googleapis.com'

How can I be over my quota after my first request?

if(File.Exists(ApplicationVariables.CertPath)) { 
                    GoogleCredential credential;
                    using (var stream = new FileStream(ApplicationVariables.CertPath, FileMode.Open, FileAccess.Read))
                    {
                        credential = GoogleCredential.FromStream(stream).CreateScoped("https://www.googleapis.com/auth/business.manage");
                    }

                    // Create the service.
                    var service = new MyBusinessAccountManagementService(new BaseClientService.Initializer()
                        {
                            HttpClientInitializer = credential,
                            ApplicationName = "Google Reviews Downloader",
                        });

                    //var bookshelves = await service.Mylibrary.Bookshelves.List().ExecuteAsync();
                    var accounts = await service.Accounts.List().ExecuteAsync();

                    Console.WriteLine("accounts:" + accounts);

                }

Upvotes: 14

Views: 26512

Answers (2)

Vishnu TejaReddy
Vishnu TejaReddy

Reputation: 21

Try once again, the same issue popped for me when I tried firebase init functions in my project. After a while I tried once again, and issue didn't appear If the issue still persists, then I think @Linda Lawton's answer is the way to go ...

Upvotes: 0

Linda Lawton - DaImTo
Linda Lawton - DaImTo

Reputation: 116968

That would depend entirely on how much quota you have currently.

When you enable the My Business Account Management API in Google developer console. THe default quota is 0

enter image description here

I would suggest that you try and add additional quota.

enter image description here

Your going to have to click the quota page link and dig around in there a while until you figure out how to increase the quota, they changed it recently, you may have to apply for quota im not sure with this api.

I have tried and im not any wiser as to how to request quota or increase the quota. I wonder if this is one of the APIs that you need special permission to access. How you get that permission im not sure but im going to do a bit of digging.

Upvotes: 9

Related Questions