When does the daily error limit for the analytics API reset?

Viewed 271

According to docs, the daily request limits all reset at midnight pacific, but the daily error limit just says per day. Is this also reset at midnight or is this a rolling 24 hour period?

3 Answers

daily error limit

The daily error limit is something that they added a few years back. The idea behind is is that if your application sends to many errors. Error's being making requests that are invalid. This is not the errors realted to the quota or going to fast.

Google added this error to stop people looping though bad requests and not fixing their code. The thing is I have never heard of anyone actually hitting this limit.

I was told at the time that if your app continues with these errors the length of time you are banned gets longer each time. I say banned because it is actually like a ban Google is stopping you from making requests that are useless as they are wrong.

So when will it reset off hand i remember something about days or a perm ban. If you can give me the full error message you are getting i can contact the team for you and get some more details. Or PM me on twitter and if you give me the project id i might be able to get you some info that way as well.

I don't have an authoritative answer but based on a lot of experimentation over the last week it looks like it is a 24-hour rolling window and not based on a set time, like the daily max request rate limits.

You're correct that the daily server error quotas are 24-hour rolling windows. We updated the documentation on sever error quotas on the Developer's site:

Server error rate quotas are enforced over rolling windows of time for each of the hourly and daily error rate quotas. One hour after a project and view pair's first server error, the quota resets. If a project and view pair sends 10 server errors in one hour, the project and view pair is blocked from the API until the hour after the first server error elapses.

For example if a project and view pair have not sent a server error in the last 24 hours, this project and view will have used 0 of its 50 quota. Let's say this project and view now send a server error at 6:12 AM. If this project and view send 49 additional server errors before 6:12 AM of the following day, this project and view will be blocked until 6:12 AM of the following day. At 6:12 AM of the following day, the server error rate quota will completely reset for this project and view.

There are two sever error quotas: 1) daily & 2) hourly. If either of these quotas are exhausted, the project and view pair are blocked from making requests for up to the next 24 hours or up to the next hour (respectively). The duration of being blocked does not increase if a project and view pair repeatedly exhaust this quota. For example, it is impossible to be blocked for more than 24 hours.

Thanks,

The Google Analytics Team

Related