Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWSSNS HandleNotification Decode Error on CloudWatch message notification #61

Open
zzbmmbzz opened this issue Jan 27, 2021 · 2 comments

Comments

@zzbmmbzz
Copy link

Hi all,
Could you please help me how to resolve this error message.
I have tried push my message but could not. It show Invalid character ...

{"level":"error","ts":1611738094.420494,"caller":"mlog/sugar.go:23","msg":"AWSSNS HandleNotification Decode Error on CloudWatch message notification","plugin_id":"com.mattermost.aws-sns","err":"invalid character 'e' looking for beginning of value","message":"e33q2saceéd"}

Thanks,
Edgar

@ffrpr
Copy link

ffrpr commented Sep 27, 2021

Are you trying to push a message mannually, or this is ocurring with Cloudwatch alerts?
Apparently the plugin does not support raw messages, so publishing messages manually will not work because the plugin is expecting a specific format (thats the error you are seent).

If this error is happening with Cloudwatch alarms, you should check if at the subscription option you have the "Support for RAW messages" disabled. If enabled, turn if off.

After doing this changes from the AWS side, I would suggest to:
1- Disable the AWS SNS plugin from mattermost console
2- Remove the plugin folder from your server
3- Install the plugin again from mattermost console.

@Asgaros
Copy link

Asgaros commented Aug 9, 2023

Having the same problem. It would be great if the plugin could support raw messages.

What I am doing is to capture specific messages from EventBridge and then send those to a SNS topic - which should forward those message to our Mattermost instance via the HTTPS-endpoint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants