This 503 seems to be the standard rate limiting measure, meaning we're
exceeding "certain number of api calls per second" quota. So I had to
implement the "exponential backoff" (as adviced in some google forum) to put
sleeps and call again later
(http://en.wikipedia.org/wiki/Exponential_backoff)

 Seems to be working well now. This just is not well documented for the
contacts API, I found references to this somewhere else.

 Cheers


On 4/16/12 10:55 PM, "Donald" <[email protected]> wrote:

> 48+ hours later, the GData Contacts API continues to be problematic.
> While I've been able to get around some of the problems by rewriting
> my code to batch 100 contact operations into each ticket, my requests
> to download and upload photos continue to fail for the most part, and
> I don't think there is a way to batch photo uploads and downloads.  Is
> Google imposing a rate limit on how many photos we can request per
> second?  Would Google consider lifting this rate limit or at the very
> least making the rate limit per hour instead of second? Having a limit
> of perhaps 5000 photo downloads/uploads per hour seems like a better
> approach than setting a limit of perhaps 2 contacts per second which
> seems to be the current behavior.
> 
> In addition to the problem with photos, requests to create multiple
> contact groups with a batch operation often come back with only some
> of the groups having been created, so my app has to detect that case
> and then submit another batch operation (up to 5 times in my
> experience) to get all of the contact groups created.
> 
> Google, if you could get to the bottom of these issues, I would really
> appreciate it!
> 
> On Apr 16, 9:35 am, Donald <[email protected]> wrote:
>> Google, is there any information you can give us about these mysterious
>> errors that just started occurring?  It has created a big problem for us.
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> On Sunday, April 15, 2012 12:54:41 AM UTC-7, Donald wrote:
>> 
>>> I'm getting similar errors for my contacts sync app for the iPhone.  Is
>>> there a quota on contacts now?
>> 
>>> On Saturday, April 14, 2012 11:14:09 PM UTC-7, Alexey Panteleev wrote:
>> 
>>>>  Ok, going to put rate limiting handling in place ...
>> 
>>>> On 4/13/12 12:08 PM, "Alexey Panteleev" <[email protected]> wrote:
>> 
>>>> Hello, we just started getting the following error for all our users.
>>>> Could you please explain what is going on? We're still using v2 api.
>> 
>>>> google.gdata.util.ServiceException: Service Unavailable
>>>> Temporary problem - please try again later. The user is over quota.
>> 
>>>> com.yoxel.sync.mail.SyncException:
>>>> com.google.gdata.util.ServiceException: Service Unavailable
>>>> Temporary problem - please try again later. The user is over quota.
>> 
>>>> Caused by: com.google.gdata.util.ServiceException: Service Unavailable
>>>>         at
>>>> com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGData
>>>> Request.java:624)
>>>> ~[gdata-core-1.0-1.41.5.jar:na]
>>>>         at
>>>> com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleG
>>>> DataRequest.java:563)
>>>> ~[gdata-core-1.0-1.41.5.jar:na]
>>>>         at
>>>> com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataReques
>>>> t.java:552)
>>>> ~[gdata-core-1.0-1.41.5.jar:na]
>>>>         at
>>>> com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java
>>>> :530)
>>>> ~[gdata-core-1.0-1.41.5.jar:na]
>>>>         at
>>>> com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest.
>>>> java:535)
>>>> ~[gdata-core-1.0-1.41.5.jar:na]
>>>>         at com.google.gdata.client.Service.update(Service.java:1563)
>>>> ~[gdata-core-1.0-1.41.5.jar:1.41.5]
>>>>         at com.google.gdata.client.Service.update(Service.java:1530)
>>>> ~[gdata-core-1.0-1.41.5.jar:1.41.5]
>>>>         at
>>>> com.google.gdata.client.GoogleService.update(GoogleService.java:583)
>>>> ~[gdata-core-1.0-1.41.5.jar:1.41.5]


-- 
You received this message because you are subscribed to the Google
Groups "Google Contacts, Shared Contacts and User Profiles APIs" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://code.google.com/apis/contacts/community/forum.html

Reply via email to