question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

InvalidSizeError when downloading an object with content-encoding:gzip using fget_object

See original GitHub issue

fget_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:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
benbrocommented, Nov 23, 2020

Whether I’ll send a fix or not is not relevant. This is a bug and the issue shouldn’t be closed.

0reactions
balamuruganacommented, Nov 23, 2020

@benbro Feel free to send a fix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found