Issue 703 in gdata-python-client: Occasionaly SyntaxError using gdata-python to get worksheets feed

37 views
Skip to first unread message

gdata-pyt...@googlecode.com

unread,
Aug 7, 2014, 3:03:38 PM8/7/14
to gdata-python-client-...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 703 by csmi...@gmail.com: Occasionaly SyntaxError using
gdata-python to get worksheets feed
http://code.google.com/p/gdata-python-client/issues/detail?id=703

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.


--
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,
Dec 30, 2014, 3:39:26 PM12/30/14
to gdata-python-client-...@googlegroups.com
Updates:
Status: Invalid

Comment #1 on issue 703 by afs...@google.com: Occasionaly SyntaxError using
gdata-python to get worksheets feed
https://code.google.com/p/gdata-python-client/issues/detail?id=703

Sounds like a server-side issue, i.e. not related to this library. If it is
intermittent, you should catch it and retry. Closing.
Reply all
Reply to author
Forward
0 new messages