Google PHP API Analytics gives strange userRateLimitExceeded -
since gapi stopped working 2 days ago had rewrite code google analytics dashboard. decided use google api php client (https://github.com/google/google-api-php-client) got working pretty nice @ local vagrant ubuntu server when deploy code remote webserver 500 php error. when checking logs discover error message creates
(403) quota error: user rate limit exceeded.
how can code working on vagrant not on remote webserver? domains both added correctly developers console. tried setting query/user/second-setting 10 or more not change anything.
allright, fixed it:
i added sleep(1); php foreach loop querying google analytics profiles have in account. apparently vps querying google's api faster local development environment , therefore not getting errors local.
Comments
Post a Comment