Relsell Relsell - 1 year ago 118
Android Question

AWS Android SDK app for S3 Transfer Utility is raising exception while reading

I have created a AWS S3 bucket. and I am able to access bucket using https://github.com/awslabs/aws-sdk-android-samples/blob/master/S3TransferUtilitySample/S3TransferUtilityTutorial.md , TransferUtility SDK app provide by amazon.

I made some changes regarding the configuration of respective Region and bucket name and then I was able to connect to S3.

I am having proper permission to read / write S3 Bucket as provided to me by Server Admin. I successfully upload two images to S3 bucket using code. I can now see two image files are present in S3.

Now when I try to download these file I get exeception as

com.amazonaws.services.s3.model.AmazonS3Exception: Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: 04800521FBB752B0)


I have read and write permissions but still getting this exception. Is it related to permission only or I am missing something.

Thanks in advance.

Answer Source

There was a problem with previous conginto pool id , i think it was having some permissions issues.

We changed cognito pool ID and then it worked properly.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download