Open rnag opened 2 years ago
Thanks for the praise, and thanks for reporting :).
This looks like upload_resumable should indeed set the content-length header, and a PR to achieve this would be very welcome. It might be that the current API works with std::io::Read
which makes retrieving it ahead of time impossible, but if it would be changed to Read + Seek
it should be possible to retrieve the size. Alternatively, the expected amount of bytes could be passed as additional argument. A fix, in any case, is a breaking change, but that's alright.
first of all, this is an excellent library, so thank you! I have found that when it works, it works really well.
I'm currently running into an issue when calling the
upload_resumable
approach when usingThumbnails#set
API to set a thumbnail on a YT video.Here's how I'm calling it in my code:
The error, from what I could gather, seems to indicate the following issue:
I've included the complete error I'm receiving from the YT API below.
Note that my current workaround is to use the
upload
method instead ofupload_resumable
, which seems to work well enough for my use case.