Microsoft graph api 连续上载后出现InternalServerError
我正在尝试使用对以下端点的单独调用将多个文件上载到客户端的SharePointMicrosoft graph api 连续上载后出现InternalServerError,microsoft-graph-api,sharepoint-online,microsoft-graph-sites,Microsoft Graph Api,Sharepoint Online,Microsoft Graph Sites,我正在尝试使用对以下端点的单独调用将多个文件上载到客户端的SharePoint https://graph.microsoft.com:443/v1.0/drives/{drive id}/root:/{itemId}:/microsoft.graph.createUploadSession 平均50个文件上传成功,但最终我收到以下错误 Error = { Code: generalException Message: An unspecified error has occur
https://graph.microsoft.com:443/v1.0/drives/{drive id}/root:/{itemId}:/microsoft.graph.createUploadSession
平均50个文件上传成功,但最终我收到以下错误
Error = {
Code: generalException
Message: An unspecified error has occurred.
Inner Exception: {
Additional Data: {[
{[request-id, 34068a5e-41ac-4009-814a-f085f7e03443]},
{[date, {1/23/2020 3:59:27 PM}]}
]}
}
}
下面是接收到的响应标头
{
request-id: 34068a5e-41ac-4009-814a-f085f7e03443
client-request-id: 34068a5e-41ac-4009-814a-f085f7e03443
x-ms-ags-diagnostic: {
"ServerInfo":{
"DataCenter":"South Central US",
"Slice":"SliceC",
"Ring":"4",
"ScaleUnit":"002",
"RoleInstance":"AGSFE_IN_5"
}
}
Strict-Transport-Security: max-age=31536000
Cache-Control: private
Date: Thu, 23 Jan 2020 15:59:27 GMT
}
我认为我们的应用程序没有被限制,因为我们没有收到429响应。我也不认为这是一个文件大小问题,因为文件大小小于4MBs。最后,这个问题与路径中文件夹名称末尾的空格有关 我们正在基于用户命名的实体构建路径,但在上载到Sharepoint之前未能对其进行修剪。奇怪的是,我们被允许将一个文件上载到Sharepoint,这似乎会相应地修剪路径的元素,但上载的第二个文件总是会抛出上述错误