Comments (3)
@yenfryherrerafeliz I will try and get back to you soon
from aws-sdk-php.
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.
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)
- Use of SSO roles for PHP CLI HOT 1
- Incorrect argument type HOT 5
- fprintf(): supplied resource is not a valid stream resource HOT 4
- SignatureV4 mismatch on some requests HOT 7
- Deprecated: Using ${var} in strings is deprecated HOT 3
- Support 'OriginationNumber' when sending SMS. HOT 1
- Exception thrown in synchronous call "bleeds over" to asynchronous call HOT 3
- IRSA for Kubernetes not working HOT 3
- Argument 4 passed to Aws\Exception\AwsException::__construct() must be an instance of Exception or null HOT 3
- verifyDomainDkim method of SES Client returns validation error HOT 4
- Yum package
- InstanceProfile credentials provider causing open_basedir restriction error since 3.297.0 HOT 2
- Aws SQS: VisibilityTimeout value is zero and type is string instead integer HOT 5
- What version should I specify for MediaPackage and MediaPackageVod client? HOT 3
- PostObjectV4 with Custom Domain HOT 5
- File paths are not safe for Windows HOT 2
- fopen() throws Error executing "GetObject" HOT 1
- Error when trying to list objects from a public S3 bucket via the listObjectsV2() function. HOT 2
- S3 PutObject doesn't work on VPN HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-sdk-php.