gzog / analytics-issues

Automatically exported from code.google.com/p/analytics-issues
0 stars 0 forks source link

superProxy thinks we're exceeding daily quota even when we're not? #853

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,

We're using the superProxy hosted on Google App Engine and connected to our 
Analytics API via OAUTH. It's configured to fetch real-time data once a minute. 
After half a day or so of this, we started seeing a quota error:

"{u'error': {u'message': u'Quota Error: Rate Limit Exceeded', u'code': 403, 
u'errors': [{u'reason': u'rateLimitExceeded', u'domain': u'global', u'message': 
u'Quota Error: Rate Limit Exceeded'}]}}"

However, looking at the Analytics API in the Google Developers Console, it 
doesn't look like we were anywhere near our quota (see attached file). We sent 
about 1400 requests that day, out of a limit of what should be 50,000 requests 
in the quotas tab.

Original issue reported on code.google.com by ro...@wholesalesolar.com on 14 Jan 2016 at 6:58

Attachments:

GoogleCodeExporter commented 8 years ago
The Rate Limit Exceeded error is independent  of the 50,000 requests per day 
limit. There is a maximum 10 QPS per-user limit that you can set in the 
Developer Console, there is also a 10 concurrent requests per view (profile) 
limit.

https://developers.google.com/analytics/devguides/reporting/core/v3/limits-quota
s#general_api

https://developers.google.com/analytics/devguides/reporting/core/v3/limits-quota
s#core_reporting

Original comment by mcoh...@google.com on 14 Jan 2016 at 7:21

GoogleCodeExporter commented 8 years ago
Is that what the rate-limit means? If so, why would a proxy that runs from a 
once-per-minute cron job trigger more than 10 queries per second?

Original comment by ro...@wholesalesolar.com on 14 Jan 2016 at 9:08

GoogleCodeExporter commented 8 years ago
I just checked the proxy itself and it says it's only made 2850 requests total, 
60 seconds apart. It shouldn't be hitting the QPS limit either.

Original comment by ro...@wholesalesolar.com on 14 Jan 2016 at 9:24

Attachments:

GoogleCodeExporter commented 8 years ago
And even the API management interface, as shown in the first picture, says the 
QPS is only 0.015 requests/second, far less than 10.

Original comment by ro...@wholesalesolar.com on 14 Jan 2016 at 9:26