How to bring an error handler to restart a certain sequence, not only the last action

I am trying to work around a 429 within this workflow. The api i am calling allows a certain number of calls within an hour. After that i have to wait for another hour. My thinking: Let’s do a break module that retries after 60 minutes.

My issue is now, the error does not directly appear with my api call but rather with the json parser afterwards that can’t parse since the result is no correct json (given that the 429 appeared).

But i also can’t call the error directly at the HTTP Request module, since the result is not regarded as an error - it is a successful call, just one that returns 429.

However - what would be best practice here? Can i define in a way that the whole sequence is restarted after 60 minutes? Is there a better way to handle it?

I now added a handler to the Module 143, looking for the StatusCode 429, issue is that the road to my break module is not taken, since it seems to be make.com only goes there if an actual error would appear with the json… how to handle this?

Hi @fruits,

In the advanced settings of any HTTP module, you will find this setting:

It will evaluate 4xx errors from the external service as an error, for which you can then add a error handler.

Cheers,
Henk

2 Likes

HolyMoly, this applies to the category of “i would’ve never imagined it would be that easy”.

Thank you so much.

Sometimes it is just that easy, I am happy this helps you! :slight_smile:

You can mark this topic as resolved, so it can be closed:

Cheers,
Henk