# Debugging Webhooks

**URL:** <https://community.hubspot.com/t/debugging-webhooks/43698>\
**Category:** APIs & Integrations\
**Tags:** webhooks\
**Created:** [September 13, 2021, 1:05am UTC](https://community.hubspot.com/t/debugging-webhooks/43698 "2021-09-13T01:05:32Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![dwaynemac](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dwaynemac/32/82797_2.png) [@dwaynemac](https://community.hubspot.com/u/dwaynemac)\
**Post date:** [September 13, 2021, 1:05am UTC](https://community.hubspot.com/t/debugging-webhooks/43698/1 "2021-09-13T01:05:32Z")

</div>

I’ve been testing my webhooks endpoint with external clients and response 204 is given correctly.

But on the app monitor all fired webhook events are listed as “HTTP host connection error”

How may I debug this?

---

<div class="post-metadata">

**Author:** ![Teun](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/teun/32/28739_2.png) [@Teun](https://community.hubspot.com/u/Teun)\
**Post date:** [September 13, 2021, 6:17am UTC](https://community.hubspot.com/t/debugging-webhooks/43698/2 "2021-09-13T06:17:09Z")

</div>

Hi @dwaynemac ,

By ‘app monitor’, do you mean the workflow logs or do you mean the application that is receiving the post request from the webhook?

If it is an application you wrote yourself, could you explain what technique you used so we can help you debug? Did you use PHP, NodeJS (Express) or another solution?

---

<div class="post-metadata">

**Author:** ![dwaynemac](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dwaynemac/32/82797_2.png) [@dwaynemac](https://community.hubspot.com/u/dwaynemac)\
**Post date:** [September 13, 2021, 12:45pm UTC](https://community.hubspot.com/t/debugging-webhooks/43698/3 "2021-09-13T12:45:56Z")

</div>

By ‘app monitor’ I meant this link: [Developers | HubSpot](https://app.hubspot.com/developer/5030521/application/182429/monitoring/webhooks)

The app is written by myself. It’s on RubyOnRails, hosted on AWS, with a LetsEncrypt certificate.

I tested the webhook endpoint with [https://paw.cloud/](https://paw.cloud/) with the ‘validate certificate’ enabled and it worked fine from there.

---

<div class="post-metadata">

**Author:** ![Teun](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/teun/32/28739_2.png) [@Teun](https://community.hubspot.com/u/Teun)\
**Post date:** [September 13, 2021, 12:52pm UTC](https://community.hubspot.com/t/debugging-webhooks/43698/4 "2021-09-13T12:52:07Z")

</div>

So if I read your post correctly, your app is giving a valid response (204) on the endpoint the webhook is pointing to? Cause if no response is given to the webhooks POST request, that will result in an error.

---

<div class="post-metadata">

**Author:** ![dwaynemac](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dwaynemac/32/82797_2.png) [@dwaynemac](https://community.hubspot.com/u/dwaynemac)\
**Post date:** [September 13, 2021, 1:13pm UTC](https://community.hubspot.com/t/debugging-webhooks/43698/5 "2021-09-13T13:13:27Z")

</div>

Yes, my app is responding with 204.

But I tried responding “ok” and 202 and had de same problem.

What’s the expected response by HubSpot?

---

<div class="post-metadata">

**Author:** ![Teun](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/teun/32/28739_2.png) [@Teun](https://community.hubspot.com/u/Teun)\
**Post date:** [September 13, 2021, 1:20pm UTC](https://community.hubspot.com/t/debugging-webhooks/43698/6 "2021-09-13T13:20:17Z")

</div>

@dwaynemac Could you try to respond with 200? I checked a few of my applications and the workflow should work with a 200 response.

---

<div class="post-metadata">

**Author:** ![dwaynemac](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dwaynemac/32/82797_2.png) [@dwaynemac](https://community.hubspot.com/u/dwaynemac)\
**Post date:** [September 13, 2021, 1:33pm UTC](https://community.hubspot.com/t/debugging-webhooks/43698/7 "2021-09-13T13:33:29Z")

</div>

nope. still not working after changing responde to 200.

 ![CleanShot 2021-09-13 at 10.32.38.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/6/6380075bafd40ae9071594ca74f059b4c804dcaa.png)

---

<div class="post-metadata">

**Author:** ![Teun](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/teun/32/28739_2.png) [@Teun](https://community.hubspot.com/u/Teun)\
**Post date:** [September 13, 2021, 1:27pm UTC](https://community.hubspot.com/t/debugging-webhooks/43698/8 "2021-09-13T13:27:35Z")

</div>

@dwaynemac How long does it take your server to respond?  
I found the following in another post:

HubSpot will retry in the following cases:

- **Connection Failed** - If we cannot open an http connection to the provided webhook URL
- **Timeout** - If your service takes longer than 5 seconds to send back a response to a batch of notifications
- **Error codes** - If your service responds with an HTTP status code that is _not_ one of: 400, 401, 403, 404, 405

Could it be that you are experiencing a timeout?  
There are some solutions available [here](https://community.hubspot.com/t5/APIs-Integrations/Webhook-Failing-because-of-unknown-error/td-p/404826).

---

<div class="post-metadata">

**Author:** ![dwaynemac](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dwaynemac/32/82797_2.png) [@dwaynemac](https://community.hubspot.com/u/dwaynemac)\
**Post date:** [September 13, 2021, 1:38pm UTC](https://community.hubspot.com/t/debugging-webhooks/43698/9 "2021-09-13T13:38:20Z")

</div>

Definetly under 5 seconds

 ![CleanShot 2021-09-13 at 10.36.46.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/9/4/9469bebc8a4ef020a8a7453109a9232124f251e1.png)

---

<div class="post-metadata">

**Author:** ![dwaynemac](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dwaynemac/32/82797_2.png) [@dwaynemac](https://community.hubspot.com/u/dwaynemac)\
**Post date:** [September 13, 2021, 1:40pm UTC](https://community.hubspot.com/t/debugging-webhooks/43698/10 "2021-09-13T13:40:22Z")

</div>

My issue seems to be the same of the post you linked but there is no solution there either

---

<div class="post-metadata">

**Author:** ![Teun](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/teun/32/28739_2.png) [@Teun](https://community.hubspot.com/u/Teun)\
**Post date:** [September 13, 2021, 1:43pm UTC](https://community.hubspot.com/t/debugging-webhooks/43698/11 "2021-09-13T13:43:15Z")

</div>

Thanks for the additional info! If the response is given within 5 seconds, that can not be the issue.  
@dennisedson Could you help us out?

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [September 13, 2021, 8:07pm UTC](https://community.hubspot.com/t/debugging-webhooks/43698/12 "2021-09-13T20:07:31Z")

</div>

@dwaynemac , I am looking into this. Will let you know what I figure out

---

<div class="post-metadata">

**Author:** ![dwaynemac](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dwaynemac/32/82797_2.png) [@dwaynemac](https://community.hubspot.com/u/dwaynemac)\
**Post date:** [September 13, 2021, 8:58pm UTC](https://community.hubspot.com/t/debugging-webhooks/43698/13 "2021-09-13T20:58:14Z")

</div>

Thank you! Looking forward to your input.

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [September 14, 2021, 3:43pm UTC](https://community.hubspot.com/t/debugging-webhooks/43698/14 "2021-09-14T15:43:34Z")

</div>

Looks like you have an SSL issue.

I ran a post to your request url and received this:

 ![Postman.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/2/8/28b3769b687b65a8083ff50651ee6031805fc5f2.png)

---

<div class="post-metadata">

**Author:** ![dwaynemac](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dwaynemac/32/82797_2.png) [@dwaynemac](https://community.hubspot.com/u/dwaynemac)\
**Post date:** [September 14, 2021, 5:38pm UTC](https://community.hubspot.com/t/debugging-webhooks/43698/15 "2021-09-14T17:38:55Z")

</div>

thanks!

---

<div class="post-metadata">

**Author:** ![dwaynemac](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dwaynemac/32/82797_2.png) [@dwaynemac](https://community.hubspot.com/u/dwaynemac)\
**Post date:** [September 14, 2021, 6:15pm UTC](https://community.hubspot.com/t/debugging-webhooks/43698/16 "2021-09-14T18:15:02Z")

</div>

Ok! Some tweaking on my ssl configuration seem to have solved the issue. thanks!
