Office365 API returns 404 on GetCalendars on some accounts

倾然丶 夕夏残阳落幕 提交于 2019-12-11 19:38:08

问题


I'm using the Office365 as described in the documenation website to get a user's calendars from Office365 account, but getting a 404 error instead: "GET /api/v1.0/Me/Calendars HTTP/1.1" 404

The user has authorized access and I've managed to receive his personal details one request before.
The scopes I have authorized are Calendars.Read Calendars.ReadWrite UserProfile.Read. The access token response contains the endpoint URL and it's the one I'm using: 'Calendar_api_endpoint': u'https://outlook.office365.com/api/v1.0'

For most of the users, this operations works flawlessly. But for some it fails without any more information.

In case an Office365 engineer sees this, here are the request IDs and time (UTC):
2015-08-06 07:58:10.824550: Request id 2d3238e3-e3a6-436a-a2a6-5abb1f693e65 completed. Server id: 4c645b19-4a64-4203-8af5-7b4960f10593, Status: 404


回答1:


Off the cuff, you can see this error if the user's mailbox is not actually hosted in Office 365. For example, they may be in a hybrid scenario and their mailbox may be on an on-premise Exchange server. I'll ask our engineers to look at your request ID.



来源:https://stackoverflow.com/questions/31854453/office365-api-returns-404-on-getcalendars-on-some-accounts

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!