How can we enable retry in helpers.httpRequest(options). I didn't find any options to enable retry in case of failure before throwing error

Referred doc - HTTP request helpers | n8n Docs

Since HTTPS request node provides an options to retry in case of failure, I’m hoping we might have some workaround with helper module as well.

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hey @Ankit_Kumar_Giri , the node has an additional tab “Settings” where retries could be configured in UI. I suspect that is what you are after unless you are building your on node.

@ihortom I’m using http helper function in code node to do request. Something like this

await this.helpers.httpRequest({
                                          method: 'PUT',
                                          url: url,
                                          body: body,
                                          qs: params,
                                          returnFullResponse: true
                                     });

I want to enable retry in case my request fails.

Is there any options we can enable this ?

Unless you self-host n8n. If you are on the n8n Cloud you cannot do that, only via UI.

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