相关疑难解决方法(0)

尝试使用Outlook REST API在日历上创建事件时获取错误代码`ErrorIrresolvableConflict`响应

在过去的几天中(从2019年10月28日开始),我们没有进行任何代码更改,我们开始看到来自服务器的大量请求以在日历上创建事件(使用此端点:https:// docs.microsoft.com/zh-CN/previous-versions/office/office-365-api/api/version-2.0/calendar-rest-operations#CreateAnEvent)返回错误。

错误是:ErrorIrresolvableConflict,并显示错误消息:

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.

我们怀疑这是Graph API / Outlook REST API / Exchange方面的新问题,但没有可见性。我们找到了这篇文章:https : //support.office.com/en-us/article/the-operation-cannot-be-performed-because-the-item-has-changed-74c99323-8a0d-4d45-ad32-e462e215a82a

尽管它没有提到Outlook REST API,但这似乎有些相关。

有人可以确认这确实是MSFT的长期问题吗?如果不是,也许在安排事件的背景下对此错误有所了解?

-

编辑:截至11月8日,此问题尚未解决。对于遇到此问题的任何人,我想分享到目前为止的观察:

返回此错误后,请求似乎仍然在Outlook端进行,并且确实创建了事件,并且与会者也确实获得了邀请。

由于我们通常重试失败的请求,这引起了混乱,从而导致创建重复的事件。

为了减轻这种情况,我们捕获了此错误代码,并让我们的用户知道该请求很可能已成功,并在尝试再次提交之前检查了他们的日历。

希望能有所帮助。

exchangewebservices outlook-restapi microsoft-graph

6
推荐指数
0
解决办法
596
查看次数

412(前提条件失败)同时添加附件时

我正在使用Microsoft Graph。我尝试通过添加两个附件

POST /me/messages/{messageId}/attachment

{
  "@odata.type": "#microsoft.graph.fileAttachment",
  "name": "1.txt",
  "contentBytes": "SGVsbG8gd29ybGQh"
}

POST /me/messages/{messageId}/attachment

{
  "@odata.type": "#microsoft.graph.fileAttachment",
  "name": "2.txt",
  "contentBytes": "SGVsbG8gd29ybGQhIQ=="
}
Run Code Online (Sandbox Code Playgroud)

当我同时添加这两个附件时,它给了我412错误(前提条件失败)

{
  "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., Cannot save changes made to an item to store.SaveStatus: IrresolvableConflict\r\nPropertyConflicts:\r\n",
  "innerError": {
    "request-id": "20e95141-5d2d-41e3-8eed-3bbd24bcf52a",
    "date": "2017-11-28T07:18:45"
  }
}
Run Code Online (Sandbox Code Playgroud)

outlook microsoft-graph

5
推荐指数
1
解决办法
934
查看次数