cancel
Showing results for 
Search instead for 
Did you mean: 

SAP CAP Remote Service Request Failed at Connectivity Service in the Business Application Studio

albertoliu1993
Advisor
Advisor
0 Kudos

Hi Experts,

Currently I have a CAP Java application that will consume the remote API from SAP S/4HANA On-Premise system. I'm developing this CAP Java application in the SAP Business Application Studio. I already configured the Cloud Connector, Destination Service instance, and Connectivity Service instance.

Right now I would like to perform some local testing in the Business Application Studio, so that I configured a default-env.json file, mentioned the destination and connectivity service instance & key information there. But I'm seeing the connectivity service throw I/O error, let me paste the error message below.

2023-06-28 05:09:02.464  INFO 798 --- [tner - Listener] o.apache.http.impl.execchain.RetryExec   : I/O exception (java.net.SocketException) caught when processing request to {}->http://connectivityproxy.internal.cf.eu10.hana.ondemand.com:20003->http://tisce-s4h:44300: Connection reset
2023-06-28 05:09:02.465 INFO 798 --- [tner - Listener] o.apache.http.impl.execchain.RetryExec : Retrying request to {}->http://connectivityproxy.internal.cf.eu10.hana.ondemand.com:20003->http://tisce-s4h:44300

Below is what I have in the default-env.json file


But I'm seeing the destination & connectivity service instance is working fine after I deploy the CAP Java application to my space on the BTP.

May I know what I missed in the Business Application Studio ?

View Entire Topic
Cguttikonda
Explorer
0 Kudos

Hello Liu,

Did you maintain the destination info as mentioned in the below link in your .env file.

Cloud_sdk

You need to maintain the destination-name.dest along with proxy host and port.

Bas connects to cloud-connector through a proxy.

albertoliu1993
Advisor
Advisor
0 Kudos

Hi Chanakya,

Thank you so much for your reply. Yeah I do have the <destination-name>.dest settled up in my Business Application Studio but at that time its still not working, I was keep getting the connection timeout error on the Connectivity Service instance.

But finally this instruction Enable Access to SAP Business Technology Platform Connectivity Service resolve my issue.