-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Not possible to provide http
parameter in next_chunk()
with resumable upload? HttpError 400
#990
Comments
The docs mention that the chunk size needs to be a multiple of 256KB. I think that's what's happening here? https://github.com/googleapis/google-api-python-client/tree/master/docs/media.md#resumable-media-chunked-upload
This restriction doesn't seem to be mentioned in the code anywhere, which is a bit odd. |
Hi @busunkim96, I think you are right. I did 2 more tests:
Should I leave the ticket open so that maybe you implement a check directly on I let you decide. |
@yohplala I'm sorry that it took a while to address this issue. Thanks for providing the sample code. I was able to run it and see that the library was not processing the error message details in the HTTP 400 response because
|
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [x] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/google-api-python-client/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [x] Ensure the tests and linter pass - [x] Code coverage does not decrease (if any source code was changed) - [x] Appropriate docs were updated (if necessary) Fixes #990 🦕
Hi,
This ticket is probably pointless, but maybe it hilights the need of a better error message?
The following code works fine with chunk size larger than 1024*1024, but using a chunksize of 1024 ends in a HttpError 400. Why is that so?
Here is the error message I get when
chunksize=1024
.Please, why is that so?
I thank you for your support.
Have a good day,
Bests,
The text was updated successfully, but these errors were encountered: