We use some script on PHP which get object from S3 and process it. I get object from S3 with next code:
$command = $this->s3Client->getCommand(
'GetObject',
[
'Bucket' => $backetName,
'Key' => $objectKey,
'ResponseContentEncoding' => 'identity'
]
);
return $this->s3Client->execute($command)->toArray();
Today I found that this script returns error:
"Error executing \"GetObject\" on \"https://s3.amazonaws.com/backet-name/object-key?response-content-encoding=identity\"; AWS HTTP error: cURL error 61: Unrecognized or bad HTTP Content or Transfer-Encoding".
This script has worked fine some months before.
I tried use another ResponseContentEncoding and finally remove this option, but result was same. Can someone help me to resolve this problem?