cancel
Showing results for 
Search instead for 
Did you mean: 

SAP CAP hybrid testing getting 'ECONNRESET' error when calling on-prem odata service

shahbhat
Product and Topic Expert
Product and Topic Expert

In my CAP application, I am consuming an external OData service from my on-prem backend system via BTP destination(using Cloud Connector). When I deploy the app to Cloud Foundry, it works correctly, returning data from the backend OData service. However, when I configure my CAP project for Hybrid Testing, by binding XSUAA, Destination, and Connectivity service instance (in .cdsrc-private.json) and running the project locally with 'cds watch --profile hybrid', I get the following error when I try to read the data from the external service, 'Error during request to remote service: read ECONNRESET'.

My mta.yaml is setup correctly with service module containing 'requires' section for dependency on XSUAA, Destination, and Connectivity service instance which are deployed in BTP and our bound.

When I do the exact same thing for a backend system on internet, Hybrid testing is working correctly. Not sure what's causing this for on-prem?

I just started doing my debugging into this and would appreciate any help from the community.

Epena
Participant
0 Kudos

Hello alwayslearning ,

What's your destination authentication type? basic? principal propagation?

Can you provide the full CAP exception stacktrace ?

Regards.

shahbhat
Product and Topic Expert
Product and Topic Expert
0 Kudos

Destination authentication type is Basic. See below for the error stack:

Madhusudan
Newcomer

Hi Shahrukh ,

I am facing the same issue during the post did you get any solution for this issue.

regards,

Madhu

I533303
Advisor
Advisor
0 Kudos

Hi alwayslearning,

I'm facing same issue which consuming external Onprem Odata service. Please did you manage to find a solution for this error ?

Best regards,

Mariam

martinstenzig
Contributor
0 Kudos

Are you trying to access an on-prem destination in Hybrid mode?

diego_renzi
Discoverer
0 Kudos

I'm facing same issue

Ulrich_Schmidt
Product and Topic Expert
Product and Topic Expert
0 Kudos

Mariam: this is not an "answer"! It's another question! If you have follow-up questions for the original author, then please add them in the "comments" section above, but not here in the "answers" section!

Ulrich_Schmidt
Product and Topic Expert
Product and Topic Expert
0 Kudos

Same for you: this is not an "answer". Please move to comments section.

Accepted Solutions (0)

Answers (2)

Answers (2)

robertso
Employee
Employee
0 Kudos

hey shahbhat, have you been able to resolve this problem?

oliver_pitz
Explorer
0 Kudos

Hi alwayslearning,

I have the same issue in hybrid testing mode. Could you find a solution?

Regards,

Oliver