Microsoft Graph API错误 [英] Microsoft Graph API Errors

查看:125
本文介绍了Microsoft Graph API错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用Microsoft Graph Api的v1.0

I've been using Microsoft Graph Api's v1.0 List messages method for nearly five months.

最近几天,每当我在查询字符串中添加 $ search 参数时,它就会开始返回错误.它提供 503 504 错误代码

In the last few days it started returning errors when ever i add the $search parameter in my query string. It gives either a 503 or 504 error code

给予或花费20秒后收到错误.

The error is received after give or take 20 sec.

以及以下消息:

 {
      "error": {
      "code": "UnknownError",
       "message": "",
       "innerError": {
           "request-id": "8fd1d9ed-cde6-4237-b1a7-ab089a28d37e",
             "date": "2019-07-02T10:09:48"
       }
   }
}

Microsoft Graph错误

  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.

我正在通过Microsoft的Developer工具调用api方法 图形浏览器

I am calling the api methods via microsoft's Developer tool Graph Explorer

最近可以使用的API调用示例:

Example of the API call that use to work until lately:

 https://graph.microsoft.com/v1.0/<COMPANY_ID>/users/<USER_ID>/messages?
$search=%22from:<MY_EMAIL>%22&$top=10

始终有效的API调用示例(不带$ search参数)

Example of an API call which always works (with out the $search parameter)

 https://graph.microsoft.com/v1.0/<COMPANY_ID>/users/<USER_ID>/messages  

在此问题上,我无法获得MS支持的帮助.他们 实际使我转为SO.

I was unable to get assistance from MS support in this matter. They actually refereed me to SO.

希望有人遇到了这个问题,可以对此事有所了解.

Hopefully someone came across this issue and can shed some light on the matter.

先谢谢了.

推荐答案

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

I'm hitting a similar issue searching Emails through the Graph-API.

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

Digging into it, it's happening to my queries where there are no results to return. To test, I took the term I was searching for in one of the failed queries and sent a test mail with that term in the subject line of the email to the box I was searching. Next query returned a result immediately.

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

I then deleted the email, tried again, and received a 504 again.

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

Update 7/5: The issue appears to have been resolved for me, I no longer receive a 504 on null results

这篇关于Microsoft Graph API错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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