【发布时间】:2019-07-02 10:21:07
【问题描述】:
我一直在使用 Microsoft Graph Api 的 v1.0 List messages 方法 将近五个月。
在过去的几天里,当我在查询字符串中添加 $search 参数时,它开始返回错误。它给出了 503 或 504 错误代码
在 give 或 take 20 秒后收到错误。
以及以下消息:
{
"error": {
"code": "UnknownError",
"message": "",
"innerError": {
"request-id": "8fd1d9ed-cde6-4237-b1a7-ab089a28d37e",
"date": "2019-07-02T10:09:48"
}
}
}
503 Service Unavailable The service is temporarily unavailable for maintenance or is overloaded. You may repeat the request after a delay, the length of which may be specified in a Retry-After header.
504 Gateway Timeout The server, while acting as a proxy, did not receive a timely response from the upstream server it needed to access in attempting to complete the request. May occur together with 503.
我正在通过微软的开发者工具调用 api 方法 Graph Explorer
直到最近才使用的 API 调用示例:
https://graph.microsoft.com/v1.0/<COMPANY_ID>/users/<USER_ID>/messages?
$search=%22from:<MY_EMAIL>%22&$top=10
始终有效的 API 调用示例(不带 $search 参数)
https://graph.microsoft.com/v1.0/<COMPANY_ID>/users/<USER_ID>/messages
在此问题上,我无法从 MS 支持部门获得帮助。他们 实际上是把我推荐给 SO。
希望有人遇到了这个问题,可以对此事有所了解。
提前致谢。
【问题讨论】:
-
您在添加 $search 时是否一直看到此错误。我刚刚尝试过,它对我有用。
-
@DarrelMiller 几乎总是是的。今天玩弄它,我发现某些具有最低搜索条件的邮箱确实会返回。但即使是那些只有一个搜索条件的邮箱也会出现同样的超时错误。
-
我有一个类似的问题,这也是几天前才开始的。见this question。那是我们三个人,所以现在我确定这是一个新的 Graph 错误或重大更改(或底层 Office365 API 的错误/重大更改)。
标签: microsoft-graph-api microsoft-graph-mail