For the past few days my apps sync script has been failing with the
error message below. IncompleteRead error from httplib.py. If
RetrieveAllUsers happens to work, I'll get the same error from
RetrieveAllNicknames as well.
Running v2.0.1 of the gdata python client. While looking though code,
I see around line 390 of
/usr/lib/python2.4/site-packages/gdata/apps/service.py :
def RetrieveAllUsers(self):
"""Retrieve all users in this domain. OBSOLETE"""
I wasn't aware that this function was being obsoleted, and can't find
any docs supporting this on the web. Just wondering if anyone can
shed any light on this, and on the error I'm getting. If you can
suggest any workarounds, that'd be great! We are a midsized
University with about 35,000 accounts.
thanks,
ray
---------------------------------------------
Traceback (most recent call last):
File "/usr/local/bin/gass-ray.py", line 47, in ?
users_feed = service.RetrieveAllUsers()
File "/usr/lib/python2.4/site-packages/gdata/apps/service.py", line
396, in RetrieveAllUsers
return self.AddAllElementsFromAllPages(
File "/usr/lib/python2.4/site-packages/gdata/apps/service.py", line
120, in AddAllElementsFromAllPages
next_feed = self.Get(next.href, converter=func)
File "/usr/lib/python2.4/site-packages/gdata/service.py", line 1013,
in Get
result_body = server_response.read()
File "/usr/lib/python2.4/httplib.py", line 460, in read
return self._read_chunked(amt)
File "/usr/lib/python2.4/httplib.py", line 509, in _read_chunked
value += self._safe_read(chunk_left)
File "/usr/lib/python2.4/httplib.py", line 557, in _safe_read
raise IncompleteRead(s)
httplib.IncompleteRead: ["
ogle.com/g/2005#kind' term='http://
schemas.google.com/apps/2006#user'/><title type='text'> -- snip --