API Error Handling in Backend Workflow

I have a backend workflow with 3 actions:

  1. Make an API call
  2. Make another API call, but use the result of Step 1 in one of the fields
  3. Make changes to a thing (which updates a field’s value with the Result of Step 2)

Normally, this would run in sequence. And if Step 2 takes too long and times out, then Step 3 won’t run at all.

But when I check the “Include errors in response and allow workflow actions to continue” box in the API Connector and I run the backend API Workflow again, I noticed that it doesn’t wait for one action to complete before running the next one. All 3 actions run almost at the same time, so I’m unable to do any error handling.

Am I missing something here?

If this is really true, 2 will not run before 1 is complete. Can you share screenshots of each action? What makes you think that they don’t run in sequence?

Because when I checked my logs, they all ran in the same second. And the value of “Result of Step 1” and “Result of Step 2” were both empty. Unlike before checking the “Include errors in response and allow workflow actions to continue”, when those values were visible in the logs.

Well that’s plausible, if it took less than a second to find out the result of step 1. If the API call returned an error, then result of step 1 is most likely empty. Share screenshots of your actions.

https://manual.bubble.io/help-guides/logic/workflows/actions

Reading through this might help understand the order of events.