上传到OneDrive返回504网关超时(未知错误) [英] Upload to OneDrive returning 504 Gateway Timeout (Unknown error )

查看:71
本文介绍了上传到OneDrive返回504网关超时(未知错误)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

修改后,我尝试使用Microsoft.GrapApi将新文件上传到OneDrive.频繁,在上传修改后的文件时出现错误 504网关超时(未知错误).

I am trying to upload new file to the OneDrive using Microsoft.GrapApi after that modify it. Frequenlty I am getting the error 504 Gateway Timeout (Unknown error ) during upload modified file.

在这里,您可以找到天蓝色函数的示例,该示例会频繁抛出 504网关超时(未知)错误)错误.为了得到该错误,您需要使用repo中的脚本多次调用azure函数端点.

Here you can find sample of azure function which frequenlty throws 504 Gateway Timeout (Unknown error ) error. In order to get the error you need to call azure function end-point many times by using script from repo.

推荐答案

这可能是由于您要上传的文件的大小,,您将必须创建上传会话,以字节为单位对文件进行分块,然后在多个请求中发送它们.

This is probably due to the size of the file you are trying to upload, according to Microsoft Graph the limit for "simple" uploads is 4MB, you will have to create an upload session, chunk the file in bytes and send them in multiple requests.

这篇关于上传到OneDrive返回504网关超时(未知错误)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆