amazon-cloudwatch-to-slack icon indicating copy to clipboard operation
amazon-cloudwatch-to-slack copied to clipboard

Error when parsing the AWS notifications

Open nikilster opened this issue 10 years ago • 1 comments

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.

nikilster avatar Nov 19 '14 01:11 nikilster

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!

esanchezm avatar Nov 19 '14 10:11 esanchezm