SAP Knowledge Base Article - Preview

3112360 - 502 error connecting to backend OData from CAP project in BAS


Following error occurs when previewing CAP service (srv) application in BAS:

<error xmlns=>


<message>Error during request to remote service: connect ETIMEDOUT</message>


The odata connection is working correctly when the application is deployed to SAP Cloud Foundry.



SAP Business Application Studio

Cloud Application Programming Model


SAP Cloud Portal service all versions


node.js, CAP, preview, srv, service, odata, 502, BAS, SAP Business Application Studio, Business Application Studio, destination, cds, VCAP_SERVICES, .env, default-env.json , KBA , CA-BAS-CAP , CAP Tools extension , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.