Hello @nicolas.bousson
please edit your post, and add @eve.
Okay Iām not alone in this
Hope in 2021, backend workflow will handle errors such as external API
While itās not in the spirit of no-code, Iāve worked around this issue building the API into Lambda and then providing a success param in the response. This bypasses the API Connector plugin which is a shame but at least you can then handle the error. Well youāre still using the API connector but usint it to connect to the Lambda through API Gateway.
Sounds like a viable solution. Since a lot of us here are no-coders (myself included), would you be able to write a step-by-step tutorial on how to handle the API errors via API Connector-AWS API Gateway-AWS Lambda, if timer permits? I would be eternally grateful.
Hi, Iād be happy to help, I just need to find some time for it but Iāll do my best to get round to it.
@emmanuel - can we have an update on this? In fact, now that youāve revised the payment plans to something more commercial, perhaps you could publish an actual roadmap so we can see what is being prioritized in the months ahead, and ideally vote on features?
Another idea would be to enable your feature sponsor program to be crowdsourced - i.e. anyone interested can pay a nominal sum, e.g. Ā£20, and once the cost price is reached itās implemented straight away. If interest isnāt high enough, in given timescales, the money is refunded or credited to usersā accounts. You could make the sponsored feature exclusively available to those who have funded it, for a period, to incentivize participation.
I have tested the method given by Shaun.
Using the āAn element has an error running a workflowā option on the button that triggers the api helped me trap the JSON error (occurring on the api call) and hence giving a cleaner message to the user.
Thank you so much @shaun !
I really need this feature. I need to charge a list of user invoices and the process stalls if an error occurs while the API Workflow is running to charge each user.
This is good news but doesnāt go all the way for lots of the use cases on this thread.
Backend Workflows (formerly API Workflows) fail silently and with no out-the-box means of detection / error handling. This is still the case today and I donāt think that @nicolas_dap 's solution has been bettered, other than just rebuilding your backend ops away from Bubble.
Please, please Bubble - until thereās a way of natively handling things going wrong on the backend we all present a reliability risk to our customers.
And if anyone has any other workarounds it would be great to hear them.
Iām running into this issue as well. I have a backend workflow and when it fails, it fails silently and I cannot take any actions.
Any update on how to do capture an error in a backend workflow thatās not specifically related to an external API call?
Hi ā¦ Any update on how to do capture an error in a backend workflows???
Hi! Any updates on this?
Bubble is pretty great, but this is a big miss. Itās sort of puzzling to me that it isnāt viewed as absolutely critical for anyone working with backend workflows and api workflows. The built in logs are barely adequate, and I (like many in this thread) have added a log table to help understand whatās happening behind the scenes.
My two biggest asks for Bubble are
1: better ability to manipulate data/more complex calculations
2: better logging and error handling in workflows
As is always the case, you donāt learn all the details until you start digging, but while I feel fairly committed for now, I would definitely not have selected bubble for our app if I understood how poor error catching and handling are on the back end.
I realize this comment is almost a year old, but I think the best way to handle something like this would be to have some additional bookkeeping where you mark something as ādoneā in the last step of the workflow, and have another workflow looking for things you expect to be done that arenāt, and then take appropriate action (notify you, the user, reschedule the API workflow, etc).
Good luck!
Hi @emmanuel,
This is 2023 and backend workflow error handling is still a big thing to enable Bubble complete powers.
Is there a way that could be part of a roadmap?
Bumping this again. Especially for scheduled/auto-charge payment processing this is a nightmare. Iāve tried the āInclude errors in response and allow workflow actions to continueā but then I have no idea what the result of the payment attempt was.
For whoever comes next - I think Iām going to anticipate the API call to fail and cancel the error if it doesnāt. More specifically - right before I attempt the payment, Iāll schedule another workflow that sends the error message for 1 min in the future, and then immediately cancel it if the payment does go through