If API response is an ERROR, how can I save that error to my database
Options
KenJ
Member ✭
Hi, I am looking to capture any ERROR responses from my API points, but find the function stack abruply stops when the ERROR occurs and responds to the front end.
I expect my front end to also deal with the error in some way but I am looking for ways my Xano backend can also save this ERROR to my error log table.
I tried POST PROCESS function but that doesnt seem to run either at that point. Is there any solution or do I just rely on the frontend to deal with it?
Looking forward to any suggestions
Tagged:
Answers
-
@KenJ I suggest you use the Try/Catch function.
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback