Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/38.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Microsoft graph api Microsoft Graph OneDrive API在上载文件时返回504网关超时_Microsoft Graph Api - Fatal编程技术网

Microsoft graph api Microsoft Graph OneDrive API在上载文件时返回504网关超时

Microsoft graph api Microsoft Graph OneDrive API在上载文件时返回504网关超时,microsoft-graph-api,Microsoft Graph Api,我正在使用MicrosoftGraphOneDrive API上传一个文件,它以前一直工作到最近。Microsoft API服务器返回“504网关超时”。有什么想法吗 $tokenCache=new\App\TokenStore\tokenCache; $accessToken=$tokenCache->getClientCredentialsAccessToken(); $graph=new\Microsoft\graph\graph(); $graph->setAccessToken($ac

我正在使用MicrosoftGraphOneDrive API上传一个文件,它以前一直工作到最近。Microsoft API服务器返回“504网关超时”。有什么想法吗

$tokenCache=new\App\TokenStore\tokenCache;
$accessToken=$tokenCache->getClientCredentialsAccessToken();
$graph=new\Microsoft\graph\graph();
$graph->setAccessToken($accessToken);
$requestUrl=“/drives/{drive id}/items/root:/files/2019/466/466-1566268336-oYgN-subway.csv:/content”;
$localPath=“/var/www/html/laravel/public/attachments/466/a3Gc9Yx0ekNzC4zIxeGyvClEJrtXGFwDJIoS0FlM/466-1566268583-PvTZ-subway.csv”;
$result=$graph->createRequest('PUT',$requestUrl)
->上传($localPath);
dd(结果);
可能的重复可能的重复
Server error: `PUT https://graph.microsoft.com/v1.0/drives/{drive-id}/items/root:/files/2019/466/466-1566268336-oYgN-subway.csv:/content` resulted in a `504 Gateway Timeout` response