bumplzz69 / google-api-python-client

Automatically exported from code.google.com/p/google-api-python-client
Other
0 stars 0 forks source link

invalid grant error using service account #168

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
[Use this form for both apiclient and oauth2client issues]

What steps will reproduce the problem?
1.make service account
2.authorize using  SignedJwtAssertionCredentials
3.upload multiple files in succession

What is the expected output? What do you see instead?
I expected it to continue uploading files unless i hit the per user limit.
What happened:
I successfully uploaded 4 or 5 files, but on the 5th or 6th file it error out 
with a 
AccessTokenRefreshError: invalid_grant

all subsequent requests give us a 
AccessTokenRefreshError: Invalid response 403

What version of the product are you using? On what operating system?
we are using google-api-python-client 1.0c2 on ubuntu 12.04

Please provide any additional information below.
we followed this example 
http://code.google.com/p/google-api-python-client/source/browse/samples/service_
account/tasks.py

Original issue reported on code.google.com by dspites...@gmail.com on 20 Jul 2012 at 4:20

GoogleCodeExporter commented 9 years ago
This change should fix that issue. Please try running the code from head. 

http://code.google.com/p/google-api-python-client/source/detail?r=59a3057af22588
4cd9b483e9d166aefbb92b401c

Original comment by jcgregorio@google.com on 24 Jul 2012 at 9:24

GoogleCodeExporter commented 9 years ago

Original comment by jcgregorio@google.com on 1 Aug 2012 at 12:30

GoogleCodeExporter commented 9 years ago
we worked arrount it by initializing SignedJwtAssertionCredentials once at 
server startup. rather than on each request

Original comment by dspites...@gmail.com on 1 Aug 2012 at 3:16