我正在尝试将图像上传到一个驱动器并间歇性地获取
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"
}
}
}
答案 0 :(得分:0)
你不是addressing your path properly。路径必须由:
包围:
:/filder/filename.ext:
看起来应该是这样的:
/users/{userId}/drive/items/{rootFolderId}:/{folderPath}/{fileName}:/content
或
/users/{userId}/drive/items/{folderid}/{fileName}/content