SES Issue
Primary tabs
This is the issue: https://master1and1-9.schoolboard.net/node/1382
Note that it did not read the body of 2023/03/17/04/PUT-S3-5uhlt-1-2023-03-17-04-13-26-b739f11f-8f37-41d8-aa02-5691e4370f7a.txt (attached).
This is how the problem was resolved: https://sharegpt.com/c/o3N5zxO
Here is the code snippet:
foreach ($objects['Contents'] as $object) {
$key = $object['Key'];
echo $key . "\n";
$object = getObject($s3Client, $bucket, $key);
$logData = json_decode($object['Body'], true); // parse JSON data into an associative array
if (isset($logData['eventType'])) {
echo "Event type: " . $logData['eventType'] . "\n";
}
print_r($logData);
}
Why would it successfully read every PUT file except the last 6 posted? What is the format required for those last 6 (example attached)? https://master1and1-9.schoolboard.net/sites/default/files/PUT-S3-5uhlt-1...
Cannot be read (attached)
2023/03/17/04/PUT-S3-5uhlt-1-2023-03-17-04-20-44-acf4eed2-8f19-4897-8a62-d5f2c041d1e7
2023/03/17/04/PUT-S3-5uhlt-1-2023-03-17-04-27-24-da8e8970-aba8-4d15-9d88-7903bb4f4101
2023/03/17/04/PUT-S3-5uhlt-1-2023-03-17-04-44-36-83543aa0-ccc4-4262-baa6-d38df19618f9
Here is the initial discussion with AI: https://sharegpt.com/c/L7L4Rim
Recent comments