Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 693 by
jpsch...@gmail.com: Can't access contact information
anymore
http://code.google.com/p/gdata-python-client/issues/detail?id=693
As of 4/1/2014 I'm no longer able to get contacts via the python gdata
library.
I'm using version 2.0.18 of the python gdata library distributed with
Ubuntu. Here is my script:
#!/usr/bin/env python
import gdata.contacts.service
gd_client = gdata.contacts.service.ContactsService()
gd_client.ClientLogin('user', 'password')
query = gdata.contacts.service.ContactsQuery()
query.max_results = 1000 # change for max contacts returned
feed = gd_client.GetContactsFeed(query.ToUri())
print feed
Here is the error that I get:
Traceback (most recent call last):
File "/home/jpschewe/bin/export-gcontact.py", line 11, in <module>
feed = gd_client.GetContactsFeed(query.ToUri())
File "/usr/lib/python2.7/dist-packages/gdata/contacts/service.py", line
104, in GetContactsFeed
return self.Get(uri, converter=gdata.contacts.ContactsFeedFromString)
File "/usr/lib/python2.7/dist-packages/gdata/service.py", line 1107, in
Get
'reason': server_response.reason, 'body': result_body}
gdata.service.RequestError: {'status':
301, 'body': '<HTML>\n<HEAD>\n<TITLE>Moved
Permanently</TITLE>\n</HEAD>\n<BODY BGCOLOR="#FFFFFF"
TEXT="#000000">\n<H1>Moved Permanently</H1>\nThe document has moved <A
HREF="
https://www.google.com/m8/feeds/contacts/default/full?max-results=1000">here</A>.\n</BODY>\n</HTML>\n', 'reason': 'Moved
Permanently'}
ERROR: Error getting contacts
Trying to visit the URL in my web browser gives a 404.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings