列出文件夹的子项时,我收到错误501系统不支持该请求

时间:2018-06-04 12:21:24

标签: microsoft-graph onedrive

如果我想根据documentation列出包含查询参数$orderBy的文件夹中的文件,我会收到错误501的回复。

以下是请求的原始示例:

GET /v1.0/drives/{id}/items/{id}/children?$select=name,id,folder,lastModifiedDateTime,createdDateTime,size,createdBy,lastModifiedBy,webUrl&$orderby=createdDateTime HTTP/1.1
Host: graph.microsoft.com
Authorization: Bearer <token>

回复是:

{
    "error": {
        "code": "notSupported",
        "message": "The request is not supported by the system.",
        "innerError": {
            "request-id": "c925ae56-8359-4e8f-98b9-92ff0c4dfc8a",
            "date": "2018-06-04T10:50:00"
        }
    }
}

此问题我只能使用特定的OneDrive帐户。如果我对不同的驱动器和文件夹使用相同的API调用,那么它运行良好没有任何问题。

当我调查它时,似乎API根本不支持带有日期变量的参数$orderBy

有谁知道为什么我会为特定帐户收到此错误?

0 个答案:

没有答案