cancel
Showing results for 
Search instead for 
Did you mean: 

REST API not working in BTP Destination

aniketnpatil
Advisor
Advisor
0 Kudos

Hello,

I have created a REST API to access data from a MS SQL database.

The API works in Postman, however when I add it as a destination in BTP, I get "An error of type UnknownHost occurred during check connection!".

Any advice is highly appreciated.

Thank you.

mfrommherz
Explorer
0 Kudos

I am no expert, just guessing, you use postman locally.

Try with IP address in Destination creation, not name. No luck?

To dig into it, and be 100% sure, I would use terminal in SAP BTP. use ping + IP of server, to check if SAP BTP can see your server, if your destination host is reachable from BTP. I would check with IP address.

If it isn't, for example, maybe your company does not allow to expose the endpoint, sap cloud connector is the solution to expose endpoints to SAP BTP. It is possible to run sapcc inside docker locally on your machine.

Accepted Solutions (0)

Answers (1)

Answers (1)

yogananda
Product and Topic Expert
Product and Topic Expert
0 Kudos

aniket.narendra.patil

you can ignore the error showing in Destination.. Its known thing