Try/catch API error

Hello dear Wappler superstars !

I’d like to display a clean error when my stripe charges fail.

I’ve enclosed my server connect action with a try/catch block but can’t get to trigger the catch clause.

Tried with and without checking the “pass errors” checkbox.
Either I get the general “catch” with “pass errors” checked.
Or a 200 response without it but in the detailed log (lower right of the second screenshot), we can see that Stripe indeed answered with a 402 itself.

Any ideas ? :slight_smile:

Thank you very much for your help !

Community Page
Last updated: