Skip to main content
← Data, API & Backend
Data, API & Backend July 21, 2022 · 12 replies

401 Error when connecting Xano API

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

The authenticated API when run on Xano is working fine and returns the expected value. However, when we attempt importing the API into the data collection library and fill in all necessary inputs for the API connection to run, we are receiving ERROR_CODE_UNAUTHORIZED and Unsupported input. Basically, we are not receiving any of the data from the Xano API and don't understand why. 

Please see the bravo studio collections and Xano API screenshots: 

Screenshot 2022-07-21 at 13.10.24.png

Screenshot 2022-07-21 at 13.10.41.png

Screenshot 2022-07-21 at 13.11.07.png

Image 2022-07-21 at 13.11.jpg

Image 2022-07-21 at 13.11 2.jpg

12 replies

Nour July 21, 2022

make sure u are using bearer authentication, then replace accessToken with _authorization

Andreas July 21, 2022

for each testing, a new authentication must be added. 😕

Nchila July 21, 2022

completed this, now we are receiving Unable to locate var: model.reward_amount and a 500 - Internal Server Error, any suggestions to fix this here?

jeblister July 21, 2022

Hey, make sure you setup the collection settings as so :

image.png

Afi August 12, 2022

Hi Nchila Mokoena , 
I'm currently having the same issue that you had. Would you mind sharing how you fix the problem? 

Thanks!

Anthony June 27, 2023

nothing more frustrating than a forum post that just ends with Problem Solved!  Mind sharing the answer?

Nour June 27, 2023

Problem is not solved yet and I did not receive a single reply from bravo tesm since then. Regards, Nour

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