在最初开发应用程序时,当快速连续发出太多请求时,我遇到了来自所有Microsoft Graph API调用的UnknownError
响应。尽管非常清楚这是一条限制消息(并重写我的代码以使API调用减少三分之一),但此响应始终始终在标头中包含RetryAfter
值86。 / p>
这是我误解了RetryAfter值实际上是在说什么还是Microsoft的错误?
标题:
{
"x-ms-ags-diagnostic": {
"ServerInfo": {
"DataCenter": "UK South",
"Slice": "SliceC",
"Ring": "4",
"ScaleUnit": "000",
"Host": "AGSFE_IN_19",
"ADSiteName": "UKS"
}
},
"Transfer-Encoding": "chunked",
"request-id": "1194d403-2a35-4bb0-9e06-0473b480cf09",
"Strict-Transport-Security": "max-age=31536000",
"Retry-After": "86",
"Date": "Wed, 05 Dec 2018 11:06:18 GMT",
"client-request-id": "1194d403-2a35-4bb0-9e06-0473b480cf09",
"Cache-Control": "private",
"Duration": "57.7795",
"Content-Type": "application/json"
}
内容:
{
"error": {
"innerError": {
"date": "2018-12-05T11:18:14",
"request-id": "5509a94b-f243-4deb-8b38-631f974181fd"
},
"message": "",
"code": "UnknownError"
}
}