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
    • 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( at com.amazonaws.http.AmazonHttpClient.executeOneRequest( at com.amazonaws.http.AmazonHttpClient.executeHelper( at com.amazonaws.http.AmazonHttpClient.doExecute( at com.amazonaws.http.AmazonHttpClient.executeWithTimer( at com.amazonaws.http.AmazonHttpClient.execute( at at at at

    Users with the same issue

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