Outlook Microsoft Graph API 500内部服务器错误:“0”;对象引用未设置为对象的实例;

Outlook Microsoft Graph API 500内部服务器错误:“0”;对象引用未设置为对象的实例;,outlook,microsoft-graph-api,Outlook,Microsoft Graph Api,我目前正在使用MicrosoftGraphAPIv1.0,它一直运行良好,直到今天早上我们开始收到500个内部服务器错误。我不知道问题的根源是什么。有人遇到过这个错误吗?或者有人能告诉我如何解决这个问题的正确方向吗 使用此GET端点https://graph.microsoft.com/v1.0/me/返回500个内部服务器错误响应。目前我使用的唯一头是'Authorization=Bearer{{{accessToken}}' <!DOCTYPE html> <html>

我目前正在使用MicrosoftGraphAPIv1.0,它一直运行良好,直到今天早上我们开始收到500个内部服务器错误。我不知道问题的根源是什么。有人遇到过这个错误吗?或者有人能告诉我如何解决这个问题的正确方向吗

使用此GET端点
https://graph.microsoft.com/v1.0/me/
返回500个内部服务器错误响应。目前我使用的唯一头是'Authorization=Bearer{{{accessToken}}'

<!DOCTYPE html>
<html>
    <head>
        <title>Object reference not set to an instance of an object.</title>
        <meta name="viewport" content="width=device-width" />
        <style>
         body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} 
         p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
         b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
         H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
         H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
         pre {font-family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt}
         .marker {font-weight: bold; color: black;text-decoration: none;}
         .version {color: gray;}
         .error {margin-bottom: 10px;}
         .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
         @media screen and (max-width: 639px) {
          pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; }
         }
         @media screen and (max-width: 479px) {
          pre { width: 280px; }
         }
        </style>
    </head>

    <body bgcolor="white">

            <span><H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1>

            <h2> <i>Object reference not set to an instance of an object.</i> </h2></span>

            <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">

            <b> Description: </b>An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

            <br><br>

            <b> Exception Details: </b>System.NullReferenceException: Object reference not set to an instance of an object.<br><br>

            <b>Source Error:</b> <br><br>

            <table width=100% bgcolor="#ffffcc">
               <tr>
                  <td>
                      <code>

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.</code>

                  </td>
               </tr>
            </table>

            <br>

            <b>Stack Trace:</b> <br><br>

            <table width=100% bgcolor="#ffffcc">
               <tr>
                  <td>
                      <code><pre>

[NullReferenceException: Object reference not set to an instance of an object.]
   Microsoft.Online.AggregatorService.Common.Gateway.AgsIndexConfigProvider.GetConfigVersionNumber(String configType, String configId) in X:\bt\941900\repo\src\dev\Common\Gateway\AgsIndexConfigProvider.cs:64
   Microsoft.Online.AggregatorService.Common.Gateway.ConfigurationProvider`1.GetConfigurationImp(String identifier, Boolean useCache) in X:\bt\941900\repo\src\dev\Common\Gateway\ConfigurationProvider.cs:418
   Microsoft.Online.AggregatorService.Common.Gateway.ConfigurationProvider`1.GetConfiguration(String identifier, Boolean useCache) in X:\bt\941900\repo\src\dev\Common\Gateway\ConfigurationProvider.cs:108
   Microsoft.Online.AggregatorService.Common.Gateway.GlobalContext.TryGetConfigurationItem(String identifier, TConfigItem&amp; item) in X:\bt\941900\repo\src\dev\Common\Gateway\GlobalContext.cs:324
   Microsoft.Online.AggregatorService.Common.Gateway.GlobalContext.GetAgsRootConfig() in X:\bt\941900\repo\src\dev\Common\Gateway\GlobalContext.cs:276
   Microsoft.Online.AggregatorService.Common.ThrottleClient.GetThrottleEndpoint() in X:\bt\941900\repo\src\dev\Common\Throttling\ThrottleClient.cs:576
   Microsoft.Online.AggregatorService.Common.ThrottleClient.Initialize() in X:\bt\941900\repo\src\dev\Common\Throttling\ThrottleClient.cs:129
   Microsoft.Online.AggregatorService.WebService.Global.Application_Start(Object sender, EventArgs e) in X:\bt\941900\repo\src\dev\WebService\Global.asax.cs:128

[HttpException (0x80004005): Object reference not set to an instance of an object.]
   System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +531
   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +166
   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +165
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +368
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +329

[HttpException (0x80004005): Object reference not set to an instance of an object.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +523
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +118
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +704
</pre></code>

                  </td>
               </tr>
            </table>

            <br>

            <hr width=100% size=1 color=silver>

            <b>Version Information:</b>&nbsp;Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.2623.0

            </font>

    </body>
</html>
<!-- 
[NullReferenceException]: Object reference not set to an instance of an object.
   at Microsoft.Online.AggregatorService.Common.Gateway.AgsIndexConfigProvider.GetConfigVersionNumber(String configType, String configId) in X:\bt\941900\repo\src\dev\Common\Gateway\AgsIndexConfigProvider.cs:line 64
   at Microsoft.Online.AggregatorService.Common.Gateway.ConfigurationProvider`1.GetConfigurationImp(String identifier, Boolean useCache) in X:\bt\941900\repo\src\dev\Common\Gateway\ConfigurationProvider.cs:line 418
   at Microsoft.Online.AggregatorService.Common.Gateway.ConfigurationProvider`1.GetConfiguration(String identifier, Boolean useCache) in X:\bt\941900\repo\src\dev\Common\Gateway\ConfigurationProvider.cs:line 108
   at Microsoft.Online.AggregatorService.Common.Gateway.GlobalContext.TryGetConfigurationItem[TConfigItem](String identifier, TConfigItem& item) in X:\bt\941900\repo\src\dev\Common\Gateway\GlobalContext.cs:line 324
   at Microsoft.Online.AggregatorService.Common.Gateway.GlobalContext.GetAgsRootConfig() in X:\bt\941900\repo\src\dev\Common\Gateway\GlobalContext.cs:line 276
   at Microsoft.Online.AggregatorService.Common.ThrottleClient.GetThrottleEndpoint() in X:\bt\941900\repo\src\dev\Common\Throttling\ThrottleClient.cs:line 576
   at Microsoft.Online.AggregatorService.Common.ThrottleClient.Initialize() in X:\bt\941900\repo\src\dev\Common\Throttling\ThrottleClient.cs:line 129
   at Microsoft.Online.AggregatorService.WebService.Global.Application_Start(Object sender, EventArgs e) in X:\bt\941900\repo\src\dev\WebService\Global.asax.cs:line 128
[HttpException]: Object reference not set to an instance of an object.
   at System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app)
   at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
   at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
   at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
   at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)
[HttpException]: Object reference not set to an instance of an object.
   at System.Web.HttpRuntime.FirstRequestInit(HttpContext context)
   at System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context)
   at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
--><!-- 
This error page might contain sensitive information because ASP.NET is configured to show verbose error messages using &lt;customErrors mode="Off"/&gt;. Consider using &lt;customErrors mode="On"/&gt; or &lt;customErrors mode="RemoteOnly"/&gt; in production environments.-->

版本信息:Microsoft.NET Framework版本:4.0.30319;ASP.NET版本:4.7.2623.0
看起来他们的图形API已关闭


您应该与microsoft联系以获得支持。感谢您的回复!看来是这样。我希望微软的技术支持人员能够看到这一点,因为他们指出了堆栈溢出的问题。我将在GitHubI上研究一个问题,我现在看到它已经恢复了。