OneDrive Delta下一页链接错误

时间:2018-03-29 23:37:09

标签: json microsoft-graph onedrive

我试图翻阅OneDrive根文件夹的增量,但是第二页给了我一个返回400错误的链接。

我的初始请求如下:

https://graph.microsoft.com/v1.0/drives/<drive-id>/root/microsoft.graph.delta

返回一个增量页面和一个指向下一页的链接。

下一页链接如下所示:

https://graph.microsoft.com/v1.0/drives('<drive-id>')/root/microsoft.graph.delta(token='MzslMjMzOyUyMzE7Mzs5ZmY3MzExYy0yYzRmLTQwZGMtYmVjNS0zMWI3NDXXXXXXXXXXXXXXXXXXXXk0OTMyNDMwMDAwOzkxMjY5ODk3OyUyM1BhZ2VkPVRSVUUlMjZwX0lEPTI1NTg7JTIzOyUyMzQ')

但是当我使用该链接发出请求时,我得到了这个回复:

400 : Bad Request
HTTP/1.1 400 Bad Request
Transfer-Encoding : chunked
Strict-Transport-Security : max-age=31536000
Cache-Control : private
x-ms-ags-diagnostic : {"ServerInfo":{"DataCenter":"West US","Slice":"SliceA","Ring":"4","ScaleUnit":"000","Host":"AGSFE_IN_27","ADSiteName":"WST"}}
client-request-id : 5c1d0d11-1c1f-4fa0-8c1e-ce61369402ce
Duration : 11.1016
request-id : 5c1d0d11-1c1f-4fa0-8c1e-ce61369402ce
Date : Thu, 29 Mar 2018 23:14:01 GMT
Content-Type : application/json
{
  "error": {
    "code": "BadRequest",
    "message": "Syntax error at position 160 in \u0027token\u003d\u0027MzslMjMzOyUyMzE7Mzs5ZmY3MzExYy0yYzRmLTQwZGMtYmVjNS0zMWI3NDXXXXXXXXXXXXXXXXXXXXk0OTMyNDMwMDAwOzkxMjY5ODk3OyUyM1BhZ2VkPVRSVUUlMjZwX0lEPTI1NTg7JTIzOyUyMzQ\u0027)(token\u003dnull\u0027.",
    "innerError": {
      "request-id": "5c1d0d11-1c1f-4fa0-8c1e-ce61369402ce",
      "date": "2018-03-29T23:14:01"
    }
  }
}

这看起来可能是一个内部问题,但也许我做错了。我已尝试使用beta和v1.0端点。我错过了什么吗?

1 个答案:

答案 0 :(得分:0)

您的URI已关闭但不正确。 correct URI应为:

GET /drives/{drive-id}/root/delta