You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue hasn't happened to the consumers basic personal account before, and I am currently using an Azure Directory tenant account to upload all video files uploaded to a larger size OneDrive space.
The upload job worked perfectly since I installed the camera outside yesterday. After trying to change some settings from the mobile app, I found there were no new videos uploaded, then I checked the logs, and video files are still being generated, but each video file fails to complete the final step during uploading each fragment.
Rebooting or resetting this uploader sometimes worked for a short time, but it will fail into this issue again and all video files will not be uploaded successfully after a while.
The text was updated successfully, but these errors were encountered:
denven
changed the title
Video upload fails with error {"error":{"code":"itemNotFound","message":"The upload session was not found"}}
Video upload fails with {"error":{"code":"itemNotFound","message":"The upload session was not found"}}
Apr 23, 2023
From the resumable API doc, it states the following:
Cancel the upload session
To cancel an upload session send a DELETE request to the upload URL. This cleans up the temporary file holding the data previously uploaded. This should be used in scenarios where the upload is aborted, for example, if the user cancels the transfer.
Temporary files and their accompanying upload session are automatically cleaned up after the expirationDateTime has passed. Temporary files may not be deleted immediately after the expiration time has elapsed.`
I have a line of code to delete the resumable upload session when video file chunks are all uploaded(the upload result may be successful or not). I guess there is a chance that the file fragments are still in processing and not merged to a file on OneDrive, and the session has already been deleted by OneDrive API, however, my request to DELETE it triggers the API issue which will abnormally delete the temporary fragments and abort merging them to a video file.
Then, I think there is no need to do this deletion if the fragments upload is successful, let the session be cleaned up automatically. And the deletion is needed only when upload errors are found and no more retries will be done from this session.
The fix is to move this line to the retry failed if branch.
This issue hasn't happened to the
consumers
basic personal account before, and I am currently using an Azure Directory tenant account to upload all video files uploaded to a larger size OneDrive space.The upload job worked perfectly since I installed the camera outside yesterday. After trying to change some settings from the mobile app, I found there were no new videos uploaded, then I checked the logs, and video files are still being generated, but each video file fails to complete the final step during uploading each fragment.
Rebooting or resetting this uploader sometimes worked for a short time, but it will fail into this issue again and all video files will not be uploaded successfully after a while.
The text was updated successfully, but these errors were encountered: