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] WebHook notification with json body #989

Open
DmitriiKuvshinov opened this issue Jan 10, 2025 · 0 comments
Open

[BUG] WebHook notification with json body #989

DmitriiKuvshinov opened this issue Jan 10, 2025 · 0 comments
Labels
bug Something isn't working untriaged

Comments

@DmitriiKuvshinov
Copy link

What is the bug?
I want to send webhooks to our Rocket.Chat, but OpenSearch send html body, not json

How can one reproduce the bug?
Configuration of notification

{
  "start_index" : 0,
  "total_hits" : 1,
  "total_hit_relation" : "eq",
  "config_list" : [
    {
      "config_id" : "Ip75-5IBkTxtk5bkXEfE",
      "last_updated_time_ms" : 1730808888085,
      "created_time_ms" : 1730804276420,
      "config" : {
        "name" : "Rocket",
        "description" : "",
        "config_type" : "webhook",
        "is_enabled" : true,
        "webhook" : {
          "url" : "https://rocket.domain/hooks/**webhook**",
          "header_params" : {
            "Content-Type" : "application/json"
          },
          "method" : "PUT"
        }
      }
    }
  ]
}

What is the expected behavior?
A clear and concise description of what you expected to happen.

What is your host/environment?

  • OS: Ubuntu Server 22.04
  • OpenSearch 2.17.1

Do you have any screenshots?
Screenshot 2025-01-10 at 13 08 53

@DmitriiKuvshinov DmitriiKuvshinov added bug Something isn't working untriaged labels Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged
Projects
None yet
Development

No branches or pull requests

1 participant