为什么当我的 MS Graph API 邮件搜索未找到任何结果时,我会收到网关超时? [英] Why do I get Gateway Timeout whenever my MS Graph API mail search finds no results?

查看:22
本文介绍了为什么当我的 MS Graph API 邮件搜索未找到任何结果时,我会收到网关超时?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从本周开始,当我的邮件搜索未找到任何结果时,我突然从 Graph 收到 gateway timeout.

As of this week I am suddenly getting gateway timeout from Graph when my mail search finds no results.

我正在使用这样的查询:

I am using a query like this one:

https://graph.microsoft.com/v1.0/users/shared@notreal.com/mailFolders/AllItems/messages?$search="participants:some.person@fake.com"&$select=from,subject,HasAttachments,Id,SentDateTime&$top=100

这是一个图表查询,最多可从 shared@notreal.com 的 Office 365 邮箱请求 100 封电子邮件,其中发件人或收件人包括 some.person@fake.com.shared@notreal.com 是与拨打电话的帐户共享的邮箱.

This is a Graph query which requests up to 100 emails from the Office 365 mailbox of shared@notreal.com where the sender or receiver includes some.person@fake.com. shared@notreal.com is a mailbox that is shared with the account making the call.

我的应用已通过 oauth2 身份验证代码流进行身份验证,并已获得所有必要的权限.

My app is authenticated with the oauth2 authentication code flow and has been granted all necessary permissions.

这已经工作了大约一年.但是从几天前开始,此查询只有在找到结果时才会成功.未找到结果时,查询需要 30 秒,Graph 返回 UnknownError,响应为 504,原因是 Gateway Timeout.

This has been working for about a year. But starting a few days ago, this query only succeeds if results are found. When no results are found, the query takes 30 seconds, Graph returns UnknownError and the response is 504 with reasonphrase Gateway Timeout.

似乎 Graph API 或 Office 365 API 中发生了一些变化,但我在任何地方都找不到任何提及.

It seems as though something has changed in the Graph API - or perhaps in the Office 365 API, but I can't find any mention of it anywhere.

Microsoft 专门将有关 Graph API 的问题引导至 stackoverflow,所以我来了.我希望合适的人在阅读.

Microsoft specifically directs questions about the Graph API to stackoverflow, so here I am. I hope the right people are reading.

为什么突然开始发生这种情况,我该如何解决?

Why has this suddenly started happening and how can I fix it?

更新:现在有很多关于这个问题的报告,确认它已经在微软结束了.

Update: there are now numerous reports of this issue, confirming that it's at Microsoft's end.

Github 问题

推荐答案

我们看到了这个问题,并在本周积极调查.由于 7 月 4 日的长周末,我直到现在才回到这个帖子.

We saw this question and were actively investigating this kast week. With July 4th long weekend I hadn't got back to this thread until now.

此问题已在服务后端解决,您应该不会再看到此问题了.

This issue has been resolved on the back end of the service and you should not be seeing this issue anymore.

非常感谢您在这里分享服务问题.

Thank you so much for sharing the service issue here.

这篇关于为什么当我的 MS Graph API 邮件搜索未找到任何结果时,我会收到网关超时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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