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.

  • Java List Buckets Client Error
    via GitHub by ptimsonbbc
    ,
  • 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: Bad Request (Service: Amazon S3; Status Code: 400; Error Code: InvalidArgument; Request ID: 4442587FB7D0A2F9) , S3 Extended Request ID: null at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:1386) at com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:939) at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:714) at com.amazonaws.http.AmazonHttpClient.doExecute(AmazonHttpClient.java:465) at com.amazonaws.http.AmazonHttpClient.executeWithTimer(AmazonHttpClient.java:427) at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:376) at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:4031) at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3968) at com.amazonaws.services.s3.AmazonS3Client.listBuckets(AmazonS3Client.java:871) at com.amazonaws.services.s3.AmazonS3Client.listBuckets(AmazonS3Client.java:877)

    Users with the same issue

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