Skip to content

The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint. #112

@Sammaye

Description

@Sammaye

I got this problem while using the S3 client through the AWS factory like:

    $this->aws=Aws::factory(array(
        'key' => $this->key,
        'secret' => $this->secret,
        'region' => Region::US_WEST_2                   
    ));
    return $this->aws->get('s3');

After much investigation (namely this thread: tpyo/amazon-s3-php-class#46 ) I decided it was down to specific region.

I could not change the endpoint directly so I mimicked the default region using:

$s3->setRegion('us-east-1');

And it worked again.

Is this a bug? I have noticed that bucket no longer needs regions, my bucket is a very old one so it is not new.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions