-
Notifications
You must be signed in to change notification settings - Fork 333
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Connection broken: OSError(22, 'Invalid argument') when downloading larg(er) files #1280
Comments
|
Thanks, is there a code example for that? |
# Get data of an object.
try:
response = client.get_object("my-bucket", "my-object")
# Read data from response.
while True:
data = response.read(16*1024) # read 16k bytes
if not data:
break
print(data)
finally:
response.close()
response.release_conn() |
Thanks!
(This does return the correct data for small and large files ...) Is the |
As |
Hi, I am using the minio python library (
7.1.13
) to retrieve objects from a Linode (Akamai) object store (us-east-1.linodeobjects.com). This works fine for smaller files (I encounter no issues at all), but larger files run into OSErrors like:This error occurs immediately when trying to access/ downloading the file (no delay) and it does seem to be limited to only larger files - I do not know where the cutoff on my side is.
The client connection is established via another library (https://github.com/datajoint/datajoint-python/blob/master/datajoint/s3.py)
Any ideas?
The text was updated successfully, but these errors were encountered: