This repository was archived by the owner on Jun 24, 2024. It is now read-only.
Error: Invalid request. The number of bytes uploaded is required to be equal or greater than 262144... #17
Labels
api: storage
Issues related to the googleapis/gcs-resumable-upload API.
🚨
This issue needs some love.
triage me
I really want to be triaged.
Error: Invalid request. The number of bytes uploaded is required to be equal or greater than 262144, except for the final request (it's recommended to be the exact multiple of 262144). The received request contained 16384 bytes, which does not meet this requirement.
(See here for the error trace: http://pastebin.com/PhukYCUq)
I'm trying to resumably upload a couple of videos to my google cloud storage bucket. So far I've tested the resumable upload code from this package with three videos. The first video is ~16 MB, the second ~15 MB, and the final, ~150 MB. The error above occurs for the first video, and a similar error occurs for the second video, except that instead of saying the request is 16384 Bytes, the request is apparently 81920 Bytes. The error does not occur for the third video file, presumably because it passes the threshold.
I'm not sure why this error is occurring, and while I did see the solution posted here: googleapis/google-cloud-node#1044, I can't find the files that were deleted to fix the code functionality. I am assuming this issue was fixed for the current version of the package.
My upload code is almost identical to what is shown in the readme for this package, except that I included the external code for automatic authentication (which is also almost identical).
I thought it might be useful to post this error for the benefit of everyone. Any help would be much appreciated!
The text was updated successfully, but these errors were encountered: