gpt4 book ai didi

python - Suds + JIRA = SAXException

转载 作者:行者123 更新时间:2023-11-28 16:54:51 25 4
gpt4 key购买 nike

我正在使用 Python 2.6 和 suds 0.3.7 与 JIRA 4.0 交互。

当我连接到 JIRA 服务器时,我可以很好地获取有关所有问题的信息。

但是,当我想更新一个问题时,我从 suds 得到了一个 SAXException(大概):

WebFault: Server raised fault: org.xml.sax.SAXException: Found character data inside an array element while deserializing

我正在按照此处描述的步骤进行操作:http://confluence.atlassian.com/display/JIRA/Creating+a+SOAP+Client

仅用 SOAP 水替换 SOAPpy 调用。

我更新问题的尝试看起来像这样,但有异常(exception):

 >>> w="http://bugs/rpc/soap/jirasoapservice-v2?wsdl"
>>> from suds.client import Client
>>> client = Client(w)
>>> auth = client.service.login("myname","mypass")
>>> issue = client.service.getIssue(auth,"BUG-30112")
>>> issue.summary
This is the original summary for BUG-30112
>>>
>>> client.service.updateIssue(auth,"BUG-30112",[
... {"id":"summary","values":["My new summary"]}])

Traceback (most recent call last):
File "<interactive input>", 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'
>>>

有人遇到过这样的问题吗?

最佳答案

如果您切换到 suds 3.0.9(测试版),这将得到解决......这是唯一一个有修复的。

关于python - Suds + JIRA = SAXException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1609666/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com