Error handling with xano's JS SDK

Options

Hi,

I have implemented the JS SDK in Webflow. I am successfully calling a post api in xano, as described in this video:

However, when testing the error cases, to manage the error handling I'm not able to catch the error. A simple case I'm doing is sending the api call with missing mandatory fields. Xano is giving me a 400 error but I cannot capture it to present in webflow the appropriate error message to the customer. If someone can help identify what I'm missing I would appreciate it. Details below:

Code that handles the click of the button in the form.

This is the error I get in the console when I exclude a mandatory field from xano api.

Regards

Tagged:

Comments