Code Monkey home page Code Monkey logo

Comments (7)

jeremeamia avatar jeremeamia commented on August 16, 2024 1

It seems like your bucket was created in the us-east-1 region, but you are trying to use the eu-west-1 region via the SDK to access it. The first error you mentioned is the S3 telling you to use the correct region.

The second error you mentioned is happening because setEndpoint() is not a valid method on the client object. Therefore the client's __call() method is being triggered, which erroneously tries to create a command/request.

You need to use the setRegion() method instead OR update your config. Try $s3->setRegion('us-east-1'); before the putObject() call.

from aws-sdk-php-laravel.

rahulparekh avatar rahulparekh commented on August 16, 2024

Thanks for the quick response.

Setting the region to US_EAST_1 in aws.php worked.

Silly error on my part.

from aws-sdk-php-laravel.

senrakesh02 avatar senrakesh02 commented on August 16, 2024

I got this error while i am trying from IOS.
Error Domain=com.amazonaws.iossdk.ServiceErrorDomain Code=301 "The operation couldn’t be completed. (com.amazonaws.iossdk.ServiceErrorDomain error 301.)" UserInfo=0x17f2fa50 {requestId=A828673B49C602E8, exception=AmazonServiceException { RequestId:A828673B49C602E8, ErrorCode:PermanentRedirect, Message:The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint. }, errorCode=PermanentRedirect}

from aws-sdk-php-laravel.

kavithasrinu avatar kavithasrinu commented on August 16, 2024

hey, hi when I am trying to access through the s3 with this code but Iam getting this erroe can anyone help me..
input {
s3 {
bucket => 'mylogtrail'
secret_access_key => '****************************'
access_key_id => '**
********************* '
delete => false
interval => '60'
region => 'us-west-2'
}
}

plugin had an unrecoverable error. Will restart this plugin.
Plugin: <LogStash::Inputs::S3 bucket=>"mylogtrail", secret_access_key=>"***************************", access_key_id=>"**", delete=>false, interval=>60, region=>"us-west-2", codec=><LogStash::Codecs::Plain charset=>"UTF-8">, use_ssl=>true, temporary_directory=>"/tmp/logstash">
Error: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint. {:level=>:error}

from aws-sdk-php-laravel.

cjyclaire avatar cjyclaire commented on August 16, 2024

@kavithasrinu could you check that your bucket region and endpoint matches?

from aws-sdk-php-laravel.

vj0555 avatar vj0555 commented on August 16, 2024

The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.s3.amazonaws.comjenkinsartefactsTJHRGZ2BHD5PNMCHZhAQ1H357BskX0Ey138muofh2YyU4SaXM9nSLoC4E43nFkB3ji3C5vTuDFTMDzR3m4+FrccdM/Y=

from aws-sdk-php-laravel.

NhatDuy11 avatar NhatDuy11 commented on August 16, 2024

table=spark.sql("""
CREATE TABLE default.iceberg_table12 (
id INT,
data1 STRING
)
USING ICEBERG
""")
Py4JJavaError: An error occurred while calling o57.sql.
: software.amazon.awssdk.services.s3.model.S3Exception: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint. (Service: S3, Status Code: 301, Request ID: A6CWB28TSYH7T0C0, Extended Request ID: YgNLdKrEQHNWgWE/0IIbvUXrg0n9yC5+C3YIENe1WWcZDUWNYQvpnwqm4SaQs4ZwmBrcjHzDeIE=)

from aws-sdk-php-laravel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.