The RHN API method system.listNotes() throws the error `xml.parsers.expat.ExpatError: XML or text declaration not at start of entity: line 1, column 96`
Issue
- system.listNotes() API throws an error below:
t430s> ./listNotes.py
Enter the name: servername.example.com
Traceback (most recent call last):
File "./listNotes.py", line 52, in <module>
notes = x.listNotes(sID)
File "./listNotes.py", line 37, in listNotes
return self.client.system.listNotes(self.token, int(serverID))
File "/usr/lib64/python2.7/xmlrpclib.py", line 1224, in __call__
return self.__send(self.__name, args)
File "/usr/lib64/python2.7/xmlrpclib.py", line 1578, in __request
verbose=self.__verbose
File "/usr/lib64/python2.7/xmlrpclib.py", line 1264, in request
return self.single_request(host, handler, request_body, verbose)
File "/usr/lib64/python2.7/xmlrpclib.py", line 1297, in single_request
return self.parse_response(response)
File "/usr/lib64/python2.7/xmlrpclib.py", line 1467, in parse_response
p.feed(data)
File "/usr/lib64/python2.7/xmlrpclib.py", line 557, 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 Satellite 5.6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.