-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uploaded file is broken, file upload fails or uploaded file are gone with OneDrive resumable API to upload large files by chunks #5
Comments
Why the uploaded data is gone? because OneDrive API will drop data it considers to be not in the right order. FragmentOutOfOrder {
"error": {
"code": "invalidRange",
"message": "The uploaded fragment is not contiguous with the last one.",
"innererror": {
"code": "fragmentOutOfOrder"
}
}
} This is a little ridiculous since I send the data in sequence and even when I have 2 chunks sent in sequence with a delay time between, it also has a chance to throw this error. However, when each time the file is uploaded in 1 or 2 chunks only, the chance of error is fewer. |
Solution:
After doing the above 4 measures:
Finally, the issue is resolved. 👏 |
Seems it happened today:
the first-time, the video file is uploaded with full size, but cannot be played
curl throws an error of the ongoing uploads and no files can actually be uploaded (Previously, it seems this was just a warning message but the file was still uploaded)
The text was updated successfully, but these errors were encountered: