Closed GoogleCodeExporter closed 9 years ago
The erroneous line seems to be the first nested tag:
<ns2:userDefinedField value="null"
xmlns:ns2="http://schemas.google.com/contact/2008" />
Which is line 2 of the attached text parsed from printing the "entry" variable
before the call to `self.gd_client.Update(entry)` on line 127 of contact-sync
[note: it is line 128 in my original report because I added a line to append to
the python path near the beginning of the file)
Original comment by meanderi...@silverleafstudios.net
on 22 Nov 2011 at 8:54
Attachments:
[deleted comment]
Somehow that contact is malformed. userDefinedField is supposed to have both a
key and a value. At the point of the failure the script has added a field to
an existing contact read from the server and is just trying to write back the
updated contact. It appears the failure is outside the script, either in the
gdata library or in a broken contact on the server.
I tried creating a contact with a user-defined field. With the GUI it is not
possible to create one with just a key and no value. It is, however, possible
to create a contact with an empty key and a non-empty value. The gdata API
fails on update with such a field.
I'm not inclined to fix this with a hack in the script. Others have noted the
same problem, e.g. https://code.google.com/p/google-gdata/issues/detail?id=518
Original comment by mad...@tapil.com
on 23 Nov 2011 at 2:34
Original issue reported on code.google.com by
meanderi...@silverleafstudios.net
on 21 Nov 2011 at 11:00