title: Amazon image upload issue: AmazonClientException
body: <p>while trying to upload image to s3 with proper network speed its working fine. But in some device in between the upload if network is inconsistent or weak then the below error issue is coming. Please help me to resolve the error</p>
  <pre><code>com.amazonaws.AmazonClientException: Unable to execute HTTP request: Unable to resolve host &quot;s3.eu-west-1.amazonaws.com&quot;: No address associated with hostname
        at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:441)
        at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:212)
        at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:4659)
        at com.amazonaws.services.s3.AmazonS3Client.putObject(AmazonS3Client.java:1752)
        at com.amazonaws.mobileconnectors.s3.transferutility.UploadTask.uploadSinglePartAndWaitForCompletion(UploadTask.java:219)
        at com.amazonaws.mobileconnectors.s3.transferutility.UploadTask.call(UploadTask.java:93)
        at com.amazonaws.mobileconnectors.s3.transferutility.UploadTask.call(UploadTask.java:49)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
        at java.lang.Thread.run(Thread.java:764)
  </code></pre>