tespeed icon indicating copy to clipboard operation
tespeed copied to clipboard

lxml.etree.XMLSyntaxError: Start tag expected

Open Choromanski opened this issue 6 years ago • 4 comments

I am getting an error with etree

Traceback (most recent call last):                                                                                                                                           
  File "./tespeed.py", line 720, in <module>
    main(args)
  File "./tespeed.py", line 691, in main
    uploadtests=args.uploadtests, 
  File "./tespeed.py", line 156, in __init__
    self.TestSpeed()
  File "./tespeed.py", line 632, in TestSpeed
    self.server_list=self.LoadServers()
  File "./tespeed.py", line 411, in LoadServers
    servers_xml = etree.fromstring(response.read())
  File "src/lxml/etree.pyx", line 3213, in lxml.etree.fromstring                                                                                                             
  File "src/lxml/parser.pxi", line 1877, in lxml.etree._parseMemoryDocument                                                                                                  
  File "src/lxml/parser.pxi", line 1765, in lxml.etree._parseDoc                                                                                                             
  File "src/lxml/parser.pxi", line 1127, in lxml.etree._BaseParser._parseDoc                                                                                                 
  File "src/lxml/parser.pxi", line 601, in lxml.etree._ParserContext._handleParseResultDoc                                                                                   
  File "src/lxml/parser.pxi", line 711, in lxml.etree._handleParseResult                                                                                                     
  File "src/lxml/parser.pxi", line 640, in lxml.etree._raiseParseError                                                                                                       
  File "<string>", line 1                                                                                                                                                    
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1

Will work on a fix for this

Choromanski avatar Jan 31 '19 17:01 Choromanski

me2

archlinux - Python 2.7.16 - python-argparse & python2-lxml installed

001101 avatar Aug 30 '19 22:08 001101

me2

shuish0071 avatar Nov 06 '19 07:11 shuish0071

me2

sackio avatar Nov 11 '19 22:11 sackio

Hi,

I forked the project and fixed it. The response is using gzip now, so it didn't work anymore.

https://github.com/drsandro/tespeed

drsandro avatar Nov 03 '20 17:11 drsandro