# WebHook works with Alerting but doesnt with watcher

**URL:** <https://discuss.elastic.co/t/webhook-works-with-alerting-but-doesnt-with-watcher/291335>\
**Category:** Kibana\
**Tags:** elastic-stack-alerting\
**Created:** [December 9, 2021, 1:58pm UTC](https://discuss.elastic.co/t/webhook-works-with-alerting-but-doesnt-with-watcher/291335 "2021-12-09T13:58:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ElasticLiver](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elasticliver/32/64869_2.png) [@ElasticLiver](https://discuss.elastic.co/u/ElasticLiver)\
**Post date:** [December 9, 2021, 1:58pm UTC](https://discuss.elastic.co/t/webhook-works-with-alerting-but-doesnt-with-watcher/291335/1 "2021-12-09T13:58:21Z")

</div>

Hi, Im trying to send webhooks to logstash with watcher, and Im getting this error

```auto
            "type" : "client_protocol_exception",
            "reason" : null,
            "caused_by" : {
              "type" : "protocol_exception",
              "reason" : "The server failed to respond with a valid HTTP response"

```

sending webhooks with Alerting works fine, this is my conector

![image](https://us1.discourse-cdn.com/elastic/original/3X/3/c/3cc53e44d483845de0f46b6c9993566f67fd7340.png)

But when I try with watcher it trows me the client\_protocol\_exception

![image](https://us1.discourse-cdn.com/elastic/original/3X/d/9/d9fa44f3448a738e75635999b5cb749addaf04dc.png)

Any idea on why is not working?

---

<div class="post-metadata">

**Author:** ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)\
**Post date:** [December 14, 2021, 5:16pm UTC](https://discuss.elastic.co/t/webhook-works-with-alerting-but-doesnt-with-watcher/291335/2 "2021-12-14T17:16:24Z")

</div>

I'm not sure but based on the error message, it looks like there is a connectivity issue between watcher and the logstash instance.

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [December 15, 2021, 4:01pm UTC](https://discuss.elastic.co/t/webhook-works-with-alerting-but-doesnt-with-watcher/291335/3 "2021-12-15T16:01:27Z")

</div>

Is it possible that you are using https (doesnt look like it, just to verify though)? Can you share the full exception?

---

<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:** [January 12, 2022, 4:02pm UTC](https://discuss.elastic.co/t/webhook-works-with-alerting-but-doesnt-with-watcher/291335/4 "2022-01-12T16:02:14Z")

</div>

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