Outlook Calendar REST API中的“TimeSlots中不支持重叠”错误

时间:2017-05-05 12:20:33

标签: office365api outlook-restapi

从昨天开始,当我尝试调用Outlook Calendar REST API端点时,我开始在我的服务(生产环境)中收到错误:

POST https://outlook.office.com/api/v2.0/me/findMeetingTimes

以下请求正文:

{
    "Attendees": [
        {
            "Type": "optional",
            "EmailAddress": {
                "Address": "...",
                "Name": null
            }
        },
        {
            "Type": "required",
            "EmailAddress": {
                "Address": "...",
                "Name": null
            }
        }
    ],
    "LocationConstraint": {
        "IsRequired": true,
        "SuggestLocation": false,
        "Locations": [
            {
                "DisplayName": "..."
            }
        ]
    },
    "TimeConstraint": {
        "Timeslots": [
            {
                "Start": {
                    "DateTime": "2017-05-05T00:00:00",
                    "TimeZone": "UTC"
                },
                "End": {
                    "DateTime": "2017-05-05T21:59:59",
                    "TimeZone": "UTC"
                }
            }
        ]
    },
    "MaxCandidates": 1000,
    "MeetingDuration": "PT30M",
    "IsOrganizerOptional": true }

以下是我得到的回复:

{
    "error": {
        "code": "ErrorInternalServerError",
        "message": "Invalid value for arg:Overlaps are not supported within TimeSlots, value:
            {\"start\":2017-05-04T22:00:00Z,
            \"min\":1440}
            \r\nParameter name: Overlaps are not supported within TimeSlots"
    }
}
直到昨天,一切都运转良好。我的服务代码库没有任何变化。它似乎与O365 API本身的一些变化有关,但文档中没有最近的更新......

知道可能出现什么问题吗?

更新:在请求中没有任何修改,服务器响应现在是:

{
  "error": {
    "code": "ErrorInternalServerError",
    "message": "Index was outside the bounds of the array."
  }
}

0 个答案:

没有答案