Vitalii Kushch
Vitalii Kushch

Reputation: 11

Upload to OneDrive returning 504 Gateway Timeout (Unknown error )

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.

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.

Upvotes: 1

Views: 546

Answers (1)

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.

Upvotes: 1

Related Questions