# Watcher Action Webhook (Google Meet space) errored

**URL:** <https://discuss.elastic.co/t/watcher-action-webhook-google-meet-space-errored/322956>\
**Category:** Kibana\
**Tags:** elastic-stack-alerting\
**Created:** [January 11, 2023, 4:22pm UTC](https://discuss.elastic.co/t/watcher-action-webhook-google-meet-space-errored/322956 "2023-01-11T16:22:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![diegomarting](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/diegomarting/32/99596_2.png) [@diegomarting](https://discuss.elastic.co/u/diegomarting)\
**Post date:** [January 11, 2023, 4:22pm UTC](https://discuss.elastic.co/t/watcher-action-webhook-google-meet-space-errored/322956/1 "2023-01-11T16:22:11Z")

</div>

I am trying to create a Watcher monitor to check the number of documents of a query and send a message to a Google Webhook when the condition is met. The query and the condition work right. However when the condition is fulfilled, the triggered action fails with a 400 Error and a message: "Your client has issued a malformed or illegal request. ". The details of the webhook action configuration are shown below:

```auto
"webhook": {
        "scheme": "https",
        "host": "chat.googleapis.com",
        "port": 443,
        "method": "post",
        "path": "/v1/spaces/--------/messages",
        "params": {
          "token": "------",
          "key": "------"
        },
        "headers": {
          "Content-Type": "application/json"
        },
        "body": "There are {{ctx.payload.hits.total}} documents in your index. Threshold is 10."
      }

```

The original url of the webhook is as following: [https://chat.googleapis.com/v1/spaces/------/messages?key=-------&token=--------](https://chat.googleapis.com/v1/spaces/------/messages?key=-------&token=--------)

I have no idea why this error is spammed. Any help?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 8, 2023, 4:22pm UTC](https://discuss.elastic.co/t/watcher-action-webhook-google-meet-space-errored/322956/2 "2023-02-08T16:22:19Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
