# Webhook Timeout occurred, but will retry soon

**URL:** <https://community.hubspot.com/t/webhook-timeout-occurred-but-will-retry-soon/41078>\
**Category:** APIs & Integrations\
**Tags:** webhooks\
**Created:** [July 21, 2021, 2:34pm UTC](https://community.hubspot.com/t/webhook-timeout-occurred-but-will-retry-soon/41078 "2021-07-21T14:34:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![NFortin](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/nfortin/32/29572_2.png) [@NFortin](https://community.hubspot.com/u/NFortin)\
**Post date:** [July 21, 2021, 2:34pm UTC](https://community.hubspot.com/t/webhook-timeout-occurred-but-will-retry-soon/41078/1 "2021-07-21T14:34:47Z")

</div>

Hi,

I’ve seen similar questions about this before but can’t see that the solutions apply in my case. I’ve created a webhook which is correctly being trigged as can be seen in the Hubspot log at [Automation UI Canvas](https://app.hubspot.com/workflows/5163272/platform/flow/87833251/history/log-events)

Looking at the apache access log on my server no request is ever received via my target url [https://test.yourdolphin.com/unsubscribe/fromhs.php](https://test.yourdolphin.com/unsubscribe/fromhs.php) yet if you go directly to that url in a browser it’s just fine. The SSL vertificate on the server is valid and in date.

Neil

---

<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:** [July 21, 2021, 6:28pm UTC](https://community.hubspot.com/t/webhook-timeout-occurred-but-will-retry-soon/41078/2 "2021-07-21T18:28:21Z")

</div>

Hi @NFortin ,  
A webhook shows that result in the history page of the workflow when it has not received a valid response. In my case I had to set a valid HTTP response in order to debug the issue a bit further.  
In your case, it seems as if the URL is never reached, but just to be sure, could you check if you send a response when a ‘POST’ is made to the file?

---

<div class="post-metadata">

**Author:** ![NFortin](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/nfortin/32/29572_2.png) [@NFortin](https://community.hubspot.com/u/NFortin)\
**Post date:** [July 23, 2021, 7:48am UTC](https://community.hubspot.com/t/webhook-timeout-occurred-but-will-retry-soon/41078/3 "2021-07-23T07:48:35Z")

</div>

My endpoint script does not send a response, what response is required? However the endpoint is never reached, no incoming requests from Hubspot are present in the apache2 log file.

---

<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:** [July 23, 2021, 7:58am UTC](https://community.hubspot.com/t/webhook-timeout-occurred-but-will-retry-soon/41078/4 "2021-07-23T07:58:07Z")

</div>

Hi @NFortin , Any HTTP response should work. Best to send just a default HTTP response with a success or error message. Remember, when you open the URL through your browser, it is a GET request. A HubSpot webhook sends a POST request with an object attached.  
My best guess is to set a HTTP response and check if your file handles the POST requests correctly.

---

<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:** [July 23, 2021, 8:00am UTC](https://community.hubspot.com/t/webhook-timeout-occurred-but-will-retry-soon/41078/5 "2021-07-23T08:00:01Z")

</div>

@NFortin You could also use Postman to test what happens when you send a POST request. You could temporarily set the webhook to point to [https://webhook.site/](https://webhook.site/) where you can get a unique URL to send the POST request to. In Postman, you could than simulate the POST request to your endpoint to analyze the response.

---

<div class="post-metadata">

**Author:** ![NFortin](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/nfortin/32/29572_2.png) [@NFortin](https://community.hubspot.com/u/NFortin)\
**Post date:** [July 23, 2021, 9:44am UTC](https://community.hubspot.com/t/webhook-timeout-occurred-but-will-retry-soon/41078/6 "2021-07-23T09:44:54Z")

</div>

OK, so I create this test script on a different server:-

\<?php  
//The url you wish to send the POST request to  
$url = ‘[https://test.yourdolphin.com/unsubscribe/fromhs.php](https://test.yourdolphin.com/unsubscribe/fromhs.php)’;

$data = array(‘key1’ =\> ‘value1’, ‘key2’ =\> ‘value2’);

// use key ‘http’ even if you send the request to https://…  
$options = array(  
‘http’ =\> array(  
‘header’ =\> “Content-type: application/x-www-form-urlencoded\r\n”,  
‘method’ =\> ‘POST’,  
‘content’ =\> http\_build\_query($data)  
),  
“ssl”=\>array(  
“verify\_peer”=\>false,  
“verify\_peer\_name”=\>false  
)  
);  
$context = stream\_context\_create($options);  
$result = file\_get\_contents($url, false, $context);

var\_dump($result);  
?\>

I modified my endpoint script for the webhook to echo “OK!”, it also writes the result of print\_r($\_POST) into a log file.

Running the test script above the var\_dump($result) prints ’ string(3) “OK!”’ so its getting that response. The print\_r($\_POST) in my enpoint script is correctly showing:-

Array  
(  
[key1] =\> value1  
[key2] =\> value2  
)

so the POST request is working just fine.

---

<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:** [July 23, 2021, 11:12am UTC](https://community.hubspot.com/t/webhook-timeout-occurred-but-will-retry-soon/41078/7 "2021-07-23T11:12:16Z")

</div>

Hi @NFortin , I tried sending a POST request to your URL ([https://test.yourdolphin.com/unsubscribe/fromhs.php](https://test.yourdolphin.com/unsubscribe/fromhs.php)) through Postman and I think I have found the issue.

 ![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/6/b/6b4fa624219951c6431f70102796f0ac9e38407e.png)  
When I disable the SSL verification, I do get a response. So I guess the HubSpot webhook is not passing because of the SSL issue.
