Skip to Content
0
Sep 01, 2023 at 02:39 PM

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

185 Views

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.