google-code-export / gdata-python-client

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

cElementTree.ParseError: junk after document element: #632

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. client = gdata.webmastertools.service.GWebmasterToolsService(email=username, 
password=password, source='tctest')
2. client.ProgrammaticLogin()
3. SITE = 'http://www.mysite.com/'
4. client.GetFeed(SITE)

What is the expected output? What do you see instead?

  File "gdat.py", line 40, in gdv
    feeds = client.GetFeed(SITE)
  File "C:\Python27\lib\site-packages\gdata\service.py", line 1164, in GetFeed
    result = GDataService.Get(self, uri, extra_headers, converter=converter)
  File "C:\Python27\lib\site-packages\gdata\service.py", line 1074, in Get
    return converter(result_body)
  File "C:\Python27\lib\site-packages\gdata\__init__.py", line 465, in GDataFeedFromString
    return atom.CreateClassFromXMLString(GDataFeed, xml_string)
  File "C:\Python27\lib\site-packages\atom\__init__.py", line 93, in optional_warn_function
    return f(*args, **kwargs)
  File "C:\Python27\lib\site-packages\atom\__init__.py", line 127, in CreateClassFromXMLString
    tree = ElementTree.fromstring(xml_string)
  File "<string>", line 106, in XML
cElementTree.ParseError: junk after document element: line 4, column 0

What version of the product are you using?
Version: 2.0.16
Version: 2.0.17

Original issue reported on code.google.com by pozycjon...@profitprospect.pl on 22 Jul 2012 at 9:58