cancel
Showing results for 
Search instead for 
Did you mean: 

On Prem Odata call via BTP subaccount destinations from local BAS not working

Explorer2sap
Discoverer
0 Kudos

Hi All,

My team currently facing challenge calling On Prem Odata service via BTP subaccount destination from local BAS. if same CAP app we deploy on CF this is working perfectly fine but when we try running CDS watch(even after keeping .cdsrc-private.json updated with destination and connectivity service) from local, its not working. its throwing error as :

"Error: Error during request to remote service:

read ECONNRESET

at run (/home/user/deloitte/CAPS4H/sample1/node_modules/@sap/cds/libx/_runtime/remote/utils/client.js:310:31)

at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

at async RemoteService.<anonymous> (/home/user/deloitte/CAPS4H/sample1/node_modules/@sap/cds/libx/_runtime/remote/Service.js:295:20)

at async next (/home/user/deloitte/CAPS4H/sample1/node_modules/@sap/cds/lib/srv/srv-dispatch.js:79:17)

at async RemoteService.handle (/home/user/deloitte/CAPS4H/sample1/node_modules/@sap/cds/lib/srv/srv-dispatch.js:77:10)

at async RemoteService.handle (/home/user/deloitte/CAPS4H/sample1/node_modules/@sap/cds/libx/_runtime/remote/Service.js:343:22)

at async next (/home/user/deloitte/CAPS4H/sample1/node_modules/@sap/cds/lib/srv/srv-dispatch.js:79:17)

at async ApplicationService.handle (/home/user/deloitte/CAPS4H/sample1/node_modules/@sap/cds/lib/srv/srv-dispatch.js:77:10)

at async _readCollection (/home/user/deloitte/CAPS4H/sample1/node_modules/@sap/cds/libx/_runtime/cds-services/adapter/odata-v4/handlers/read.js:249:19)

at async /home/user/deloitte/CAPS4H/sample1/node_modules/@sap/cds/libx/_runtime/cds-services/adapter/odata-v4/handlers/read.js:480:16 {

statusCode: 502,

reason: {

message: 'Error during request to remote service: \nread ECONNRESET',"

Please let us know if any one faced this issue before and we have solution for it.

WouterLemaire
Active Contributor
0 Kudos

Can you share your config in cdsrc-private to check if you’re missing something here?

Accepted Solutions (0)

Answers (1)

Answers (1)

Explorer2sap
Discoverer
0 Kudos

I was able to fix this with 3112360 sap note. Thank you!!