# DNS retry on HTTP Request node

**URL:** <https://discourse.nodered.org/t/dns-retry-on-http-request-node/73967>\
**Category:** General\
**Tags:** http-request\
**Created:** [20 January 2023 13:39 UTC](https://discourse.nodered.org/t/dns-retry-on-http-request-node/73967 "2023-01-20T13:39:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rasmus](https://avatars.discourse-cdn.com/v4/letter/r/7993a0/32.png) [@rasmus](https://discourse.nodered.org/u/rasmus)\
**Post date:** [20 January 2023 13:39 UTC](https://discourse.nodered.org/t/dns-retry-on-http-request-node/73967/1 "2023-01-20T13:39:36Z")

</div>

Now and then I get intemittent DNS errors resulting in the node throwing an error. Because this is intermittend I have build my own retry flow using catch node etc.

This seems a bit bulky for a simple retry functionality on a http request. This also becomes a problem as I need to do this for each HTTP request node.

Is there no way to do retry in the HTTP request node? Could this otherwise be an improvment to implement?

---

<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:** [20 January 2023 13:47 UTC](https://discourse.nodered.org/t/dns-retry-on-http-request-node/73967/2 "2023-01-20T13:47:16Z")

</div>

You could simply put the request with its retry loop in a sub-flow. Then just always pass in the required data and you can reuse the flow anywhere. You could, of course, do the same with a flow triggered from a link-call node.

---

<div class="post-metadata">

**Author:** ![rasmus](https://avatars.discourse-cdn.com/v4/letter/r/7993a0/32.png) [@rasmus](https://discourse.nodered.org/u/rasmus)\
**Post date:** [20 January 2023 17:42 UTC](https://discourse.nodered.org/t/dns-retry-on-http-request-node/73967/3 "2023-01-20T17:42:38Z")

</div>

Yes I tried that, but as I understand there are a few things that can only be configured in the node properties and can't be abstracted in a subfloe. Like proxy settings TLS config and return type.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [21 March 2023 17:42 UTC](https://discourse.nodered.org/t/dns-retry-on-http-request-node/73967/4 "2023-03-21T17:42:52Z")

</div>

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