# Webhook timeout

**URL:** <https://community.hubspot.com/t/webhook-timeout/11849>\
**Category:** APIs & Integrations\
**Created:** [May 16, 2017, 3:22pm UTC](https://community.hubspot.com/t/webhook-timeout/11849 "2017-05-16T15:22:41Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [May 16, 2017, 3:22pm UTC](https://community.hubspot.com/t/webhook-timeout/11849/1 "2017-05-16T15:22:41Z")

</div>

How can i increase webhook timeout to more than 1 second or how can i prevent it from trying again after a timeout?

---

<div class="post-metadata">

**Author:** ![Dadams](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dadams/32/21752_2.png) [@Dadams](https://community.hubspot.com/u/Dadams)\
**Post date:** [May 16, 2017, 3:59pm UTC](https://community.hubspot.com/t/webhook-timeout/11849/2 "2017-05-16T15:59:56Z")

</div>

Hi [@Constantine\_Bulichov](https://community.hubspot.com/u/constantine_bulichov)

There isn’t a setting for the timeout, so there won’t be a way to increase that limit, and we’ll automatically retry in the case of a timeout (the only case we won’t retry is when we **did** get a response but with a status code of 400, 401, 403, 404, or 405).

Can you provide more details for why you might be running into that timeout? In general, if your process takes more than a second, we’d recommend accepting the data from the webhook request, and then placing that data into a queue that could be processed asynchronously from the webhooks.

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [May 17, 2017, 6:52am UTC](https://community.hubspot.com/t/webhook-timeout/11849/3 "2017-05-17T06:52:46Z")

</div>

When a contact is created in HubSpot i get a webhook request to a web API with the contact id, then i retrieve that contact from HubSpot API and then i create that record in CRM. Apparently this process takes more than 1 second.  
Basically I need to create a record in CRM each time a Contact is created in HubSpot. I would be happy if there is a better solution. Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [July 19, 2017, 12:51pm UTC](https://community.hubspot.com/t/webhook-timeout/11849/4 "2017-07-19T12:51:13Z")

</div>

It’s true that 1 sec webhook timeout is too less to determine whether the request was a success or not. In my case I am triggering a AWS lambda function which sends a SMS on dealstage change event. But here instead of sending one SMS per one dealstage change it is sending multiple SMSs because the webhook fails to get response code 200 within it’s 1 sec timeout and retries again and again until it gets success code 200 hence sending the same SMS multiple times.  
Either the timeout time should increase or it should be up to the developer to set max number of retries.  
PS - I am doing a few API calls with my AWS lambda function which takes some time to complete.

---

<div class="post-metadata">

**Author:** ![chrispower](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/chrispower/32/13521_2.png) [@chrispower](https://community.hubspot.com/u/chrispower)\
**Post date:** [December 18, 2019, 7:19am UTC](https://community.hubspot.com/t/webhook-timeout/11849/5 "2019-12-18T07:19:21Z")

</div>

I’ve just run into almost exactly the same problem. 2 years later and still no configureable timeout.

Our solution is to implement an SQS queue and have the webhook put the payload in the queue, and trigger the lambda function from there.

Although if your hubspot workflow has subsequent steps which require successful execution of the SMS step, this won’t work.

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [August 4, 2017, 9:35am UTC](https://community.hubspot.com/t/webhook-timeout/11849/6 "2017-08-04T09:35:08Z")

</div>

1 second is poor. We receive WebHook on our script. We check other companies exist in our other CRM. Then we go back to HubSpot via the API to pull all contacts. Then we allow HubSpot to push the code over. One second is absolutely poor. INCREASE ASAP PLEASE!!!

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [August 23, 2017, 12:46pm UTC](https://community.hubspot.com/t/webhook-timeout/11849/7 "2017-08-23T12:46:08Z")

</div>

Hello! We’re also having issue with small timeouts. Is there any estimation when this interval can be increased/configured?

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [September 11, 2017, 9:28am UTC](https://community.hubspot.com/t/webhook-timeout/11849/8 "2017-09-11T09:28:43Z")

</div>

Hi guys,  
I’ve managed to fix this issue by making sure the processing of the webhook was queued and made asynchronously.  
I have a highly available simple API endpoint for my integration that does nothing else but queueing the webhooks processing tasks.  
From there, my main application is polling the queue and it can take any time to write the data into the database and won’t fail anything on Hubspot side.  
Best,  
\_\_  
Lionel  
hi [at] getlionel [dot] com

---

<div class="post-metadata">

**Author:** ![nickgoloborodko](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/nickgoloborodko/32/43030_2.png) [@nickgoloborodko](https://community.hubspot.com/u/nickgoloborodko)\
**Post date:** [December 6, 2017, 1:18am UTC](https://community.hubspot.com/t/webhook-timeout/11849/9 "2017-12-06T01:18:42Z")

</div>

It is completly crazy to have a 1 second timeout. yes it is good practice not to do any heavy processing for the duration of request, and do it asyncronously through a queue instead. I am having issues where ocasionally my code would be unloaded from the servers memory if the applciation has not been accessed for a period of time. The laoding process on the first request takes over a second, So for the first request after a period of time I have multiple duplicate hubspot messages arriving (because server caches the requests while it loads the applciation)

Please increase the timeout value, or, even better - make it user configurable.

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [January 6, 2018, 5:42pm UTC](https://community.hubspot.com/t/webhook-timeout/11849/10 "2018-01-06T17:42:50Z")

</div>

Agreed. This timeout is extremely restrictive and limiting. Please revise.

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [June 13, 2018, 2:42pm UTC](https://community.hubspot.com/t/webhook-timeout/11849/11 "2018-06-13T14:42:32Z")

</div>

This is a true issue when using serverless functions. Cold starts will always induce a timeout.

Are there any considerations for increasing the timeout threshold?

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [August 8, 2018, 8:38pm UTC](https://community.hubspot.com/t/webhook-timeout/11849/12 "2018-08-08T20:38:41Z")

</div>

I agree that 1 second timeouts are bad. Even when you offload all the processing to another thread you will still have a timeout if your function (google cloud functions / aws lambda) has a cold start.

---

<div class="post-metadata">

**Author:** ![clintonskakun](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/clintonskakun/32/3971_2.png) [@clintonskakun](https://community.hubspot.com/u/clintonskakun)\
**Post date:** [October 11, 2018, 4:56pm UTC](https://community.hubspot.com/t/webhook-timeout/11849/13 "2018-10-11T16:56:41Z")

</div>

Wait! There’s a 1 second timeout? I thought it was 2 seconds.

1 second is pretty low. Honestly, I don’t understand half the failures. Does backlog timeout mean that there are too many events and the concurrent limit is too low, or does it mean it hit our API but timed out?

There are way too many restrictions and too little documentation about this. Things need to be a bit looser.

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [October 19, 2018, 6:57pm UTC](https://community.hubspot.com/t/webhook-timeout/11849/14 "2018-10-19T18:57:03Z")

</div>

@dedupely, you are correct that the timeout is currently _2 seconds_ and is documented at the bottom of [this page](https://developers.hubspot.com/docs/methods/webhooks/webhooks-overview).

---

<div class="post-metadata">

**Author:** ![fregini](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/fregini/32/96470_2.png) [@fregini](https://community.hubspot.com/u/fregini)\
**Post date:** [July 15, 2020, 9:23pm UTC](https://community.hubspot.com/t/webhook-timeout/11849/15 "2020-07-15T21:23:43Z")

</div>

This is quite old but I’m struggling to find the timeout for the webhooks that can be configured in workflows.

> **[Accounts Dashboard | HubSpot](https://app.hubspot.com/myaccounts?next=developerdocs&redirect=%2Fapi-reference%2Fwebhooks-webhooks-v3%2Fguide)**

This URL is about APP webhooks instead.

So what’s the timeout for webhooks calls from inside workflows?

---

<div class="post-metadata">

**Author:** ![clintonskakun](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/clintonskakun/32/3971_2.png) [@clintonskakun](https://community.hubspot.com/u/clintonskakun)\
**Post date:** [October 19, 2018, 7:07pm UTC](https://community.hubspot.com/t/webhook-timeout/11849/16 "2018-10-19T19:07:44Z")

</div>

Thanks for the reply. I was thinking it was 2 seconds but I saw a lot of people talking about 1 second timeouts.
