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

[BUG] Failing to setup Discord webhook notifications #233

Open
igorpaytrack opened this issue Jul 30, 2024 · 4 comments
Open

[BUG] Failing to setup Discord webhook notifications #233

igorpaytrack opened this issue Jul 30, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@igorpaytrack
Copy link

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

  1. Go to Menu -> Managament -> Notifications
  2. Click on Create channel
  3. Select channel type = Slack or Custom Webhook and paste the Webhook URL
  4. 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:
image

Custom webhook test:
image

Host/Environment (please complete the following information):
AWS Managed Open Search

@igorpaytrack igorpaytrack added bug Something isn't working untriaged labels Jul 30, 2024
@kavilla
Copy link
Member

kavilla commented Aug 6, 2024

@opensearch-project/admin could you please re-direct to notifications dashboards.

@gaiksaya gaiksaya transferred this issue from opensearch-project/OpenSearch-Dashboards Aug 6, 2024
@ethanporcaro
Copy link

I'm also having this issue, I think there needs to be more control of the way the parameters are sent

@ethanporcaro
Copy link

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.
image
image
There needs to be a way to put a custom test message in the hook setup

@dblock dblock removed the untriaged label Aug 19, 2024
@dblock
Copy link
Member

dblock commented Aug 19, 2024

Catch All Triage - 1, 2, 3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants