When using Satellite 5.5 API, an 'xml.parsers.expat.ExpatError is encountered' if searching for an rpm package that has an empty description
Issue
- Encountering the following error when searching for a package via the Satellite API:
Traceback (most recent call last):
File "./test.py", line 17, in <module>
package_match_list=client.packages.search.name(session, package_name)
File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__
return self.__send(self.__name, args)
File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request
verbose=self.__verbose
File "/usr/lib64/python2.6/xmlrpclib.py", line 1253, in request
return self._parse_response(h.getfile(), sock)
File "/usr/lib64/python2.6/xmlrpclib.py", line 1387, in _parse_response
p.feed(response)
File "/usr/lib64/python2.6/xmlrpclib.py", line 601, in feed
self._parser.Parse(data, 0)
xml.parsers.expat.ExpatError: XML or text declaration not at start of entity: line 1, column 96
Environment
- Red Hat Network Satellite 5.4, 5.5
- Satellite API
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
