I think, its a standard issue with almost all of the Google APIs, that when ever the post is made, its not guaranteed to succeed. It happens because of many reasons and one of the reason is that google has a quota system on per domain and per user basis, e.g. you can not do more than 20 reads and 10 writes per second under one user. The problem you are having might be related to quota issues and for that it is safer that you put fault tolerance in your code, e.g. make retries up to seven times and keep on adding 5 seconds delay in every attempt, so the second attempt will happen after 5 seconds, the third one will happen after 10, so on and so forth.
You may cross the quota threshold based on how your application is used and how is your business logic being written. I hope it helps. On Wed, Nov 16, 2011 at 6:08 PM, itDuzzit Steve <[email protected]>wrote: > We recently added a connector to the Google Calendar API and have > found it less reliable than the other Google APIs. > > If we do a calendar list > https://www.google.com/calendar/feeds/default/allcalendars/full?alt=jsonc > we occasionally get a 401 unauthorized error. I added retries, and > sometimes it works on the second try, sometimes on the third or > more. I even made it sleep a second before trying again and we still > get the errors intermittently. > > Here is the connector: > https://www.itduzzit.com/duzz/google-calendar-list > > Also, when creating an event. We sometimes get an invalid JSON error > and sometimes it works. > Here is the sample JSON that doesn't work sometimes: > > { "data": { "title": "Test", "details": "Test", "transparency": > "opaque", "status": "confirmed", "location": "", "when": [ { "start": > "2011-11-16T06:00:00.000Z", "end": "2011-11-16T06:15:00.000Z" } ] } } > > Here is our connector: > https://www.itduzzit.com/duzz/google-calendar-create-event > > Anybody experience the same or have suggestions? > > Steve M. > > -- > You received this message because you are subscribed to the Google > Groups "Google Calendar Data API" 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/calendar/community/forum.html > -- You received this message because you are subscribed to the Google Groups "Google Calendar Data API" 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/calendar/community/forum.html
