Error 429 - Tradingview to Discord Alerts

Hi!

I created a flow to send Tradingview alerts to Discord.
However, in some cases, the alert is being sent many times in a short time and with that, I receive the 429 discord error.

Is there any way for when I receive this error, the message is stored in the flow and tries to send it after X seconds?

Thanks!

Hi @hgrams

There are multiple ways to handle 429 rate limiting errors in Pipedream workflows.

Without code

You can leverage the workflow concurrency and throttling settings to make sure your workflow does not run faster than the 3rd party’s API rate limit.

For instance, if you’re integrating with Google Sheets, they have a maximum of 60 API calls per minute.

You can adjust your workflow’s throttling to 59 events per minute to make sure you abide by their speed restrictions.

With code

You can use the $.flow.rerun helper in Node.js code steps to retry failed HTTP requests. This helps you retry failed or rate limited API requests.

Tutorial on how to use this here: Rerunning a code step - YouTube

1 Like

Very good. Thanks!

1 Like