esanchezm / amazon-cloudwatch-to-slack

Relay alerts from Amazon CloudWatch to a Slack.com room.
GNU General Public License v2.0
63 stars 10 forks source link

Error when parsing the AWS notifications #4

Open nikilster opened 9 years ago

nikilster commented 9 years ago

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.

esanchezm commented 9 years ago

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!