cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CAP Application Error - Cannot Get /

THENNARASU
Explorer
0 Kudos
2,125

Hi SAPians,

We are encountering an issue after deploying a CAP application to Cloud Foundry. Our CAP application is not bound to any database; instead, we are using OData to retrieve and post data to an on-premise HANA database. As a result, we removed all database-related configurations from the MTA.yaml file. The deployment was successful, but when we try to access the service of the application from the space, we receive the error "CANNOT GET /".

Do you have any insights on why this might be happening?

Many thanks in advance!

View Entire Topic
umasaral
Contributor
0 Kudos

To resolve the issue with your deployed application accessing the OData service, check the following: 1) Ensure network access and permissions for the deployed app. 2) Verify that environment variables and destination configurations match the working freestyle app. 3) Check CORS settings on the OData service. 4) Implement detailed error logging to capture any request failures. 5) Confirm routing configurations in both package.json and manifest.json are correct. 6) Ensure version compatibility of libraries. 7) If possible, replicate the issue in a staging environment for further debugging

 

StepAction Required
Network AccessEnsure deployed app has access permissions.
Environment VariablesVerify environment settings match working freestyle app.
Destination ConfigurationCheck that destination settings are correct.
CORSEnsure CORS is configured on the OData service.
Error LoggingImplement detailed logging for request failures.
Routing ConfigurationConfirm package.json and manifest.json routing is correct.
Version CompatibilityCheck compatibility of libraries with the deployment environment.
Staging EnvironmentAttempt to replicate the issue in a staging environment.