antonputra/tutorials

Receiving the Error when using Lambda to send alerts to Slack.

ashit21j opened this issue · 1 comments

Hi Anton,

I am facing a problem with the lambda function; it does not always work.

Most of the time, I receive the below error:

image

Can you let me know how to fix this problem?

I think issue here. https://github.com/antonputra/tutorials/blob/main/lessons/122/functions/send-cloudwatch-alarms-to-slack/function.py#L12

Can you find out how the message look like when you get an error(print to console)? Maybe you get an error of some sort.