Firstly. Wow! What a great tool. As a designer primarily, and coming from Figma, Sketch etc… the UI is a dream to work in. From a designer perspective I’ve yet to find a feature missing. Really impressed!
Ok. My issue
Have set up a User Table in Xano, setup authentication endpoints per their docs and your tuts.
Setup the endpoint refs in WeWeb, and dropped in the Xano login but just get errors when I go to test the workflow
What’s confusing to me is also the Formulas? Of course I can choose Email from the Data choices, but Password will not be an option for obvious reasons.
Yeah this is the error I get when I ‘Test Action’ on the Xano Login Action…
name: "Error"
stack: "Error: Request failed with status code 400 at e.exports (https://editor-cdn.weweb.io/public/js/chunk-vendors.01684801.js:64:1241) at e.exports (https://editor-cdn.weweb.io/public/js/chunk-vendors.01684801.js:97:3898) at XMLHttpRequest.f.onreadystatechange (https://editor-cdn.weweb.io/public/js/chunk-vendors.01684801.js:257:2255) at XMLHttpRequest. (https://browser.sentry-cdn.com/5.12.1/bundle.min.js:2:15638) at XMLHttpRequest.sentryWrapped (https://browser.sentry-cdn.com/5.12.1/bundle.min.js:2:44863)"
message: "Request failed with status code 400"
isAxiosError: true
toJSON: function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}}
config
Object
request
Object
response
Object
Here you go. Getting your formulas set up is step 1. Do the photo below and then we can see if anything else needs attention.
That plug icon is what you use to give WeWeb different pieces of data in different areas. For instance, if you want to dynamically set a bg color based on the time of day, you could do this by clicking the plug next to the bg color parameter for whichever element you want.
Then, use a formula in there that tells the system what color, based on what time of day.
This is also how you use dynamic content, and set other design elements based on data from the backend.
For your scenario, you need to get the Email and Password into that workflow. The plug is how you do it.
Sorry, the picture above shows email instead of password for the formula. But, you need to do it for both of them, in the respective fields. Email to email, and password to password.
You can copy/paste the link of your WeWeb project here in this conversation (others won’t be able to access it) or you can click on my picture to send me a private message:
Is there a way to show the error message received from xano on the front end?
I can see that the message can be accessed in the default workflow but I’m not able to access the message in the error workflow.
You might want to skip ahead to 4:03 but thought I’d share the whole academy video in case you find it more helpful with the whole context.
To access the message in the error workflow, you would need to trigger the error by testing the workflow when you’re on the “Default” branch (like we show in the video). Then, you’ll be able to access the Current error object and pick the information you want to display:
Hi everybody,
I have the same problem, I followed all the videos and all the topics on this subject, and I still get this error. @Joyce : I also followed your advice.
I tried with Xano-auth and also Token-based-auth and I systematically have: “missing param: field_value”
I believe you have to run it in preview, as when I run in edit mode I get the same error but once I switch to preview enter in the information and submit goes through just fine and updates my table