I’m working with Python 2.6 and the suds library version 0.3.7 to interact with JIRA 4.0. While retrieving issue data from JIRA is smooth and works without any issues, I face challenges when attempting to update existing issues.
Each time I try to perform an update, I encounter the following error message:
WebFault: Server raised fault:
org.xml.sax.SAXException: Found character data inside an array element while deserializing
Below is the code that leads to this problem:
>>> service_url = "http://jira.company.com/rpc/soap/jirasoapservice-v2?wsdl"
>>> from suds.client import Client
>>> soap_client = Client(service_url)
>>> token = soap_client.service.login("username", "password")
>>> ticket = soap_client.service.getIssue(token, "PROJ-12345")
>>> ticket.summary
Original ticket summary text
>>>
>>> soap_client.service.updateIssue(token, "PROJ-12345", [
... {"id": "summary", "values": ["Updated summary text"]}])
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
File "C:\Python26\lib\suds\client.py", line 535, in __call__
return client.invoke(args, kwargs)
File "C:\Python26\lib\suds\client.py", line 595, in invoke
result = self.send(msg)
File "C:\Python26\lib\suds\client.py", line 630, in send
result = self.failed(binding, e)
File "C:\Python26\lib\suds\client.py", line 681, in failed
r, p = binding.get_fault(reply)
File "C:\Python26\lib\suds\bindings\binding.py", line 235, in get_fault
raise WebFault(p, faultroot)
WebFault: Server raised fault: 'org.xml.sax.SAXException: Found character data inside an array element while deserializing'
I’m wondering if anyone has faced a similar issue with XML parsing. What could be the reason behind this error?