cancel
Showing results for 
Search instead for 
Did you mean: 

error when consuming external services through cap project

harbymina041
Discoverer
0 Kudos

greetings experts,

I am currently developing a CAP project where I am consuming several external APIs from the SAP API Business Hub. I have made all the relevant configurations, added the API key in a .env file, and when testing this on my local machine it works fine. However, when I deploy on Cloud Foundry and access these through the service URL, it returns a 401 error. It's worth noting that I also added the API key as User-Provided Variables. I really don't know what configuration I am missing since I have looked at the documentation and everything seems to be the same."

View Entire Topic
apoorv_bhargava2
Employee
Employee

Are destinations maintained. Destination setting includes Url , credentials etc. Destinations can be maintained on cockpit.