【问题标题】:Microsoft Graph API ErrorsMicrosoft Graph API 错误
【发布时间】: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"
       }
   }
}

Microsoft Graph errors

  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


【解决方案1】:

我在通过 Graph-API 搜索电子邮件时遇到了类似的问题。

深入研究,它发生在我的查询中,没有返回结果。为了进行测试,我在其中一个失败的查询中使用了我正在搜索的术语,并将电子邮件主题行中包含该术语的测试邮件发送到我正在搜索的框中。下一个查询立即返回结果。

然后我删除了邮件,再次尝试,再次收到 504。

7/5 更新:问题似乎已为我解决,我不再收到空结果的 504

【讨论】:

  • 我在不搜索任何特定内容时得到结果。邮箱在那里。不过我会调查一下谢谢。
  • 你并不孤单。见this question。你有没有运气解决这个问题?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2019-08-11
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多