How to display error message when API call failed?

Hi,

I was wondering how to deal with API error:

At times, an API call encounters an error, causing my workflow to halt. Unfortunately, this prevents me from extracting the error message to display it to the user or to understand what went wrong. How can I ensure that the error message is displayed even if the workflow stops?

You can use the “on error” branch of your workflow, once the xano api request fail it will execute the on error branch

1 Like

Hi thanks @Alexis ,

But what does it mean exactly?

I have set up a condition after the API called based on an error and yet it doesn’t trigger it.

What am I doing wrong?

The workflow will continue on the “On error” tab

1 Like

thank you all good!

1 Like