GithubHelp home page GithubHelp logo

Comments (3)

RafficMohammed avatar RafficMohammed commented on June 10, 2024 1

@yenfryherrerafeliz I will try and get back to you soon

from aws-sdk-php.

yenfryherrerafeliz avatar yenfryherrerafeliz commented on June 10, 2024

Hi @RafficMohammed, sorry to hear about your issue. The only issue I can I see here is that you are using an old version of the SDK. Would you be able to update to a most recent version?, and then see if the issue persists there?. If after updating the issue persists then, could you please try with my code example below, and provide the results here?.

By running the code below and using the latest version I had not issues:

<?php
require '../vendor/autoload.php';

use Aws\S3\S3Client;


$s3Client = new S3Client([
    'region' => 'us-east-2',
    'debug' => true
]);
$result = $s3Client->getObject([
    'Bucket' => getenv('TEST_BUCKET'),
    'Key' => getenv('TEST_KEY'),
    '@http' => [
        'stream' => true
    ]
]);

Result:

Array
(
    [statusCode] => 200
    [effectiveUri] => https://herrergy-sample-bucket.s3.us-east-2.amazonaws.com/herrergy-sample-key.txt
    [headers] => Array
        (
            redacted
        )
)
This is a test file for getObject!

Note: In the scenario that the issue persists after updating to a most recent version of the SDK, please make sure you redact any sensitive information in any new information provided and please make sure you replace the values given to Bucket and Key in my code with your own bucket and key values.

I hope this helps!

Thanks!

from aws-sdk-php.

github-actions avatar github-actions commented on June 10, 2024

This issue has not recieved a response in 1 week. If you want to keep this issue open, please just leave a comment below and auto-close will be canceled.

from aws-sdk-php.

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.