Hello Stephane,

Could you print the error message that is returned by the API? According to
the use case, this seems related to an out of date data.
When updating or deleting an event, it is important to first retrieve the
event from the API so that your application doesn't delete other
applications changes.

You can find more information about Etag in the GData developer's
guide<http://code.google.com/apis/gdata/docs/2.0/reference.html#ResourceVersioning>
.

Best,
Alain

On Wed, Jul 20, 2011 at 1:06 PM, stéphane conversy <[email protected]>wrote:

> Hello,
>
> with javascript, I copied the code available here:
> http://gdata-jsguide.appspot.com/static/calendar/index.html#updateevent_anchor
> I can update an event successfully, but on the second time, the following
> error (at the end of this post) is displayed.
> What can I do ? is it because the event I store out-of-date somehow ?
> should I retrieve the event again ? how to do so easily ?
>
> Cheers,
>
> stephane.
>
> Error: 
> {"version":"1.0","encoding":"UTF-8","entry":{"xmlns":"http://www.w3.org/2005/Atom","xmlns$gCal":"http://schemas.google.com/gCal/2005","xmlns$gd":"http://schemas.google.com/g/2005","id":{"$t":"http://www.google.com/calendar/feeds/vblhnm4hgk034lbltt3b9v2cr8%40group.calendar.google.com/private/full/u9t10ii3mkbudlmfncajjn7ei4"},"published":{"$t":"2011-07-20T11:59:10.000Z"},"updated":{"$t":"2011-07-20T19:40:59.000Z"},"category":[{"scheme":"http://schemas.google.com/g/2005#kind","term":"http://schemas.google.com/g/2005#event"}],"title":{"$t":"test","type":"text"},"content":{"$t":"","type":"text"},"link":[{"rel":"alternate","type":"text/html","href":"http://www.google.com/calendar/event?eid\u003ddTl0MTBpaTNta2J1ZGxtZm5jYWpqbjdlaTQgdmJsaG5tNGhnazAzNGxibHR0M2I5djJjcjhAZw","title":"alternate"},{"rel":"self","type":"application/atom+xml","href":"http://www.google.com/calendar/feeds/vblhnm4hgk034lbltt3b9v2cr8%40group.calendar.google.com/private/full/u9t10ii3mkbudlmfncajjn7ei4"},{"rel":"edit","type":"application/atom+xml","href":"http://www.google.com/calendar/feeds/vblhnm4hgk034lbltt3b9v2cr8%40group.calendar.google.com/private/full/u9t10ii3mkbudlmfncajjn7ei4/63446874059"}],"author":[{"name":{"$t":"[email protected]"},"email":{"$t":"[email protected]"}}],"gd$comments":{"gd$feedLink":{"href":"http://www.google.com/calendar/feeds/vblhnm4hgk034lbltt3b9v2cr8%40group.calendar.google.com/private/full/u9t10ii3mkbudlmfncajjn7ei4/comments"}},"gd$eventStatus":{"value":"http://schemas.google.com/g/2005#event.confirmed"},"gd$where":[{"valueString":""}],"gd$who":[{"email":"[email protected]","rel":"http://schemas.google.com/g/2005#event.organizer","valueString":"Perso"}],"gd$when":[{"endTime":"2011-06-30T16:26:53.000+02:00","startTime":"2011-06-30T11:21:07.000+02:00"}],"gd$transparency":{"value":"http://schemas.google.com/g/2005#event.opaque"},"gd$visibility":{"value":"http://schemas.google.com/g/2005#event.default"},"gCal$anyoneCanAddSelf":{"value":"false"},"gCal$guestsCanInviteOthers":{"value":"true"},"gCal$guestsCanModify":{"value":"false"},"gCal$guestsCanSeeGuests":{"value":"true"},"gCal$sequence":{"value":11},"gCal$uid":{"value":"[email protected]"}}}
>
>
>  --
> 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
>



-- 
Alain Vongsouvanh

-- 
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

Reply via email to