Microsoft graph api 频繁504网关超时

Microsoft graph api 频繁504网关超时,microsoft-graph-api,Microsoft Graph Api,最近,我们经常在多个端点上遇到504网关超时 预览/预览端点的示例: Server error: `POST https://graph.microsoft.com/v1.0/sites/root/drive/items/014THVUXPVDHARRLTKGZHI2GLKYADOOZDI/preview` resulted in a `504 Gateway Timeout` response: { "error": { "code": "UnknownError", "m

最近,我们经常在多个端点上遇到504网关超时

预览/预览端点的示例:

Server error: `POST https://graph.microsoft.com/v1.0/sites/root/drive/items/014THVUXPVDHARRLTKGZHI2GLKYADOOZDI/preview` resulted in a `504 Gateway Timeout` response:
{
  "error": {
    "code": "UnknownError",
    "message": "",
    "innerError": {
      "request-id": "3f981b5d-883 (truncated...)
PUT /content?@microsoft.graph.conflictBehavior=rename` resulted in a `504 Gateway Timeout` response:
{
  "error": {
    "code": "UnknownError",
    "message": "",
    "innerError": {
      "request-id": "12d80986-9cb (truncated...)
小文件上载端点的另一个示例:

Server error: `POST https://graph.microsoft.com/v1.0/sites/root/drive/items/014THVUXPVDHARRLTKGZHI2GLKYADOOZDI/preview` resulted in a `504 Gateway Timeout` response:
{
  "error": {
    "code": "UnknownError",
    "message": "",
    "innerError": {
      "request-id": "3f981b5d-883 (truncated...)
PUT /content?@microsoft.graph.conflictBehavior=rename` resulted in a `504 Gateway Timeout` response:
{
  "error": {
    "code": "UnknownError",
    "message": "",
    "innerError": {
      "request-id": "12d80986-9cb (truncated...)

请使用测试上述API调用,看看您是否仍然可以重新处理该问题。

好的,与任何“网关超时”情况一样,您需要首先查看硬件。有问题的“门户”在哪里?然后,查看您的请求模式和数量。“网关超时”可能是由减载引起的。在任何情况下,这都是一个暂时的情况,您的代码必须准备好处理。这是microsoft graph api发生的错误,我已将标记放在OP中,不确定是否也应将其包含在内容中。。。无论是哪种方式,此错误都经常发生。使用
POST/preview
,我已尝试使用graph explorer,但无法获得超时。同时,我测试了使用MicrosoftGraphSDK获得一个超时为5秒的预览,它超时了。我删除了代码的5秒超时,但无法获取网关超时。这似乎是随机发生的。关于这个问题,我有很多哨兵日志。