com.amazonaws.services.s3.model.AmazonS3Exception

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.

  • GitHub comment 47#277599152
    via GitHub by edwardotis
    ,
  • 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 specified location-constraint is not valid (Service: Amazon S3; Status Code: 400; Error Code: InvalidLocationConstraint; Request ID: 8509B9CACA0AA3D2) at com.amazonaws.http.AmazonHttpClient$RequestExecutor.handleErrorResponse(AmazonHttpClient.java:1586) at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeOneRequest(AmazonHttpClient.java:1254) at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeHelper(AmazonHttpClient.java:1035) at com.amazonaws.http.AmazonHttpClient$RequestExecutor.doExecute(AmazonHttpClient.java:747) at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeWithTimer(AmazonHttpClient.java:721) at com.amazonaws.http.AmazonHttpClient$RequestExecutor.execute(AmazonHttpClient.java:704) at com.amazonaws.http.AmazonHttpClient$RequestExecutor.access$500(AmazonHttpClient.java:672) at com.amazonaws.http.AmazonHttpClient$RequestExecutionBuilderImpl.execute(AmazonHttpClient.java:654) at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:518) at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:4137) at com.amazonaws.services.s3.AmazonS3Client.createBucket(AmazonS3Client.java:998) at com.amazonaws.services.s3.AmazonS3Client.createBucket(AmazonS3Client.java:951) at com.amazonaws.services.s3.AmazonS3$createBucket$1.call(Unknown Source)

    Users with the same issue

    tvrmsmith
    3 times, last one,
    Unknown User
    48 times, last one,
    aldrinleal
    1 times, last one,
    Unknown visitor1 times, last one,
    asdasd
    2 times, last one,
    48 more bugmates