Bug in http.MediaIoBaseDownload
See original GitHub issueProblem is here. If content-range
is not found in response. This will leads to infinite loop because self._total_size
will always be None
and self._progress == self._total_size
will always results in False
hence self._done
will never be True
. Shouldn’t it raise an exception if content-range
header is not found?
Issue Analytics
- State:
- Created 9 years ago
- Comments:22 (2 by maintainers)
Top Results From Across the Web
google-api-python-client bug with media downloading
The google-api-python-client library has a bug where downloads will never be ... mimeType=mime_type) downloader = MediaIoBaseDownload(fh, ...
Read more >googleapiclient.http.MediaIoBaseDownload ... - Program Talk
MediaIoBaseDownload. Learn how to use python api googleapiclient.http.MediaIoBaseDownload. ... MediaIoBaseDownload taken from open source projects.
Read more >googleapiclient.http.MediaIoBaseDownload - Google APIs
"Download media resources. Note that the Python file object is compatible with io.Base and can be used with this class also. Example: request...
Read more >Python Code Samples | YouTube Analytics and Reporting APIs
If you specify a report URL, the script downloads that report. ... from googleapiclient.http import MediaIoBaseDownload
Read more >python invalid start byte - You.com | The search engine you control.
... from google.auth.transport.requests import Request from googleapiclient.http import MediaIoBaseDownload, ... This is a known bug in Pandas.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is still an issue, and a serious one because it makes it impossible to download objects from Google Cloud Storage buckets using
MediaIoBaseDownload
.Here’s another way of getting objects (this does it in one go and stores it in memory, so may not be suitable for large files):
For anyone looking for a work around: