prayagverma / gdata-python-client

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

Occasionaly SyntaxError using gdata-python to get worksheets feed #703

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm getting an occasional error when trying to fetch a list of worksheets from 
gdata. This does not happen for all spreadsheets, but will consistently happen 
to the same spreadsheet for a period of several days to weeks.

Traceback (most recent call last):
  File "/mnt/shared_from_host/snake/base/fetchers/google_spreadsheet/common.py", line 176, in get_worksheet_list
    feed = client.get_worksheets(spreadsheet_id)
  File "/home/ubuntu/.virtualenvs/snakeenv/lib/python2.6/site-packages/gdata/spreadsheets/client.py", line 108, in get_worksheets
    **kwargs)
  File "/home/ubuntu/.virtualenvs/snakeenv/lib/python2.6/site-packages/gdata/client.py", line 640, in get_feed
    **kwargs)
  File "/home/ubuntu/.virtualenvs/snakeenv/lib/python2.6/site-packages/gdata/client.py", line 278, in request
    version=get_xml_version(self.api_version))
  File "/home/ubuntu/.virtualenvs/snakeenv/lib/python2.6/site-packages/atom/core.py", line 520, in parse
    tree = ElementTree.fromstring(xml_string)
  File "<string>", line 86, in XML
SyntaxError: no element found: line 1, column 0

What is the expected output? What do you see instead?
Expect to receive a worksheets feed, receive an empty string instead.

What version of the product are you using?
gdata 2.0.18
Python 2.6.8
OAuth 2

Please provide any additional information below.

Original issue reported on code.google.com by csmi...@gmail.com on 7 Aug 2014 at 7:03

GoogleCodeExporter commented 9 years ago
Sounds like a server-side issue, i.e. not related to this library. If it is 
intermittent, you should catch it and retry. Closing.

Original comment by afs...@google.com on 30 Dec 2014 at 8:38