Skip to content

GetObject api with default http client hangs while downloading large file #525

@sdhuka

Description

@sdhuka

Describe the bug

When downloading large files(~120mb), the GetObject API with the default http client hangs, it downloads few mb and then doesn't rest of the file.
PS: Same api works as expected when used with Ktor client.

Expected behavior

GetObject api should download the entire object without any pause.

Current behavior

GetObject api with default http client pauses download after downloading few bytes while downloading large files. It is able to download small files correctly.

Steps to Reproduce

  1. Upload large file(>100mb) to S3 using AWS Console

  2. Download file using GetObject api

     s3.getObject(GetObjectRequest {
                     key = INVALID_KEY
                     bucket = BUCKEY_NAME
                 }) { response -> ... 
     
      }
    
  3. Observe the file progress using the device file manager on AS

Possible Solution

No response

Context

No response

AWS Kotlin SDK version used

0.12.0-beta

Platform (JVM/JS/Native)

Native

Operating System and version

Android 31

Metadata

Metadata

Assignees

Labels

bugThis issue is a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions