cancel
Showing results for 
Search instead for 
Did you mean: 

CAP App not working in BTP Cockpit

Sakthive
Discoverer
0 Kudos
1,082

Hi Experts, I have created a CAP Project with the "New Template" provided by the Template Source as follows, I selected the following libraries

Sakthive_0-1723437341820.pngSakthive_1-1723437352692.png

.When I build and deploy this app to the BTP Cockpit

Sakthive_2-1723437401393.png

 

, I'm getting this error from the srv 

Sakthive_3-1723437426395.png

When i checked the network, i can see the endpoint is not loading

Sakthive_4-1723437480890.png

But the app is working fine in local, I am able to see the data

Sakthive_5-1723437533444.png

 

In the deployed version, I'm not able to access the service and app part of the CAP Application, Kindly guide me through this.

Accepted Solutions (0)

Answers (2)

Answers (2)

priyankaG
Participant
0 Kudos

is this issue have any fix??? i mean is there any other way now to load the cap server hompage ?? or this behaviour is going to conitnue like this ??

Sakthive
Discoverer
0 Kudos

Hi Sven-leonhardt, Thanks for the Quick Response. Yes, My CAP Project cds version is ^8  

Sakthive_0-1723471370306.png

 

Could you please guide me how to configure routes in this case, This is my xs-app.json in the router folder of app 

Sakthive_1-1723471435795.png

.In local version, I'm able to get the inital page where the services and tables are showing

(Local) 

Sakthive_2-1723471490773.png

But in Deployed version, the above initial page itself is not coming when i select the routes in the overview

Sakthive_4-1723471740305.png

 

, its directly going for Cannot Get /. Kindly help me .

(Deployed Version)

Sakthive_3-1723471575272.png

TunaBerber
Newcomer
0 Kudos

Hello Sakthive,

As mentioned above, this is expected behaviour. But there is a solution. In your package.json file, under "cds" section you need to add the following code.

    "fiori": {
      "preview": true
    },
    "server": {
      "index": true
    },
 
This solved my problem. Hope it solves yours too.
krishna2504
Explorer
0 Kudos
Hi sakthivel
krishna2504
Explorer
0 Kudos

Hi sakthivel....
Did u resolved the issue? if so please share the solution, I am also facing the same issue

krishna2504_0-1736344395813.png

 

krishna2504
Explorer
0 Kudos

Hi Tuna

i tried the following code but didn't work for me, please help

 "fiori": {
      "preview"true
    },
    "server": {
      "index"true
    },