prayagverma / gdata-python-client

Automatically exported from code.google.com/p/gdata-python-client
1 stars 0 forks source link

500 Server Error When trying to access ContactsFeed. #695

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
My Code is as below:
          gd_client = gdata.contacts.service.ContactsService()
          gd_client.UpgradeToSessionToken(authsub_token)
      feed = gd_client.GetContactsFeed()

Here I get the 300 Error
........
  File "/base/data/home/apps/s~accosatak/1.375257494525478541/session_helper.py", line 37, in get_user
    feed = gd_client.GetContactsFeed()
  File "/base/data/home/apps/s~accosatak/1.375257494525478541/gdata/contacts/service.py", line 104, in GetContactsFeed
    return self.Get(uri, converter=gdata.contacts.ContactsFeedFromString)
  File "/base/data/home/apps/s~accosatak/1.375257494525478541/gdata/service.py", line 1108, in Get
    'reason': server_response.reason, 'body': result_body}
RequestError: {'status': 401, 'body': '<html><head><meta 
http-equiv="Content-Type" content="text/html; 
charset=utf-8">\n<title>Error\n401\n(Client Error)!!1</title>\n<style 
type="text/css">\n        *{margin:0;padding:0}html,code{font:15px/22px 
arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{background:ur
l(data:image/png;base64,

AND after this long Base64 Data string.

How do I solve this? This was working in Python 2.5. Now I am migrating to 2.7

Original issue reported on code.google.com by sa...@myvotefor.in on 19 Apr 2014 at 9:39

GoogleCodeExporter commented 9 years ago
Sorry Not the 300 Error but the 500 Error

Original comment by sa...@myvotefor.in on 19 Apr 2014 at 9:40