Skip to content

Instantly share code, notes, and snippets.

@msarahan
Created April 27, 2016 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save msarahan/8b8e06f1ef1a5823d09b4cefc7465412 to your computer and use it in GitHub Desktop.
Save msarahan/8b8e06f1ef1a5823d09b4cefc7465412 to your computer and use it in GitHub Desktop.
xmlrpc error with pypi.io
In [8]: client=xmlrpclib.ServerProxy("https://pypi.io/pypi")
In [9]: client.package_releases('roundup')
---------------------------------------------------------------------------
Fault Traceback (most recent call last)
<ipython-input-9-9eae23c7d1d4> in <module>()
----> 1 client.package_releases('roundup')
/Users/msarahan/anaconda2/lib/python2.7/xmlrpclib.pyc in __call__(self, *args)
1238 return _Method(self.__send, "%s.%s" % (self.__name, name))
1239 def __call__(self, *args):
-> 1240 return self.__send(self.__name, args)
1241
1242 ##
/Users/msarahan/anaconda2/lib/python2.7/xmlrpclib.pyc in __request(self, methodname, params)
1597 self.__handler,
1598 request,
-> 1599 verbose=self.__verbose
1600 )
1601
/Users/msarahan/anaconda2/lib/python2.7/xmlrpclib.pyc in request(self, host, handler, request_body, verbose)
1278 for i in (0, 1):
1279 try:
-> 1280 return self.single_request(host, handler, request_body, verbose)
1281 except socket.error, e:
1282 if i or e.errno not in (errno.ECONNRESET, errno.ECONNABORTED, errno.EPIPE):
/Users/msarahan/anaconda2/lib/python2.7/xmlrpclib.pyc in single_request(self, host, handler, request_body, verbose)
1311 if response.status == 200:
1312 self.verbose = verbose
-> 1313 return self.parse_response(response)
1314 except Fault:
1315 raise
/Users/msarahan/anaconda2/lib/python2.7/xmlrpclib.pyc in parse_response(self, response)
1488 p.close()
1489
-> 1490 return u.close()
1491
1492 ##
/Users/msarahan/anaconda2/lib/python2.7/xmlrpclib.pyc in close(self)
797 raise ResponseError()
798 if self._type == "fault":
--> 799 raise Fault(**self._stack[0])
800 return tuple(self._stack)
801
Fault: <Fault -32500: 'application error'>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment