googleapi: Error 403: Rate Limit Exceeded, rateLimitExceeded - google-drive-api

I understand the error is part of API quota limits but i have not been able to find a way to;
Track usage
Know when API limit resets
I have ran through information in stackoverflow and google dev portals still can't find any clear guidance.
Can any one provide clear guidance if available?

From this article:
If you are experiencing errors such as "User Rate Limit Exceeded", you are reaching or exceeding your destination Google Gmail, Calendar or Drive account's API quota. These quotas usually reset after a 24 hour period, and migrations can be rerun / continued.
You can apply the suggestion actions from the Google documentation:
Batch the requests.
Use exponential backoff to retry the request.

Related

Google maps geocode api free daily limit get over in one hit, it happening due to I not enable billing?

I am hitting below URL to test my key
https://maps.googleapis.com/maps/api/geocode/json?latlng=20.0041,73.7175&key=$key
it show this an error after one hit
{
error_message: "You have exceeded your daily request quota for this API. If you did not set a custom daily request quota, verify your project has an active billing account: http://g.co/dev/maps-no-account",
results:[],
status: "OVER_QUERY_LIMIT"
}
Please help me why it is happening, anything to do with enable billing?
As stated in the comments to the question, you need to enable billing, even if you are only using the free quota. See the docs about this change for more information.

google maps requests are forbidden with a status of 403 after working very well for at least a day

I am using the Google Maps Javscript Api, v3 and everything is working well up to a point where the requests for the map images are forbidden with a status of 403. Usually the map stops loading after a period of time in which the page/session is open: it may be 24 hours, it may be more than 48h, I couldn't actually find a more accurate period.
Given the fact that we want to have a live website and a testing one – different domains, I generated 2 different keys, and I am loading them conditionally, but the html rendered is the one expected.
var mapKey = VanillaRate.Domain.Settings.AppSettings.GoogleMapsApiKey;
and the script tag is:
script src="https://maps.googleapis.com/maps/api/js?key=#(mapKey)&libraries=places" async defer
The usage limits were not exceeded, the referrer is well set.
The error appears when the map is zoomed and it's:
Failed to load resource: the server responded with a status of 403 () - maps.googleapis.com/maps/api/js/StaticMapService.GetMapImage?....
Since I couldn’t find any exact posted situation nor documentation about it, it is possible to be a timeout on google servers for security reasons and this is why the requests are forbidden for a session longer than a day?
EDIT: I forgot to mention that after refreshing the tab, everything works well. If it was indeed the usage limit, would the server respond with success after refresh? I've read that in this case, the map wouldn't work all day. Is that right?
If the response is still a HTTP 403 (Forbidden) error, the signature was not necessarily the problem, it may be related to usage limits instead.
This typically means your access to the web service has been blocked on the grounds that your application has been exceeding usage limits for too long or otherwise abused the web service.
I find this answer on google developer. There is no simply way to resolve this problem. Google recommended two solutions:
Reduce requests to the server;
Or, 'purchasing additional allowance for your Google Maps APIs for Work license.'
You can also try to access to the the Google Cloud Support Portal to signal your problem.
I find this informations in google developer here. You can find on this link some solutions like I detail to you and the explanation of your problem.
"The usage limits were not exceeded"
Are you sure? You're loading the places library, in which case this applies:
Google Places API Web Service
Default 1,000 free requests per day,
increased to 150,000 free requests per day after identity
verification.
https://developers.google.com/maps/pricing-and-plans/
See also:
https://developers.google.com/places/web-service/usage
https://developers.google.com/maps/documentation/javascript/places#UsageLimits

Google Map Services(Places) returning error message "You have exceeded your daily request quota for this API." But I've used it just for a while

I am using Google Maps service (Places, directions). After using for a while I am receiving response :
{ "error_message" : "You have exceeded your daily request quota for this API.", "predictions" : [], "status" : "OVER_QUERY_LIMIT"}.
I found this link Usage limits for services when used with Google Maps Javascript API v3. In this link it is mentioned that "Places API allows 1,000 or 100,000 (if you're verified) requests per 24 hours." But i have not requested it even for 200 times.
Is there some other reason for this response or is there any alternative to get rid of this problem. Thanks in advance.
Usage Limits for Google Maps API Web Services
Yes. There is another possible reason for getting the "Over query" message. And it's a common problem. If you make subsequent query requests too quickly, Google will respond with the over query limit message you posted.
From the Google API spec
Usage limits exceeded
If you exceed the usage limits you will get an OVER_QUERY_LIMIT status code as a response.
This means that the web service will stop providing normal responses and switch to returning only status code OVER_QUERY_LIMIT until more usage is allowed again.
This can happen:
Within a few seconds, if the error was received because your
application sent too many requests per second.
Some time in the next 24 hours, if the error was received because
your application sent too many requests per day. The time of day at
which the daily quota for a service is reset varies between customers
and for each API, and can change over time.
Add delay between requests to eliminate error
You need to insert a delay between requests to the Google Map API to get rid of the message and get the API to respond. How you implement a delay depends upon the platform you're using.

Error 403 google analytics API Access Not Configured

So, I am using gadash to get a google analytics dashboard on a system I am building. I had it working earlier with no problem but now It is throwing this 403 Access not configured error. Why would it do this with no code changes since it was working? It is being sent from a web server.
Probably you exceeded the qouta allowed by Google. Or exceeded the requests per second limit.
403 means that the server understood the request but refuses to fulfill it.. And that the problem is not an authentication problem as described here
You can find google analytics absolute limits here
So please verify that the requests per seconds and quota didn't exceeds the Google limits.

Google apps script Error "UrlFetch failed because too much traffic is being sent to the specified URL."

I can not find anything about this error. The script worked earlier today and I need to run it daily to load files into salesforce. Is this a google limit, and how do i get past it?
See quota limits here (click on quota tab).
See the first two daily limits on UrlFetch towards the bottom.
To preserve the fidelity of the system for all users, there are some published limits on how much UrlFetch can be invoked by a single user/script.