Custom app as flexible error handler

Idea:

  • Create a flexible error handler that can be called to do stuff based on the inputs it receives
    ** Advantages: all the error handling is done in a unique point containing all the business decissions, making mainteinance very easy (change 1 point and affects all error handling in all scenarios).

Step 1

  • Create a scenario activated by a webhook.
  • Once called reads input JSON, do some stuff (based on the JSON received) and, optionally return a response JSON
    ** Disadvantages: calling the scenario error handler requires create a HTTP module in the calling scenario and write there the JSON

Step 2

  • Create a custom app that does the job of calling the error handler scenario, offering a comfortable way to construct the JSON to be sent by the call (with fields specially designed for that).
    ** Advantages: Availability of a custom module, easy to create.

Question: Does anyone has a custom app that calls to the webhook from other scenario wihout auhtentication (it´s not needed for it to work)?

Hiya @Ramon_E;

I wonder whether something similar to how I send error notices to chat streams might apply.

I have a single scenario where I need to do some lookups and create an error message.

Then other scenarios call the first via a single module that has scenario inputs so building that JSON structure mentioned isn’t required. As a benefit is using Make’s internal variables so I only have to update the error details.

I could increase the scenario inputs to be one each for the error components than that if statement to merge details.

Hi.
Of course a scenario with inputs was the first thing on what I thought. And it´s the most simple & efficient approach.
BUT I’m not on a PRO subscription, so I can’t use that method.
Thanks in any case.

1 Like

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