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.

  • aws S3 400 Bad Request
    via Stack Overflow by user2917629
    ,
  • GitHub comment 71#218109549
    via GitHub by Observer99
    ,
  • Amazon s3 bucket path issue
    via Stack Overflow by Anoop M L
    ,
  • GitHub comment 548#274537823
    via GitHub by keiranmraine
    ,
  • AWS s3 permissions issue
    via GitHub by landonreed
    ,
    • com.amazonaws.services.s3.model.AmazonS3Exception: Bad Request (Service: Amazon S3; Status Code: 400; Error Code: 400 Bad Request; Request ID: 8C2A9D868737EB62), S3 Extended Request ID: MwaqxlNVSIHFE11P4V9QSH+LoQFRRIvn8bM2GVoDFTOdSZB4lcNyEatODuRAGU/ZgYopuElKsWA= at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:1389) at com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:902) at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:607) at com.amazonaws.http.AmazonHttpClient.doExecute(AmazonHttpClient.java:376) at com.amazonaws.http.AmazonHttpClient.executeWithTimer(AmazonHttpClient.java:338) at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:287) at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3654) at com.amazonaws.services.s3.AmazonS3Client.getObjectMetadata(AmazonS3Client.java:964) at com.amazonaws.services.s3.AmazonS3Client.getObjectMetadata(AmazonS3Client.java:940) at com.amazonaws.services.s3.AmazonS3Client.doesObjectExist(AmazonS3Client.java:999) at com.twitter.heron.uploader.s3.S3Uploader.uploadPackage(S3Uploader.java:111) at com.twitter.heron.scheduler.SubmitterMain.uploadPackage(SubmitterMain.java:457) at com.twitter.heron.scheduler.SubmitterMain.submitTopology(SubmitterMain.java:400) at com.twitter.heron.scheduler.SubmitterMain.main(SubmitterMain.java:315)

    Users with the same issue

    tvrmsmithtvrmsmith
    1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Nikolay RybakNikolay Rybak
    3 times, last one,
    49 more bugmates