TFS REST API System.IterationPath returns 错误

TFS REST API System.IterationPath returns error

我正在将迭代路径传递给 REST API 使用 python 请求库进行查询的字段。

>>> payload = {"name": "Audit Work Items","wiql": ("SELECT [System.Id],[System.WorkItemType],[System.Title],[System.AssignedTo],[System.State],[System.Tags],[System.IterationPath] FROM workitems WHERE [System.WorkItemType] = 'User Story' OR [System.WorkItemType] = 'Bug' AND [System.IterationPath] = 'CES\Backlog20.1.1.5' ORDER BY [System.Id]")}
>>> response  = requests.post(organization_url, auth=HTTPBasicAuth(username, password), verify=False, json=payload)
>>> response.text
'{"$id":"1","innerException":null,"message":"TF51011: The specified iteration path does not exist. The error is caused by «\'\u0002CES\\Backlog\x820\u0010.1\u0010.1.5\'».","typeName":"Microsoft.TeamFoundation.WorkItemTracking.Client.Wiql.SyntaxException, Microsoft.TeamFoundation.WorkItemTracking.Client.QueryLanguage","typeKey":"SyntaxException","errorCode":0,"eventId":0}'
>>>

我无法理解 REST 返回的 innerException API,为什么路径在错误消息中显示一些二进制字符?

任何人都可以帮我解决这个问题,在此先感谢。

反斜杠需要转义。 CES 被解释为 Unicode 字符。尝试 \2CES