Hi Daniel, You can only update the contact and its photo separately, what you describe certainly looks like a bug, we will try to reproduce it in our end. If possible, please also share a sample of your code.
Cheers, Julian On Oct 8, 9:54 am, dflorey <[email protected]> wrote: > Some more info: > My next try was this: > - retrieving the contact > - updating the photo > - reloading the contact UNTIL it gets a new eTag assigned (can take up > to 20 reloads, so my guess that asynchronous photo update causes this > seems to be right) > - updating the contact > > Unfortunately, even after retrieving a new contact with updated eTag I > still get: > Failed to update contact 'XXX XXXXX' with url=http://www.google.com/m8/ > feeds/contacts/daniel.floreysoft%40googlemail.com/full/ > 114f9fc98f4acbb6' > com.google.gdata.util.PreconditionFailedException: OK > Mismatch: etags = ["R3c7fjVSLyt7ImA9WxNXGUQLRA0."], version > = [1254991136967000] > > I am using the fresh entry with the new etag to do the update so this > looks like a bug to me. > > On 8 Okt., 10:25, dflorey <[email protected]> wrote: > > > Some more info from my side: > > When > > - retrieving a contact > > - updating the contact > > - reloading the contact (to get the new eTag) > > - updating the photo > > the new contact info is lost. The new photo is attached, but the > > changes on the contact itself are gone > > > When > > - retrieving the contact > > - updating the photo > > - reloading the contact > > - updating the contact > > the photo is gone. > > > So my guess is that is takes some time on the server side to update > > the info and that depending on race conditions it sometimes works, > > sometimes not. > > Is there a reliable way to update both photo and contact info at the > > same time? > > > On 8 Okt., 09:56, dflorey <[email protected]> wrote: > > > > Hi, > > > I need some info about what really happens behind the scenes when > > > uploading a new photo to a contact. > > > When uploading a photo, it seems that the update timestamp gets > > > updated. > > > > I want to update a contact and the photo at the same time. So what > > > steps do I have to take? > > > From time to time I get mismatching eTag errors when simply updating > > > the contact and the photo without reloading the contact inbetween. > > > > Can someone provide some more infos? > > > Thanks a lot in advance, > > > Daniel > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Contacts 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://groups.google.com/group/google-contacts-api?hl=en -~----------~----~----~----~------~----~------~--~---
