microsoft-graph-api - 带有 HTTP 状态 200 响应的 Microsoft Graph 的 One Drive 内容 API
问题描述
有时 Microsoft Graph 的 One Drive Content API 不返回 HTTP 状态 302,而是返回 HTTP 状态 200。从 8 月 26 日开始偶尔发生。
GET https://graph.microsoft.com/v1.0/drives/{drive-id}/root:/{file-name}.xlsx:/content HTTP/1.1
SdkVersion: Graph-dotnet-1.4.0
Authorization: bearer {token}
Cache-Control: no-store, no-cache
Host: graph.microsoft.com
Connection: Keep-Alive
HTTP/1.1 200 OK
Date: Fri, 28 Aug 2020 03:20:43 GMT
Cache-Control: no-cache
Location: https://{tenant-name}-my.sharepoint.com/personal/{user-name}_onmicrosoft_com/_layouts/15/download.aspx?UniqueId={unique-id}&Translate=false&tempauth={tempauth}&ApiVersion=2.1
Strict-Transport-Security: max-age=31536000
request-id: {request-id}
client-request-id: {client-request-id}
x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"Japan East","Slice":"E","Ring":"2","ScaleUnit":"000","RoleInstance":"TY1PEPF00000CC9"}}
Content-Length: 0
解决方案
推荐阅读
- java - 使用swing将背景颜色设置为用户定义的图像的任何方式?
- php - 重定向过程在php中不起作用
- c# - 设置取自现有属性 WPF ControlTemplate 的属性值
- matlab - 在 Matlab ODE 的事件中使用两个条件
- android - 网络视图的替代品?
- tensorflow - Tensorflow:使用所有训练数据训练神经网络
- javascript - Javascript 站点在使用循环或许多调用其他函数时失败
- android - 无法解决 com.android.support?
- coq - Coq 中的 push/pop 评估器产生的奇怪的证明义务
- ios - ios中的Firebase通知