amazon-cloudwatch-to-slack
amazon-cloudwatch-to-slack copied to clipboard
Error when parsing the AWS notifications
I'm seeing the code get an error when parsing the message in the sns notification. Here's the message format I was seeing ("Message" : "hey there") and a link to the docs which seem to confirm that this is the correct message format: http://docs.aws.amazon.com/sns/latest/dg/json-formats.html#http-notification-json.
Looks like the code is expecting a JSON object there - is that what you are receiving from your AWS instance.
Hi Nikil,
I wrote this app with some very specific notifications we're using, CloudWatch alarms originally and SES afterwards (email deliveries, bounces and complaints). Any other notification probably will fail to deliver to slack, and it looks like it's your case.
Could you please attach the heroku application log when processing the notification? Use:
heroku logs --app yourapp
Remember to remove any sensible data you might have!