invalid grant error using service account

207 views
Skip to first unread message

Tyler Tallman

unread,
Jul 18, 2012, 1:31:10 PM7/18/12
to oauth...@googlegroups.com
It seems this error is intermittent.
we upload several files to google drive and the 5 or 6th will fail giving an
AccessTokenRefreshError: invalid_grant

all subsequent requests give us a 
AccessTokenRefreshError: Invalid response 403

we are using google-api-python-client 1.0c2

any help would be appreciated

Breno de Medeiros

unread,
Jul 18, 2012, 4:37:31 PM7/18/12
to oauth...@googlegroups.com
Are you performing these refresh-for-access token requests in batch over a very short time period?

Try adding a few seconds delay after receiving the first error -- it maybe that your code is being rate-throttled and if so, slowing down the rate of requests should do the trick.



--
You received this message because you are subscribed to the Google Groups "oauth2-dev" group.
To view this discussion on the web visit https://groups.google.com/d/msg/oauth2-dev/-/_a_DUieAYSUJ.
To post to this group, send email to oauth...@googlegroups.com.
To unsubscribe from this group, send email to oauth2-dev+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/oauth2-dev?hl=en.



--
--Breno

Tyler Tallman

unread,
Jul 20, 2012, 12:05:04 PM7/20/12
to oauth...@googlegroups.com
I am using googles python api with a service account. It must be performing these refresh-for-access token requests for me.


On Wednesday, July 18, 2012 3:37:31 PM UTC-5, breno wrote:
Are you performing these refresh-for-access token requests in batch over a very short time period?

Try adding a few seconds delay after receiving the first error -- it maybe that your code is being rate-throttled and if so, slowing down the rate of requests should do the trick.
On Wed, Jul 18, 2012 at 10:31 AM, Tyler Tallman <dspit...@gmail.com> wrote:
It seems this error is intermittent.
we upload several files to google drive and the 5 or 6th will fail giving an
AccessTokenRefreshError: invalid_grant

all subsequent requests give us a 
AccessTokenRefreshError: Invalid response 403

we are using google-api-python-client 1.0c2

any help would be appreciated

--
You received this message because you are subscribed to the Google Groups "oauth2-dev" group.
To view this discussion on the web visit https://groups.google.com/d/msg/oauth2-dev/-/_a_DUieAYSUJ.
To post to this group, send email to oauth...@googlegroups.com.
To unsubscribe from this group, send email to oauth2-dev+unsubscribe@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/oauth2-dev?hl=en.



--
--Breno
Reply all
Reply to author
Forward
0 new messages