我已经使用Microsoft的v1.0 列表消息方法近五个月了。
在最近几天,当我在查询字符串中添加$search参数时,它开始返回错误。它给出了503或504错误代码。
该错误在给定或占用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方法

直到最近才开始工作的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支持的帮助。实际上他们推荐我这么做。
希望有人能发现这个问题,并能对这件事有所了解。
提前谢谢。
发布于 2019-07-02 18:02:36
我碰到了一个类似的问题,通过Graph搜索电子邮件。
深入研究它,我的查询就会发生这种情况,因为没有结果可返回。为了进行测试,我在一个失败的查询中使用了我正在搜索的术语,并在电子邮件的主题行中发送了一封测试邮件到我正在搜索的框中。下一个查询立即返回一个结果。
然后我删除了这封邮件,再试一次,又收到了504封邮件。
更新7/5:问题似乎已经为我解决了,我不再收到关于空结果的504
https://stackoverflow.com/questions/56850282
复制相似问题