We are using SAP Cloud SDK for JS to connect to an OnPremise destination from our local environment. When we make the call to executeHttpRequest
it rejects with the ECONNREFUSED
error.
Link to the error screenshot https://i.stack.imgur.com/wgmqT.png. We are using the following libraries in our package.json:
"@sap-cloud-sdk/connectivity": "2.1.0",
"@sap-cloud-sdk/http-client": "2.1.0",
"@sap-cloud-sdk/test-util": "2.0.0",
We have followed all the steps mentioned in the link https://sap.github.io/cloud-sdk/docs/js/features/connectivity/on-premise. I used the following command to create the ssh tunnel:
cf ssh my-app -L localhost:5001:connectivityproxy.internal.cf.eu10.hana.ondemand.com:20003
.
Our application is bound to the connectivity service and the cloud connector was also switched on, when we made these observations. Can anyone help us in resolving the above issue?