cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Service Timeout Error : Cloud Foundry Node API Call via Cloud Connector

vishnucta
Active Participant
0 Likes
1,888

Hello Experts,

I am trying to consume ES5 Demo gateway service(Northwind works fine) in a Node Application
Below I have mentioned the details of my application:

SAP CC Details:

Destination in BTP Cockpit:

Node App Details:

default-env.json:

manifest:

index.js:

Getting a Destination token and using that to fetch the destination information correctly


After this using the connectivity service information to fetch the Connectivity service token so that URL request can be made via proxy to the cloud connector destination.

Running locally gives below output :

Getting tokens sucessfully :

Timeout Error when running the app locally:

When running the app in BTP CF:

frank.essenberger1 carlos.roggan
maheshkumar.palavalli

Regards,

Vishnu

Accepted Solutions (0)

Answers (3)

Answers (3)

vishnucta
Active Participant
0 Likes

martin-pankraz Thanks for your response. I maintained location id in SCC which was actually an optional parameter. And now it works in BTP Cloud but the same timeout in when running locally.

vishnucta
Active Participant
0 Likes

Any insights kunjshukla

Martin-Pankraz
SAP Champion
SAP Champion
0 Likes

Hi Vishnu,

ES5 is a public demo system reachable without the SCC. Are you trying the setup as a workaround for sth else?

When testing locally I need an SSH tunnel when relying on service bindings in CloudFoundry. Have a look here for instance. Shouldn't apply in your case though as your endpoints are Internet-facing I believe.

What does the SCC log say about your request? Did you reach your target?

KR

Martin

vishnucta
Active Participant
0 Likes

Hello martin-pankraz ,
Thanks in advance for the response. Yes, it's a workaround till I get access to the actual on-premise system.
I have checked the SCC monitor and the request did not reach the target. All connection checks are greenlit and even the service works fine and returns data.

Martin-Pankraz
SAP Champion
SAP Champion
0 Likes

That leaves only the path mapping on the SCC. Do you require a wildcard maybe? Did you try /sap/ for the OData subpath for instance? Have a look here to compare.

vishnucta
Active Participant
0 Likes

martin-pankraz Now the node app works directly in BTP but same time out while testing the same service in VSCode.

Martin-Pankraz
SAP Champion
SAP Champion
0 Likes

Well, do you have access to your CF services locally in VSC? I believe you need the already mentioned SSH tunnel. Otherwise you are not reaching your SCC enabled endpoint. Have a look here for instance.

KR

Martin

vishnucta
Active Participant
0 Likes

Thanks martin-pankraz . let me check this out.