图形 API(http 状态:412 前提条件失败 - 错误无法解决冲突)



我正在使用Microsoft Graph使用应用程序凭据创建日历事件,其中将使用组织者的电子邮件ID:

https://graph.microsoft.com/v1.0/users/<organizer_email_id>/calendar/events

创建活动之前,我发布PATCH来更新组织者的displayNamegivenNamesurname

PATCH https://graph.microsoft.com/v1.0/users/{id}

我看到事件已创建,但它正在使用旧名称发送邮件并抛出以下错误:

HTTP Status code : 412 Precondition Failed.
{
"error": {
"code": "ErrorIrresolvableConflict",
"message": "The send or update operation could not be performed because the change key passed in the request does not match the current change key for the item.",
"innerError": {
"request-id": "a36e60a4-0a18-4574-9f7f-75f6c1cce8b4",
"date": "2020-01-05T14:22:54"
}
}
}

看起来事件在提交patch请求之前到达。我不想在两个调用之间放置任何延迟,但唯一的选择是在创建事件之前,触发get请求以确认名称已更改。如果有其他解决方法或Microsoft需要修复错误吗?

这似乎是Exchange的一个已知问题。

通常此类问题需要由Microsoft工程师确认。

我相信现在最有效的方法是联系支持团队并附上您的请求 ID 以供调查。

最新更新