1. PyPA
  2. Python Packaging Authority Projects
  3. pypi
  4. Issues


Issue #54 resolved

xmlrpc list_packages* API broken

Holger Krekel
created an issue

The xmlrpc list_packages and list_packages_with_serial calls are broken -- this breaks bandersnatch, devpi-server and possibly other tools from working currently.

>>> import xmlrpclib
>>> xmlrpclib.ServerProxy("https://pypi.python.org/pypi")
<ServerProxy for pypi.python.org/pypi>
>>> proxy=_
>>> proxy.list_packages_with_serial()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in __call__
return self.__send(self.__name, args)
File "/usr/lib/python2.7/xmlrpclib.py", line 1578, in __request
File "/usr/lib/python2.7/xmlrpclib.py", line 1264, in request
return self.single_request(host, handler, request_body, verbose)
File "/usr/lib/python2.7/xmlrpclib.py", line 1297, in single_request
return self.parse_response(response)
File "/usr/lib/python2.7/xmlrpclib.py", line 1471, in parse_response
File "/usr/lib/python2.7/xmlrpclib.py", line 560, in close
self._parser.Parse("", 1) # end of data
xml.parsers.expat.ExpatError: unclosed token: line 1257, column 0

Comments (1)

  1. Log in to comment