Need assistance configuring AWS Serverless Image Handler
New here? Learn about Bountify and follow @bountify to get notified of new bounties! x

I have an S3 bucket set up with jpg images. I have tried to configure AWS Serverless Image Handler but I'm having trouble with the deploy to my bucket rather than the demo. I think the problem may be with my URLs.

The bucket is cns052019 in east-1. Sample image is https://s3.amazonaws.com/cns052019/Walking+300dpi.jpg

Stack id from Cloud Formation is arn:aws:cloudformation:us-east-1:267897854660:stack/ServerlessImageHandler/a87afa30-7bf0-11e9-9b35-0ec3f5318aae

I'm getting errors like this:
[ERROR] 2019-05-21T18:58:31.633Z 0a8df9bb-8f57-4769-86a9-c498edc663f4 ERROR retrieving image from S3 cns052019/Chiarentana+Olive+II.jpg/undefined: {'ResponseMetadata': {'HTTPStatusCode': 404, 'HostId': '5/dZr7Fo8eMyrZafRzwVmBPHsEVelJFv48kTKkitY10moOXxjR3saRyoNc8uTVdtK25++5914W4=', 'RequestId': 'D8F2CB818D860865', 'HTTPHeaders': {'X-Amz-Id-2': '5/dZr7Fo8eMyrZafRzwVmBPHsEVelJFv48kTKkitY10moOXxjR3saRyoNc8uTVdtK25++5914W4=', 'X-Http-Reason': 'Not Found', 'Server': 'AmazonS3', 'Transfer-Encoding': 'chunked', 'X-Amz-Request-Id': 'D8F2CB818D860865', 'Date': 'Tue, 21 May 2019 18:58:31 GMT', 'Content-Type': 'application/xml'}}, 'Error': {'Message': 'The specified key does not exist.', 'Code': 'NoSuchKey', 'Key': 'cns052019/Chiarentana+Olive+II.jpg/undefined'}}

From the key in the error, it looks like you're appending something undefined to the URL. cns052019/Chiarentana+Olive+II.jpg/undefined.
You need to fix/remove whatever's appending the undefined part to the end of your URLs.
Wuddrum 29 days ago
Got it from that. Submit as a "solution" so I can award the bounty.
billsouthworth 29 days ago
Glad you got it sorted, I've posted it as solution.
Wuddrum 29 days ago
awarded to Wuddrum
Tags
aws

Crowdsource coding tasks.

1 Solution

Winning solution

From the key in the error, it looks like you're appending something undefined to the URL. cns052019/Chiarentana+Olive+II.jpg/undefined.

You need to fix/remove whatever's appending the undefined part to the end of your URLs.