Description
Hi,
I have just deployed v4.0 of this solution. After I upload an image to the source S3 bucket I get the following message, even though the object exists and is public (I can access it directly via an S3 URL):
{"status":500,"code":"NoSuchKey","message":"The specified key does not exist."}
Here's an example:
- https://d3g99zcrnlow87.cloudfront.net/subfolder/4simon.jpg (500)
- https://image-handler-testing.s3.amazonaws.com/subfolder/4simon.jpg (200)
Oddly, when I upload an image to the root of the bucket, I can retrieve the image via the API/distribution without any issue:
- https://d3g99zcrnlow87.cloudfront.net/simoncoveney.jpg (200)
- https://image-handler-testing.s3.amazonaws.com/simoncoveney.jpg (200)
What's weirder again is that if I then re-upload that second example to a sub-folder, after first uploading it to the root, it can be retrieved via the API/distribution:
- https://d3g99zcrnlow87.cloudfront.net/subfolder/simoncoveney.jpg
- https://image-handler-testing.s3.amazonaws.com/subfolder/simoncoveney.jpg
We can see here that the 500 response is not coming from CloudFront, but from the API (or something further along the process): https://wc9am3chn1.execute-api.us-east-1.amazonaws.com/image/subfolder/4simon.jpg
Can anyone give any insight into what's going on?
Conor