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
gdata-pyt...@googlecode.com
unread,
Apr 3, 2014, 4:16:29 PM4/3/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
I am having this issue as well. From the Google Data Contacts API webpage:
Important: As of March 31, 2014, in order to increase security, the Contacts API began redirecting HTTP GET requests to HTTPS, and rejecting POST, PUT, and DELETE requests made with HTTP. If your application uses the HTTP protocol, please switch to HTTPS. More information.
Anyway to tell the gdata python client to use https?
gdata-pyt...@googlecode.com
unread,
Apr 3, 2014, 5:15:59 PM4/3/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
I think I went down that road when I first encountered this problem, but could not get the https URL to work correctly.
As stated, if you want to take a stab at it, that would be great . . . but the proposed solution has been working flawlessly for me for the last several months.
gdata-pyt...@googlecode.com
unread,
Jan 1, 2015, 9:43:34 AM1/1/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
I thing I also tried the https path. As I recall it got troublesome with HTTPS and the fact that Google redirects. It seems like A good solution though, I would like to see a patch.