We have a make scenario that runs continously in infinite loop and does not stop until we force stop or disable the scenario. How to debug to stop it?

Welcome to the Make community!

This is a very common mistake that users make, as the mistake is not immediately apparent via the scenario editor.

An example of this is a scenario updates a record, which triggers an update event, and the external service calls the webhook from the update event.

To avoid endless iterations, especially with webhooks, ensure that your webhook is not being called on an action that one of the modules in your scenario perform. Otherwise, it basically re-triggers itself after it has completed.

To avoid this, you can either:

  • Ensure that the scenario does not modify the same resource that the webhook is triggered upon, and/or,
  • Find a way to “break the loop”, if it is possible to identify between a manual update or an update by the API, so that you can create a filter for it.

Have you seen these previous discussions?

Your question may already have answers here:

You can search this forum for existing answers and the documentation in the Help Centre to get to a solution faster.

Still require assistance?

If the previous/related discussions are not similar to your question, please reply providing additional details to demonstrate the difference(s) between your question and the ones above.

If you require help understanding or implementing workarounds/solutions in the related discussions, please reply with more details of what you have tried, including screenshots.


I’d also recommend going through the Make Academy if you haven’t yet!

You can learn more about Webhooks in these Make Academy units:

Webhooks

  • What are webhooks?
  • Webhook concepts - URL query string
  • Defining and redefining webhook data structure
  • Webhook scheduling and webhook queue

Advanced Webhooks

  • Processing data with webhooks
  • Webhooks, rollback and error handling
  • Protecting webhooks - part 1 - theory
  • Protecting webhooks - part 2 - practice
  • Webhook response

@samliew
P.S.: investing some effort into the tutorials in the Make Academy will save you lots of time and frustration using Make!