每次我尝试向 Jira 发送问题时都会收到以下错误:
suds.WebFault: Server raised fault: 'org.xml.sax.SAXException:
Found character data inside an array element while deserializing'
我在 stackoverflow 和网络上搜索答案,有人说这是 suds 0.3 < fault。但我使用的是 0.4.1.1 版本。
这是我的问题字典:
issue = {"assignee": "user_test",
"components": "17311",
"project": "TES",
"description" : "This is a test",
"priority" : "Major",
"summary" : "Just a test title",
"type":"Incident"
}
我制作的 Jira 类:
def create_issue(self,issue):
if(not isinstance(issue,dict)):
raise Exception("Issue must be a dict")
new_issue = self.jira.service.createIssue(in0 = self.auth,in1 = issue)
return new_issue["key"]