Skip to content

Upload large file fails with 'Connection aborted.', RemoteDisconnected #22

@fieldse

Description

@fieldse

Hi there. Thanks for making this sweet library!

I've found that upload_large_file fails on my end with a Connection aborted error.

 'Connection aborted.', RemoteDisconnected('Remote end closed connection without response')

My code looks something like this:

            fobj = open(file, 'rb')         

            # Prepend directory if given
            target = os.path.join(directory, filename) if directory else filename
            part_size = 5 * 1024 * 1024    # 5 Mb part size, for testing

            # Upload large
            bucket.files.upload_large_file(
                contents=fobj, 
                file_name=target, 
                part_size=part_size, 
                num_threads=4)

I've tested with file sizes of 5+, 10+, and 100+ Mb.
I don't know if it's something wrong on my end (maybe the small part size?) or a problem with upload_large_file.

Let me know what I can do to help research or debug this issue!
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions