InvalidSizeError when downloading an object with content-encoding:gzip using fget_object
See original GitHub issuefget_object fail to download an object with content-encoding:gzip. Version 6.0.0
Create tar.gz file:
echo 'Hello' >> test.txt
tar -czvf test.tar.gz test.txt
bucket = 'b'
# upload object
minio.fput_object(bucket, 'test.txt', 'test.tar.gz', content_type='text/plain', metadata={'Content-Encoding': 'gzip'})
# this is working
response = minio.get_object(bucket, 'test2.txt')
# throws an error
minio.fget_object(bucket, 'test.txt', 'test3.txt')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.8/dist-packages/minio/api.py", line 835, in fget_object
raise InvalidSizeError(msg)
minio.error.InvalidSizeError: InvalidSizeError: message: Data written 6 bytes is in excess than the specified size 127 bytes
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
No results found
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
Whether I’ll send a fix or not is not relevant. This is a bug and the issue shouldn’t be closed.
@benbro Feel free to send a fix.