补丁计划任务详细信息 错误 - 错误请求,带Base-64字符串 错误。

问题描述 投票:0回答:1

我想打电话 https:/graph.microsoft.comv1.0plannertasks{{taskId}}details与这个请求。

{
    "checklist": {
        "552f6163-e7d3-4e31-9015-577b0e6cc997": {
            "@odata.type": "microsoft.graph.plannerChecklistItem",
            "title": "Update task details",
            "isChecked": false
        }
    }
}

我已经正确设置了if-match头,并使用了任务中的etag。当我运行查询时,我得到以下400 Bad Request响应。

{
    "error": {
        "code": "",
        "message": "The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters. ",
        "innerError": {
            "request-id": "c9781050-e409-4b88-9d7e-0a57dcec1f82",
            "date": "2020-05-29T21:26:17"
        }
    }
}

我尝试了随机的GUID和base-64编码的字符串,但没有效果。我还试着下载Postman环境,但我从那里得到同样的错误。任何帮助或指导都将是非常感激的。

谢谢你的时间.B.

microsoft-graph microsoft-graph-plannertasks
1个回答
0
投票

你得到这个错误是因为If-Match头有一个无效的值。通过工具查看时,有时工具会包含转义字符,通过Graph Explorer或Postman手动进行查询时需要调整。正确的If-Match头值是这样的。

W/"Base64EncodedStuff"

除了这个问题,你的查询看起来是正确的。

© www.soinside.com 2019 - 2024. All rights reserved.