首页 > 解决方案 > 获取文件文件夹 API 问题

问题描述

运行此请求时我们遇到了一个新问题:https ://docs.microsoft.com/en-us/graph/api/channel-get-filesfolder?view=graph-rest-1.0&tabs=http

GET /teams/{id}/channels/{id}/filesFolder

以前,如果通过 API 创建团队频道,它不会链接到包含文件的文件夹,直到用户单击团队客户端中的文件并因此对其进行初始化。在初始化之前,该请求将返回Not Found 404

但是,从 2021 年 2 月 25 日左右开始,如果身份验证使用 MFA,我们现在会收到此错误:Value cannot be null。参数名称:令牌。但是,当我们通过流量捕获验证时,请求中存在授权令牌。通过单击文件初始化文件夹后,请求开始返回有效数据。

这是一个错误吗?谢谢。

GET https://graph.microsoft.com/v1.0/teams/.../channels/.../filesFolder?$select=id,name,webUrl,parentReference HTTP/1.1
Content-Type: application/json
User-Agent: <...>
Authorization: Bearer ...
Host: graph.microsoft.com
Connection: Keep-Alive

HTTP/1.1 400 Bad Request
Cache-Control: private
Content-Type: application/json
request-id: ...
client-request-id: ...
x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"West Europe","Slice":"SliceC","Ring":"5","ScaleUnit":"005","RoleInstance":"AGSFE_IN_67"}}
Strict-Transport-Security: max-age=31536000
Date: Mon, 01 Mar 2021 19:38:40 GMT
Content-Length: 310

{
  "error": {
    "code": "BadRequest",
    "message": "Value cannot be null.\r\nParameter name: token",
    "innerError": {
      "date": "2021-03-01T19:38:41",
      "request-id": "...",
      "client-request-id": "..."
    }
  }
}

标签: microsoft-graph-apimicrosoft-teamsmicrosoft-graph-teams

解决方案


我们提出了一个错误。当它可用时,我们没有 ETA 可分享。


推荐阅读