rishuk51 / analytics-issues

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

Managment API returning false 403 - insufficentPermissions error #426

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

Name of affected component: Management API

Name of related library and version, if applicable (e.g. Java, Python,
HTTP, etc.):

Issue summary:
403 : User does not have sufficient permissions for this profile

Notes:
I have an SSIS task that extracts a customers data.    This extract can run for 
hours, depending upon how much data there is to extract. (This is not a new 
ssis task, nor has it been changed)  This is also not an issue with the Oauth 
refreshing, or quota as those would be a different error message. 

  Randomly we are getting a 403 error that they don't have access to the view.  It is not possible that the user suddenly doesn't have access to the view, as it has been extracting data fine for hours.   

403  insufficent Permissions is not an error I would normally retry on.  But by 
simply sending the request again I am able to retrieve the data. It appears to 
take on average 3 retries to get the data back.  My code has implemented 
Exponential Back-off as recommended: 
https://developers.google.com/analytics/devguides/reporting/core/v3/coreErrors#b
ackoff

I found a post on Google+ someone that has recently started getting 403 and 503 
errors.  I don't know if i am getting 503's as I am already handling those with 
the same retry.  

https://plus.google.com/114897361373655654047/posts/STANXVoxVpb

Original issue reported on code.google.com by laurl...@gmail.com on 1 May 2014 at 8:52

GoogleCodeExporter commented 9 years ago
I am actually not sure if this is an issue with the management API i guess it 
would depend upon how the system is designed. I am infact querying the core 
reporting api when i get the error: 
https://www.googleapis.com/analytics/v3/data/ga?quotaUser=AUser&max-results=2000
&samplingLevel=HIGHER_PRECISION&dimensions=ga:landingPagePath&ids=ga:66472350&me
trics=ga:pageviews&start-date=2014-01-01&end-date=2014-04-29

That is an example of a request that failed then worked again after 2 retrys.

Original comment by laurl...@gmail.com on 1 May 2014 at 8:56