on 2024 Nov 04 4:46 AM
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!
Request clarification before answering.
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
| Step | Action Required |
| Network Access | Ensure deployed app has access permissions. |
| Environment Variables | Verify environment settings match working freestyle app. |
| Destination Configuration | Check that destination settings are correct. |
| CORS | Ensure CORS is configured on the OData service. |
| Error Logging | Implement detailed logging for request failures. |
| Routing Configuration | Confirm package.json and manifest.json routing is correct. |
| Version Compatibility | Check compatibility of libraries with the deployment environment. |
| Staging Environment | Attempt to replicate the issue in a staging environment. |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 14 | |
| 8 | |
| 6 | |
| 6 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.