Skip to main content
← Data, API & Backend
Data, API & Backend October 12, 2022 · 6 replies

Error 422

Archived from the Bravo community forum (2021–2026). Some answers may refer to older versions of Bravo.

So I think I figured out where the error is occurring but don't know how to fix it... I am using Xano for my backend btw.

Enabled custom login then Selected GET request ✔️
POST request gives authtoken renamed selected data as accessToken ✔️
Email and Password binding and form response action as "Set Access Token" ${accessToken} ✔️
Bravo tags in Figma ✔️

I think the 422 is because it doesn't know which user_id to retrieve on the GET request for the user_id I have to put a value in for it in order to return the data. I am not sure if this is actually the problem or how to troubleshoot more in order to solve it. Thanks in advance!

log1.PNG

log3.PNG

log4.PNG

log5.PNG

log2.PNG

6 replies

Daniel October 26, 2022

Yes, I fixed it by using the pre-made endpoint in Xano called "/auth/me".

Casey October 27, 2022

Thanks Daniel, 

I went back through the tut again, (so many times now)  and figured out what I was screwing up.

 I'm going to post this here if someone else does what I was doing.

Preface:
I typically change my user id to   user_id   and then, for consistency, I make it the same throughout my site.

For the xano auth/me,  the results must have the id as id,  not user_id or anything else. 

Be sure to check you have all greens here.   I used to and must have changed my result variable at some point while I was trying to make my variables consistent.  

image.png

Wrote something in this thread and want it removed? Request removal

Still stuck?

Ask the community on Discord

This archive is read-only. New questions, office hours and product updates now happen in the Bravo Discord.

Join the Discord