on 2025 Jan 28 5:25 PM
Hi Experts,
We are studying a proof of concept using CAP development. The application runs locally but raises a 404 error in CF after deployment.
I published the app in the work zone, but I still received the same error, and I'm unsure how to resolve this issue.
I've changed the YML and JSON extensions to the TXT to upload the files here.
Does somebody know what I should do?
Thank you in advance.
Request clarification before answering.
In order to access the deployed service, the URL should be like:
.../odata/v4/processor
Therefore, the 404 error from the destination is not an issue. The service may not be accessible from Work Zone due to the xs-app.json setting. Because the two routes have the same source, the Approuter cannot distinguish them. Try the following settings:
{
"source": "^/odata/(.*)$",
"target": "/odata/$1",
"destination": "srv-api",
...,
},
{
"source": "^(.*)$",
"target": "$1",
"service": "html5-apps-repo-rt",
...
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Thanks for your support. It was possible to reach the service using the /odata/v4/processor to complete the URL. I've changed the xs-app.json file as you suggested but the error persists when I try to access the application through workzone: "Failed to load resource: the server responded with a status of 404 ()"
Locally it's working fine
Hi, I am having a problem accessing the following link through the Workzone: https://9949bcdctrial.launchpad.cfapps.us10.hana.ondemand.com/site?siteId=3845475c-3244-425f-8dce-88....
I've found the 404 not found error below:
| User | Count |
|---|---|
| 6 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 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.