com.amazonaws.services.s3.model.AmazonS3Exception: Moved Permanently (Service: Amazon S3; Status Code: 301; Error Code: 301 Moved Permanently; Request ID: 46B92304962E5633), S3 Extended Request ID: z8rZwvvo+jxU868kq8hy1AHbRso+WbOiwCEbfvn4EGZKYDarK8s/+6sbCDOp39tF625KU26v7YE=

tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0

    Data Pipeline dump for DynamoDb to S3 failed all the time

    Stack Overflow | 2 months ago | Vladimir Gilevich
    com.amazonaws.services.s3.model.AmazonS3Exception: Moved Permanently (Service: Amazon S3; Status Code: 301; Error Code: 301 Moved Permanently; Request ID: 46B92304962E5633), S3 Extended Request ID: z8rZwvvo+jxU868kq8hy1AHbRso+WbOiwCEbfvn4EGZKYDarK8s/+6sbCDOp39tF625KU26v7YE=
  2. 0
    samebug 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.
  3. 0

    `AmazonS3Client.getObjectMetadata` fails for bucket in other region

    GitHub | 9 months ago | sebastiankirsch
    com.amazonaws.services.s3.model.AmazonS3Exception: Moved Permanently (Service: Amazon S3; Status Code: 301; Error Code: 301 Moved Permanently; Request ID: 1BEA69C8759690E3)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hunk AMI with EMR and S3: always got AmazonS3Exception, status code 301 - HPS Help

    howproblemsolution.com | 2 years ago
    com.amazonaws.services.s3.model.AmazonS3Exception: Moved Permanently (Service: Amazon S3; Status Code: 301; Error Code: null; Request ID: 1B2AA15E0118C9F4), S3 Extended Request ID: xOYmHXIJh8fBmDuW5E/o5WdDV6sXDqQRaH576x/KnlRYmMclgpuxTAbVYTATOBSEdStYdEBBsUg=
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. com.amazonaws.services.s3.model.AmazonS3Exception

    Moved Permanently (Service: Amazon S3; Status Code: 301; Error Code: 301 Moved Permanently; Request ID: 46B92304962E5633), S3 Extended Request ID: z8rZwvvo+jxU868kq8hy1AHbRso+WbOiwCEbfvn4EGZKYDarK8s/+6sbCDOp39tF625KU26v7YE=

    at com.amazonaws.http.AmazonHttpClient.handleErrorResponse()
  2. AWS SDK for Java - Core
    AmazonHttpClient.execute
    1. com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:1182)
    2. com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:770)
    3. com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:489)
    4. com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:310)
    4 frames
  3. AWS Java SDK for Amazon S3
    AmazonS3Client.getObjectMetadata
    1. com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3796)
    2. com.amazonaws.services.s3.AmazonS3Client.getObjectMetadata(AmazonS3Client.java:1060)
    3. com.amazonaws.services.s3.AmazonS3Client.getObjectMetadata(AmazonS3Client.java:1035)
    3 frames
  4. com.amazon.ws
    Jets3tNativeFileSystemStore.retrieveMetadata
    1. com.amazon.ws.emr.hadoop.fs.s3n.Jets3tNativeFileSystemStore.retrieveMetadata(Jets3tNativeFileSystemStore.java:199)
    1 frame