Google Tasks API: 403 Forbidden, Serving Limit Exceeded - google-api

Hello Google Tasks API team,
Since a couple of days ago we've started getting "403 Forbidden" for many of our users.
Can you please check what is going on? Our API console is clean, #calls are way bellow quotas.
Caused by: com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden
{
"code" : 403,
"errors" : [ {
"domain" : "global",
"message" : "Serving Limit Exceeded",
"reason" : "serviceLimit"
} ],
"message" : "Serving Limit Exceeded"
}
at com.google.api.client.googleapis.json.GoogleJsonResponseException.from(GoogleJsonResponseException.java:145) ~[google-api-client-1.15.0-rc.jar:1.15.0-rc]
at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:111) ~[google-api-client-1.15.0-rc.jar:1.15.0-rc]
at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:38) ~[google-api-client-1.15.0-rc.jar:1.15.0-rc]
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest$1.interceptResponse(AbstractGoogleClientRequest.java:312) ~[google-api-client-1.15.0-rc.jar:1.15.0-rc]
at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1042) ~[google-http-client-1.15.0-rc.jar:na]
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:410) ~[google-api-client-1.15.0-rc.jar:1.15.0-rc]
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:343) ~[google-api-client-1.15.0-rc.jar:1.15.0-rc]
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:460) ~[google-api-client-1.15.0-rc.jar:1.15.0-rc]

If this API is anything like the Google Directory API, this could mean you are hitting a "per user" rate limit. E.g. the directory API defaults to 15 requests per second per user, then returns this same 403 error. To fix this, change the quota in the Google API console, or make fewer requests per second. See:
API console: https://code.google.com/apis/console/
Documentation about quotas: https://developers.google.com/console/help/#cappingusage

Related

Is anyone else getting "Service temporarily unavailable." from Google Books API?

{
"error": {
"errors": [
{
"domain": "global",
"reason": "backendFailed",
"message": "Service temporarily unavailable.",
"locationType": "other",
"location": "backend_flow"
}
],
"code": 503,
"message": "Service temporarily unavailable."
}
}
Started to get this error several hours ago in response to Google Books API: Volume: list
For example, copy-paste the following line into the URL box of your internet browser:
https://www.googleapis.com/books/v1/volumes?q=orwell
It may be useful to refer to the definition of a 503 response code for insight into what to expect.
503 Service Unavailable
The server is currently unable to handle the request due to a temporary overloading or maintenance of the server. The implication is that this is a temporary condition which will be alleviated after some delay. If known, the length of the delay MAY be indicated in a Retry-After header. If no Retry-After is given, the client SHOULD handle the response as it would for a 500 response.
Note: In my experiment the endpoint mentioned did not provide any Retry-After header.
What to do...
"If I'm not back in 5 minutes, just wait longer." — Ace Ventura, Pet Detective.

Google Calendar API returns Daily Limit error

I get the following error when trying to access the Calendar API
{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "dailyLimitExceededUnreg",
"message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.",
"extendedHelp": "https://code.google.com/apis/console"
}
],
"code": 403,
"message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup."
}
}
However, I checked the google developer console and I am nowhere near hitting my limit (I'm at 2,500 queries when the max is 1,000,000). Also, I don't see how I am not authenticated because I use the OAuth 2.0 credentials to make the api call.
Check the status of the Google Calendar API from the Google Developer Console if it is enabaled.
Then wait for a few minutes after turning the API. You must ensure that you will get a new token each time before trying it.
You can also follow the suggested action that will help you about Google Calendar API Usage Limits error.

403 'serving limit exceeded' but have 'Unlimited requests/second/user'

We utilize the Content API for Shopping to make updates to our product data. We do this several times a day, and have done so for just over 2 months.
We made several successful calls today, but then started receiving the following:
Google API Error Response:
{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "servingLimitExceeded",
"message": "Serving Limit Exceeded"
}
],
"code": 403,
"message": "Serving Limit Exceeded"
}
}
That lasted about an hour, then we made successful calls for a bit, then started getting errors again.
Checking the Google API Console -both Quota and Reports, we have 'Unlimited requests/second/user' for the all aspects of this API.
Is there an API issue? If we are exceeded a quota, we do not see what that is.

ERROR 503 when using the google admin sdk directory

We have an automated batch that runs every day to synchronise users between an internal users MYSQL table and google accounts. Since the end of may (2014/05/29), this batch is failing because each request to create or update users results in the following response :
503 Service Unavailable { "code" : 503, "errors" : [ { "domain" : "global", "message" : "Backend Error", "reason" : "backendError" } ], "message" : "Backend Error" }
The only information I could find in the help center about 503 errors is that it comes from a quota being reached. Looking at the graphs available in the API console shows that we are well below the defined quota (150K/day), over the last 28 days period we did not even reach 0.05% of that quota.
Has anyone got an idea why we get that error since the quota doesn't seem to be the issue? Any help would be greatly appreciated.
Cheers,
Etienne Bömcke

pageSpeedOnline.pagespeedapi().runpagespeed(..) function fails with error 403

I have tried to analyze url page using pageSpeedOnline.pagespeedapi().runpagespeed(..) api but fails with 403 "Forbidden". The api is enabled in the console and the billing is also enabled but I am blocked further since it always fails with 403. The billing was just enabled since a week back.
Below is the response of the curl request,
curl "https://www.googleapis.com/pagespeedonline/v1/runPagespeed?url=http://code.google.com/speed/page-speed/&key=API_KEY"
{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "accessNotConfigured",
"message": "Access Not Configured. Please use Google Developers Console to activate the API for your project."
}
],
"code": 403,
"message": "Access Not Configured. Please use Google Developers Console to activate the API for your project."
}
}
Please help.
I got it resolved, by creating "Key for browser apps (with referers)" and used that API key in the project.

Resources