cancel
Showing results for 
Search instead for 
Did you mean: 

Error : Executing CAP with SAP HANA Cloud project as MTA

YOJAN
Product and Topic Expert
Product and Topic Expert
0 Kudos
293

Hello,

I deployed this project in my BTP trial version, "Combine CAP with SAP HANA Cloud to Create Full-Stack Applications".

It looks like it is correct the deployment, no errors I saw, however I get this message when I try to access the router url 

Cannot GET /

What looks like no to be correct is xsuaa instance, it was created with two binding but no key. -- see attachment.

Any idea is welcome, I ran out of ideas.

 

Accepted Solutions (0)

Answers (2)

Answers (2)

MioYasutake
Active Contributor
0 Kudos

@YOJAN 

Try adding `/odata/v4/serviceName` to the URL.

René
Product and Topic Expert
Product and Topic Expert
0 Kudos

I think you're missing oauth2 configuration:

Ren_0-1745555645658.png

Deploy to Cloud Foundry | capire

YOJAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Thanks for the response

I am following these steps: https://developers.sap.com/tutorials/hana-cloud-cap-deploy-mta.html

And yes the url is included, even with a more generic one, please see image bellow.

The example is a project from SAP, so this is the github for it: https://github.com/YojanPeru050704/demoCAPHana

If I try to access srv url, it returns 401, might be correct.

But the app url e54aba11trial-dev-democaphana.cfapps.us10-001.hana.ondemand.com/interaction_items/webapp/index.html

returns 500,  The log includes this message - no windows to prompt for credentials is shown:

4caef6c9ac5","space_name":"dev","space_id":"753c88af-e37e-405c-8fc4-ca4fe7fb36d2","container_id":"10.32.1.8","msg":"Illegal content in cookie: cmapi_cookie_privacy, you may want to set environment variable COOKIE_BACKWARD_COMPATIBILITY to true for backward compatible validation, argument val is invalid: permit 1 required","level":"error","written_at":"2025-04-28T17:28:49.457Z","written_ts":1745861329457940200,"request_id":"cfd1f25e-e408-43e7-5e32-556500ccbf44","correlation_id":"cfd1f25e-e408-43e7-5e32-556500ccbf44","tenant_id":"19e48778-6e5e-405d-adcb-e65a6b9eda1c"}

https://e54aba11trial-dev-democaphana-srv.cfapps.us10-001.hana.ondemand.com/odata/v4/catalog/Countri...

I ran out of ideas for this deployment

YOJAN_0-1745861628415.png

Thank you for any guidance.