Office365 API在某些帐户的GetCalendars上返回404 [英] Office365 API returns 404 on GetCalendars on some accounts

查看:193
本文介绍了Office365 API在某些帐户的GetCalendars上返回404的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用

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

该用户已获得授权访问,并且我已经设法在一个请求中收到了他的个人详细信息.
我授权的范围是Calendars.Read Calendars.ReadWrite UserProfile.Read. 访问令牌响应包含端点URL,这是我正在使用的URL: 'Calendar_api_endpoint': u'https://outlook.office365.com/api/v1.0'

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'

对于大多数用户而言,此操作可以完美完成.但是对于某些情况,它会失败而没有更多信息.

如果Office365工程师看到此消息,则以下是请求ID和时间(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

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

推荐答案

如果用户的邮箱实际上未托管在Office 365中,则可以立即看到此错误.例如,他们可能处于混合方案中,并且邮箱可能位于本地Exchange服务器上.我将要求我们的工程师查看您的请求ID.

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.

这篇关于Office365 API在某些帐户的GetCalendars上返回404的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆