We recently started receiving 403 Quota Exceeded error responses from the QnAMaker Preview API when calling the get answer endpoint. I suppose this is because the monthly quota of getting answers has been exceeded.
My question is if there is a way to upgrade the QnAMaker Preview subscription so that quota would at least be higher and we could continue using the service? And to do it so that we could still be using the Preview version and would not be required to migrate to the GA version.
The reason why we are hesitant to migrate to GA is that it does not have the Train API the preview version has. Train API is very important to our business goals.
We are right now not increasing quota for the preview stack, as we want the users to move to GA stack.
We are working on enabling the Train API. Can you drop a mail to qnamakersupport#microsoft.com describing your scenario and how you are using the Train API. We might be able to suggest some workarounds.
Related
Bing Customer Search has stopped returning results in many cases today. We received an email that was a quota warning, however, we were informed the quota was 20,000 where the email says 1,000.
The pricing page also still says that quota is 20,000 for the preview.
Is there a general problem with the service or an issue with the quota system?
We don't want to have to move services again.
It was throwing a 403 quota error. Then a night later it was no longer doing so. This was probably a bad cloud update and was fixed by Microsoft.
I have a wordpress blog. When I logged in to the dashboard, the following exception was highlighted at the top:
[Ga_Lib_Api_Request_Exception] There was an error while contacting Google API: { "error": { "code": 429, "message": "Insufficient tokens for quota group and limit 'AnalyticsDefaultGroupCLIENT_PROJECT-1d' of service 'analyticsreporting.googleapis.com', using the limit by ID '123******456'.", "status": "RESOURCE_EXHAUSTED", "details": [ { "#type": "type.googleapis.com/google.rpc.Help", "links": [ { "description": "Google developer console API key", "url": "https://console.developers.google.com/project/207216681371/apiui/credential"}]}]}}
From the exception message I could infer that it is something related to Google Analytics and its API.
However, I'm curious to know what could have caused this exception. Also, what steps can I take in order to avoid such exceptions?
Manoj gave you the technical information I am going to give you a bit of extra info and answer the following part of your question.
However, I'm curious to know what could have caused this exception. Also, what steps can I take in order to avoid such exceptions?
When we as developers want to access Google APIs we need to register our application with Google. Each API has a different quota that the developers need to keep track of.
a quota is the number of requests you can make to an API.
For example: Considering the Google analytics by default each user of an application can make a maximum of 10 requests a second this is to prevent flooding the servers. You can also make a maximum of 10000 requests to each Google analytics View per day. Most of the quotas are user based however there is one that is project based. RESOURCE_EXHAUSTED is one such quota.
By default the project based quota for google analytics is 50000 requests. If you have a large number of users all making requests you can quickly run out of quota. The quota on my application for example is 500000 my users run though about 70% of that each day. Once you hit this quota there is nothing that can be done the application is locked out until the quota is reset at midnight west cost USA time.
What can be done to avoid it. First off the author of the plugin needs to request an additional quota so that they can service their users better they should also be checking this periodically so that there users never see it. Its probably going to take them a month to get approved for additional quota. As a user you can help by only making requests that you need to make there by not using to much of the daily quota up.
As Manoj stated there is nothing you can do personally to fix this you will need to contact the author of the plugin.
A quick search concluded that the analytics plugin used by your blog may be using more hits and quota that is permissible by google analytics api
You can find error description here and quota limits here. Please get in touch with plugin developer to get this sorted.
It was caused by a WordPress plugin you are using called "Google Analytics," which is one of many plugins you can use to easily insert analytics tracking code into your page's source. You might disable it and install another plugin that does this without causing errors.
In addition, if this plugin is synchronously pulling from Google's servers on each request, it is needlessly slowing down your page load times. There is no reason why the plugin needs to do this.
I got the cloud vision API working, and I was having lots of fun tagging my images. I've only tested it on about 50 images. It was working yesterday. When I tried again today, I got an error. For the label annotation, the error is:
"Resource has been exhausted (e.g. check quota)."
For face detection, the error is:
"Deadline expired before operation could complete."
I don't think I have gone over the 1,000 monthly limit, but I can't figure out how to check. Does anyone know?
Or, does anyone have any ideas about why this would have happened if I am indeed below the 1,000 request limit (which I am pretty sure I am!)
Thanks for any help!
For future reference, you can check your quote using the API Manager in the Cloud Console.
On the left-nav, jump to API Manager Dashboard, then search for the Vision API.
The Vision API dashboard will have a "Quotas" tab that shows you how many requests have been made, etc.
You can also look at the Quotas page in the IAM & Admin section of the console, and filter by Service ("Google Cloud Vision API"):
In the google applications developer console I can see the global quota usage for a google API:
I would like to achieve the following:
Be able to programatically query the remaining quota, to ensure that important tasks can always be completed.
Receive some form of alert when we are approaching the quota limit.
So far I have tried configuring the 'Monitoring' section of the developer console, but all I can see are uptime checks. This question has also been asked in other areas of the interwebs but no-one has ever received an answer.
At this time there is no API for checking the quota on the Google Developer console.
I have successfully written a tool to display upcoming calendar events on a website using Google's calendar API (v2). I am using the username/password method outlined at https://developers.google.com/google-apps/calendar/v2/developers_guide_dotnet#AuthClientLogin. Today an instance of this code would not return data or a decent error message. I finally logged into the web server and browsed directly to http://calendar.google.com and logged in using the credentials. I was challenged by Google's captcha and then my code worked.
How do I get around API calls being blocked by Google's captcha security? I don't want to have to re-code for magic cookies but I will if I have to. I have read some about generating tokens but I dont know if that is something I have to do once or every time the code is called.
If your app is a service that is getting used by many people, you might be running into API call bandwidth limitation. That is, google is limiting the number of API requests per time interval.
If this IS getting used by many people, you may have to upgrade to a paid account.