Error configuring API OAuth2 Custom Token

Hello everybody. I get this error

when I initialize a call with this configuration


Any suggestions what am I doing wrong?
Thanks!

Do you have link to doc?
The first thing is that actually your are sending a json but content type is set to urlform encoded. Try to change auth body for grant_type=client_credentials&scope=read
If this doesn’t work, remove the body and set this into the url but add a ? Before like url.com?key=value

1 Like

Thanks for the clues! I I have chosen to run curl in the windows terminal

Curl -X POST https://api.idealista.com/oauth/token -H “Content-Type: application/x-www-form-urlencoded” -H “Authorization: Basic xxxxxxxxxxxxxx” -d “grant_type=client_credentials”

to get the BEARER Token and I ran in Bubble as follows

I think I’ve made it, it’s given me this

But when I press ‘save’ the fields are not shown in the database. That’s right?

There’s nothing save in DB. Data always remain on the API server until you choose to create items in your own DB from external API

1 Like

Ok. Thanks for the insights, much appreciated!

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.