-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GetObject() command @http stream issue #2910
Comments
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! |
@yenfryherrerafeliz I will try and get back to you soon |
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. |
Describe the bug
In StreamWrapper.php
Because of this line => $command['@http']['stream'] = true;
I'm getting bellow error
If I set stream as true or remove the line, it's working as expected.
Expected Behavior
I need @http.stream to be true. Because our file can have large data.
Current Behavior
@http.stream => true is not working
Reproduction Steps
Create S3 Private Bucket and try this operation
Possible Solution
No response
Additional Information/Context
No response
SDK version used
3.29
Environment details (Version of PHP (
php -v
)? OS name and version, etc.)Ubuntu 22, Php => 8.1
The text was updated successfully, but these errors were encountered: