Recommended method to retry HTTP request on a schedule when initial response is empty?

hey Make Maestros :wave:

I’m a bit rusty as it’s been about half a year since I’ve built a scenario out in Make, and I’m currently creating a custom solution that will be structured like so:

inbound postback(webhook) → datastore → data fetch(http req) → http response has data?(router) → TRUE:postback(http req) ELSE retry data fetch(http req)

Screenshot


Question: Is there a best practice/efficient way for retrying the HTTP request every 30 mins?

NB — I’m not seeking for an exact rundown of the solution, just some tips guardrails I can work within :slight_smile:

Also, I looked around here and the docs but have yet to get clarity regarding pulling data from a datastore.

Question: Is it required to use the ‘Get a record’ to be able to map data store record values to HTTP request fields within a execution cycle, or are there other methods that are available to do so?
(e.g. different data structure, get / map, other methods?)
The only field that’s currently available for mapping from the datastore is the record key

TIA for any guidance! :v:
Adrian

Use a combination of the HTTP module Advanced Setting and Error Handler.

Like this.

More about error handler

​I would recommend you use an error handler (prefer Break) to automatically handle errors, reattempt run and store the incomplete execution for your manual fix. Just right-click on the module and select add an error handler (then select break).

Learn more about error handlers here: https://www.make.com/en/help/errors

Learn about the break: https://www.make.com/en/help/errors/retry#using-the-break-directive

Watch this video to see how to implement Break in your scenario: Loom | Free Screen & Video Recording Software | Loom

2 Likes

Amazing, thanks @Growwstacks.com !

As a bit of a make noob, it never crossed my mind that this would be the method for tackling this use case, and therein what to search for :sweat_smile:

I’ll try this out later today, thanks again! :raised_hands:

@Growwstacks.com
It was a bit more nuanced for using the error handler, as the empty response also returned a status 200.

Your cues did lead me down the right path :slightly_smiling_face:

I ended up going with the solution in this Make article to throw an error when the response data is empty.

TLDR — Second scenario with the actual API endpoint (http request), routing, and custom webhook responses.

Then, this webhook URL of the second scenario is used as the request URL in the first scenario’s HTTP module with the error handler.

Thanks again for pointing me in the right direction! :v:

Heya @aidy great to hear that you managed to figure this out with the pointers from @Growwstacks.com :clap:

Thanks a lot for stepping back here and sharing your solution with the community so that folks can learn from your progress :pray: