【问题标题】:Microsoft Graph Upload API: Intermittent 500 Internal Server ErrorMicrosoft Graph 上传 API:间歇性 500 内部服务器错误
【发布时间】:2018-05-26 12:15:42
【问题描述】:

我正在尝试将图像上传到一个驱动器并间歇性地获取 500 - Internal Server Error.

PUT https://graph.microsoft.com/v1.0/users/{user}/drive/items/{rootFolderId}/{folderPath}/{fileName}:/content

回复:

{
   "statusCode":500,
   "error":{
      "code":"InternalServerError",
      "message":"Object reference not set to an instance of an object.",
      "innerError":{
         "request-id":"5f45d50e-6cd5-41c9-9c89-ca90d188e0eb",
         "date":"2018-05-24T10:37:44"
      }
   }
}

【问题讨论】:

    标签: json microsoft-graph-api onedrive


    【解决方案1】:

    你不是addressing your path properly。路径必须被:包围:

    :/filder/filename.ext:
    

    它应该看起来像这样:

    /users/{userId}/drive/items/{rootFolderId}:/{folderPath}/{fileName}:/content
    

    /users/{userId}/drive/items/{folderid}/{fileName}/content
    

    【讨论】:

    • 是的,试过了,仍然间歇性地遇到这个问题。
    • 您上传的图片有多大?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-07-18
    • 1970-01-01
    • 2011-09-09
    • 1970-01-01
    • 2012-10-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多