on 09-15-2022 9:57 AM
The ALP app works great in local environment but I'm having trouble getting the cloud deployed app to work.
I get a blank page with just the SAP header bar with app name and search box at the top. In the browser network tab, I found one error saying "Internal Server Error" when trying to load the metadata for the page. When I look at the service in BTP, I cannot find any logs related to the error. There are no service logs recorded when opening the app from the launchpad.
Request URL: https://########trial.launchpad.cfapps.us10.hana.ondemand.com/563fa2d7-ffff-cccc-9d8b-b1de2b279990.m...
Request Method: GET
Status Code: 500 Internal Server Error
The cap app has a `server.js` file that loads the `@sap/cds-odata-v2-adapter-proxy`.
const port = process.env.PORT || 4004;
const proxy = require('@sap/cds-odata-v2-adapter-proxy');
const cds = require('@sap/cds');
module.exports = cds.server;
cds.on('bootstrap', app => {
app.use(proxy({ port: port })); //OData V2
});
I'm not sure how to troubleshoot this. I tried created the ALP from scratch a second time and had the same issue.
Technical Information Dialog
SAPUI5 Distribution: 1.106.0 (built at 07.09.2022 12:41:00)
OpenUI5 Version: 1.106.0 (built at 06.09.2022 13:42:00)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36
App URL: https://########trial.launchpad.cfapps.us10.hana.ondemand.com/cp.portal/ui5appruntime.html?siteId=f9...
The problem was in the `xs-app.json` file. When generating the app, I entered the wrong "destination" value.
When running the application locally this does not cause an issue but when deployed I get the internal server error.
The first "destination" under "routes" needs to match the "Name" in the mta.yaml file under "destinations".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.