google api - Error status 409 while updating profile -


i'm stuck this:

several thousand profiles keep failing on update. don't know what's wrong them. can take on these?

a submitted profile/contact entry:

<ns0:entry xmlns:ns0="http://www.w3.org/2005/atom" xmlns:ns1="http://schemas.google.com/g/2005" xmlns:ns2="http://www.w3.org/2007/app" xmlns:ns3="http://schemas.google.com/contact/2008" ns1:etag="&quot;whcgq08krct7i2a_&quot;"><ns0:category scheme="http://schemas.google.com/g/2005#kind" term="http://schemas.google.com/contact/2008#profile" /><ns0:id>http://www.google.com/m8/feeds/profiles/domain/<domain>/full/<username></ns0:id><ns1:name><ns1:familyname>xxxxxxxx xx xxxx xxxxxxx</ns1:familyname><ns1:fullname>xxxxxxx xxxxxxxx xx xxxx xxxxxxx</ns1:fullname><ns1:givenname>xxxxxxx</ns1:givenname></ns1:name><ns0:updated>2013-09-09t21:26:21.000z</ns0:updated><ns1:phonenumber label="xxxxxxxxx">1234</ns1:phonenumber><ns1:phonenumber rel="http://schemas.google.com/g/2005#work">123 456 789</ns1:phonenumber><ns1:organization rel="http://schemas.google.com/g/2005#work"><ns1:orgdepartment>xxxxxxxx 123-x</ns1:orgdepartment><ns1:orgname>xxxxxxxx xx xxxxxxx</ns1:orgname></ns1:organization><ns0:title>xxxxxxx xxxxxxxx xx xxxx xxxxxxx</ns0:title><ns0:link href="https://www.google.com/m8/feeds/photos/profile/<domain>/<username>" rel="http://schemas.google.com/contacts/2008/rel#photo" type="image/*" /><ns0:link href="https://www.google.com/m8/feeds/profiles/domain/<domain>/full/<username>" rel="self" type="application/atom+xml" /><ns0:link href="https://www.google.com/m8/feeds/profiles/domain/<domain>/full/<username>" rel="edit" type="application/atom+xml" /><ns1:email address="<username>@<domain>" primary="true" rel="http://schemas.google.com/g/2005#work" /><ns2:edited>2013-09-09t21:26:21.000z</ns2:edited><ns3:status indexed="true" /></ns0:entry> 

response is:

server responded with: 409, <?xml version='1.0' encoding='utf-8'?><entry xmlns='http://www.w3.org/2005/atom' xmlns:gcontact='http://schemas.google.com/contact/2008' xmlns:batch='http://schemas.google.com/gdata/batch' xmlns:gd='http://schemas.google.com/g/2005' gd:etag='&quot;wxrtfuunrit7i2bu&quot;'><id>http://www.google.com/m8/feeds/profiles/domain/<domain>/full/<username></id><updated>2013-09-09t21:26:21.000z</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2013-09-09t21:26:21.000z</app:edited><category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/contact/2008#profile'/><title>xxxxxxx xxxxxxxx xx xxxx xxxxxxx</title><link rel='http://schemas.google.com/contacts/2008/rel#photo' type='image/*' href='https://www.google.com/m8/feeds/photos/profile/deusto.es/a.mdel'/><link rel='self' type='application/atom+xml' href='https://www.google.com/m8/feeds/profiles/domain/<domain>/full/<username>'/><link rel='edit' type='application/atom+xml' href='https://www.google.com/m8/feeds/profiles/domain/<domain>/full/<username>'/><gd:name><gd:fullname>xxxxxxx xxxxxxxx xx xxxx xxxxxxx</gd:fullname><gd:givenname>xxxxxxx</gd:givenname><gd:familyname>xxxxxxxx xx xxxx xxxxxxx</gd:familyname></gd:name><gcontact:status indexed='true'/><gd:email rel='http://schemas.google.com/g/2005#work' address='<username>@<domain>' primary='true'/></entry> 



code:

import gdata.contacts.client  client = gdata.contacts.client.contactsclient(domain='mydomain') client.clientlogin(email='superuser@mydomain', password='password', source='mydomain-myapp', account_type='hosted', service='cp') client.updateprofile(profile) 

i know clientlogin deprecated, but.. can try reproduce error?

solved

after reading this saw 409 response status error happening because contact/profile entry being updated 2 sources, result version conflict.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

c++ - Clear the memory after returning a vector in a function -

erlang - Saving a digraph to mnesia is hindered because of its side-effects -