arithmetric / aws-lambda-ses-forwarder

Serverless email forwarding using AWS Lambda and SES
MIT License
1.7k stars 450 forks source link

Error when new email is received in S3 #110

Open mapi33 opened 5 years ago

mapi33 commented 5 years ago

When I receive a new email in S3, I can see the following error in CloudWatch:

'Error: Error: Received invalid SES message.\n at exports.parseEvent (/var/task/index.js:58:27)\n at '

arithmetric commented 4 years ago

Hi @mapi33, I would need more information to track down the issue here. This error means that the data provided to Lambda when being invoked is not expected. The CloudWatch logs should include part of the data received after the text: parseEvent() received invalid SES message: