SAP Knowledge Base Article - Preview

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

Symptom

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

<error xmlns=http://docs.oasis-open.org/odata/ns/metadata>

<code>502</code>

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

</error>

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


Read more...

Environment

SAP Business Application Studio

Cloud Application Programming Model

Product

SAP Cloud Portal service all versions

Keywords

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.