AWS S3 loading error caused by exception could not retry in Android

I am making an Android application in which I take pictures with a camera. Submit uri images to upload to Amazon S3.

First i had

ERROR:

     
  

"The bucket you are trying to access must be addressed using the specified endpoint. Please send all future requests to this endpoint."

  

Then i added

s3Client.setEndpoint (" https://s3.amazonaws.com ");

my area was set as

s3Client.setRegion (Region.getRegion (Regions .US_EAST_1));

Now i get

Loading error:

An exception was detected and cannot reset the thread to retry

In the browser, I found out about the exception due to resetRequestAfterError

resetRequestAfterError ,

- .

+4

Source: https://habr.com/ru/post/1545817/


All Articles