amazon-archives/serverless-image-resizing

lambda_handler error: 'requestContext'

Closed this issue · 1 comments

Hi,
Was looking over some cloudwatch logs regarding another issue & noted there were multiple instances of the following error

File "/var/task/image_handler/lambda_function.py", line 234, in lambda_handler
if event['requestContext']['httpMethod'] != 'GET' and
KeyError: 'requestContext'

Solution is still working for me but just thought I would bring it up.

Thanks

Todd

This project is in JavaScript, so I don't know what those errors are related to, but it's likely another Lambda function.