com.amazonaws.services.s3.model.AmazonS3Exception

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

Set the S3 bucket to the same region as AmazonS3Client, otherwise it just throws this exception. Check if your bucket name is correct as well.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Add compatibility to CEPH
    via GitHub by armin-bauer
    ,
  • s3.getObject(bucket,key) fails with 400
    via by Unknown author,
  • Spring Integration DSL ErrorHandling
    via Stack Overflow by James Gilchrist
    ,
    • com.amazonaws.services.s3.model.AmazonS3Exception: The bucket is in this region: null.Please use this region to retry the request (Service: Amazon S3; Status Code: 301; Error Code: PermanentRedirect; Request ID: EA0959BA1B1D56A7) at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:1372) at com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:919) at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:697) at com.amazonaws.http.AmazonHttpClient.doExecute(AmazonHttpClient.java:449) at com.amazonaws.http.AmazonHttpClient.executeWithTimer(AmazonHttpClient.java:411) at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:360) at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3962) at com.amazonaws.services.s3.AmazonS3Client.getBucketPolicy(AmazonS3Client.java:2544) at com.amazonaws.services.s3.AmazonS3Client.getBucketPolicy(AmazonS3Client.java:2504)

    Users with the same issue

    tvrmsmithtvrmsmith
    3 times, last one,
    Unknown UserUnknown User
    48 times, last one,
    aldrinlealaldrinleal
    1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    asdasdasdasd
    2 times, last one,
    49 more bugmates