# How to increase the timeout of http response and http in nodes in nodered

**URL:** <https://discourse.nodered.org/t/how-to-increase-the-timeout-of-http-response-and-http-in-nodes-in-nodered/18561>\
**Category:** General\
**Created:** [28 November 2019 16:15 UTC](https://discourse.nodered.org/t/how-to-increase-the-timeout-of-http-response-and-http-in-nodes-in-nodered/18561 "2019-11-28T16:15:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arun](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Arun](https://discourse.nodered.org/u/Arun)\
**Post date:** [28 November 2019 16:15 UTC](https://discourse.nodered.org/t/how-to-increase-the-timeout-of-http-response-and-http-in-nodes-in-nodered/18561/1 "2019-11-28T16:15:34Z")

</div>

I am experiencing an issue where the http response node is not sending a response if the request goes beyond 2 minutes. For http request node we can increase this timeout by editing the settings.js file. Similarly, how can we increase the time out for http in /http response nodes. Any leads here will be appreciated.

Regards,  
Arun

---

<div class="post-metadata">

**Author:** ![afelix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/afelix/32/9743_2.png) [@afelix](https://discourse.nodered.org/u/afelix)\
**Post date:** [29 November 2019 14:30 UTC](https://discourse.nodered.org/t/how-to-increase-the-timeout-of-http-response-and-http-in-nodes-in-nodered/18561/2 "2019-11-29T14:30:42Z")

</div>

Just for verification, the two minutes is a bit of a magical border. Have you checked if the client connecting to the http-in/response flow is not dropping the connection? Two minutes is a common default setting for a lot of clients, hence the question. Furthermore, are you seeing somewhere in the node-red log that the connection to the client gets dropped? You can recognise it as an `ETIMEDOUT` error showing up in the log during the attempted connecting.

---

<div class="post-metadata">

**Author:** ![Arun](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Arun](https://discourse.nodered.org/u/Arun)\
**Post date:** [2 December 2019 17:18 UTC](https://discourse.nodered.org/t/how-to-increase-the-timeout-of-http-response-and-http-in-nodes-in-nodered/18561/3 "2019-12-02T17:18:39Z")

</div>

Thanks for your response. I ensured that the client is not dropping the connection. I also confirmed it by placing a delay node between the http in and response node. If the delay is greater than 2 minutes it fails. I grepped my logs for ETIMEDOUT but couldn't find any.

Regards,  
Arun

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [4 December 2019 13:37 UTC](https://discourse.nodered.org/t/how-to-increase-the-timeout-of-http-response-and-http-in-nodes-in-nodered/18561/4 "2019-12-04T13:37:25Z")

</div>

That is a VERY long response time for a web request. Perhaps it would be better to explain why you need such a long response time?

At a guess, I'd say you'd be better off with a streamed response (which I don't think that Node-RED has available natively?) or by using websockets so that you can keep the connection live for however long you might want.

---

<div class="post-metadata">

**Author:** ![Arun](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Arun](https://discourse.nodered.org/u/Arun)\
**Post date:** [10 January 2020 12:37 UTC](https://discourse.nodered.org/t/how-to-increase-the-timeout-of-http-response-and-http-in-nodes-in-nodered/18561/5 "2020-01-10T12:37:47Z")

</div>

Sorry for the delay. I was on holidays. I am calling a machine learning model using node red and at times for model creation it may take time. HTTP request node in node red already supports this but I don't see this for in/response nodes.

Regards,  
Arun

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [10 January 2020 17:34 UTC](https://discourse.nodered.org/t/how-to-increase-the-timeout-of-http-response-and-http-in-nodes-in-nodered/18561/6 "2020-01-10T17:34:40Z")

</div>

Really then, the model run process should issue something when it completes, it isn't realistic to keep an HTTP connection open for an indefinite amount of time, that's not really how they work I don't think.
