Aws-sdk-ios: AWSS3TransferManager in 2.5.1 does not work

Created on 16 Feb 2017  路  16Comments  路  Source: aws-amplify/aws-sdk-ios

Uploading chunked data using AWSS3TransferManager does not work in 2.5.1.

transferManager = [AWSS3TransferManager defaultS3TransferManager];
uploadRequest = [AWSS3TransferManagerUploadRequest new]; 
uploadRequest.bucket = bucket;
uploadRequest.key = filename;
uploadRequest.body = [NSURL fileURLWithPath:filename];
uploadRequest.contentLength = [NSNumber numberWithLongLong:fileSize];

[[transferManager upload:uploadRequest] continueWithExecutor:[AWSExecutor mainThreadExecutor] withBlock:^id _Nullable(AWSTask * _Nonnull task) {

    // Whatever code here
     .......
     .......
     return nil;

}];

Returns <Code>IncompleteBody</Code><Message>The request body terminated unexpectedly</Message>

Version 2.5.0 and below work fine.

work in progress

All 16 comments

Hi @adamk77 ,

Thank you for reporting this. We will look into the issue.

Hi @adamk77 ,

We have identified the issue. We'll update this thread when the fix has been released

I have had the same issue and have spent the entire day trying to understand it. If is not seeing this report, I would be still struggling. At least now I know that I should roll back to 2.5.0

Thanks!

+1

+1, same problem for me

+1

+1

+1

+1

+1

+1

+1

+1

+1

You do realise guys that they are aware of the problem...

We have identified the issue. We'll update this thread when the fix has been released

So adding +1 messages is completely useless (and quite annoying) ...

fixed with 2.5.2

Was this page helpful?
0 / 5 - 0 ratings