You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to setup discord notifications, using custom webhooks and other channel types just doesn't work.
[status_exception] {"event_status_list": [{"config_id":"MHUOBJEBYI2ocp6lYB4a","config_type":"slack","config_name":"temp-Discord SRE","email_recipient_status":[],"delivery_status":{"status_code":"500","status_text":"Failed to send webhook message Failed: {"_misc": ["Expected \"Content-Type\" header to be one of {'multipart/form-data', 'application/json', 'application/x-www-form-urlencoded'}."]}"}}]}
To Reproduce
Steps to reproduce the behavior:
First you need a discord Webhook URL
Go to Menu -> Managament -> Notifications
Click on Create channel
Select channel type = Slack or Custom Webhook and paste the Webhook URL
try to send test message
Expected behavior
A clear and concise description of what you expected to happen.
OpenSearch Version
v 2.11.0
Dashboards Version
Not applicable
Screenshots
Slack test:
Custom webhook test:
Host/Environment (please complete the following information):
AWS Managed Open Search
The text was updated successfully, but these errors were encountered:
I figured it out. The test message looks like this: Test message content body for config id <id>
But that is not valid JSON. Discord expects a value for the "content" key. In the Create Monitor page, you can put in the full message. If you format it as JSON it works.
There needs to be a way to put a custom test message in the hook setup
Describe the bug
I'm trying to setup discord notifications, using custom webhooks and other channel types just doesn't work.
[status_exception] {"event_status_list": [{"config_id":"MHUOBJEBYI2ocp6lYB4a","config_type":"slack","config_name":"temp-Discord SRE","email_recipient_status":[],"delivery_status":{"status_code":"500","status_text":"Failed to send webhook message Failed: {"_misc": ["Expected \"Content-Type\" header to be one of {'multipart/form-data', 'application/json', 'application/x-www-form-urlencoded'}."]}"}}]}
To Reproduce
Steps to reproduce the behavior:
First you need a discord Webhook URL
Expected behavior
A clear and concise description of what you expected to happen.
OpenSearch Version
v 2.11.0
Dashboards Version
Not applicable
Screenshots
Slack test:
Custom webhook test:
Host/Environment (please complete the following information):
AWS Managed Open Search
The text was updated successfully, but these errors were encountered: