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

查看:97
本文介绍了每当我的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天全站免登陆