on 2020 Sep 16 4:11 PM
Hi all,
I followed this blog post https://blogs.sap.com/2020/09/11/building-a-central-launchpad-using-sap-cloud-platform-launchpad-ser... of murali.shanmugham to create a UI5 app using the managed approuter. All works fine when deployed. But when I try to run directly from BAS, I'm getting the following message.
Any idea how to solve this?
Thank you all in advance!
Kr, Wouter
Request clarification before answering.
I suspect you root package.json lacksdevDependency "@sap/approuter": "8.1.x", "@sap/html5-repo-mock": "1.5.x",
Or
The env file attached to launch.json used by your local run, does not include the right xsuaa
I hope you can access these links
Try this one I recorded 3 months ago E2E flow using central App Router
https://sap-my.sharepoint.com/:v:/p/yuval_morad/EaR7wmPE_xFDscHXBaBiXSEBxuVfgtICtOYdY5ZVbsqgsA?e=B6N...
This is local run
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The HTML5 menu in trial will probably come in Q1 this year.
Until then you can execute the from the terminal in BAS the following:
cf html5-list -di <destination service instance name in the mta> -u
Check my migration blog
https://blogs.sap.com/2021/01/14/migrating-sap-fiori-applications-from-neo-to-cloud-foundry-using-sa...
and formal documentation
Hello yuval.morad ,
How do we check if "The env file attached to launch.json used by your local run, does not include the right xsuaa" ? I am facing the same problem as listed above, I've added redirect_uris as well, but still I am getting the error. Also I did not define the run configuration for the destination but I have default-env.json file that has configuration for the destination.
You would need to describe your flow accurately:
1. Local run of Fiori app? for CF/ABAP? using managed approuter or standalone approuter
2. Which local run is used html5-repo-mock?
3. Reuse library consumption? from the same MTA or not
4. Data source consumption? from a destination of BE app in CF
5. Role test yes/not
In general this requirement of binding to XSUAA is not required anymore for local run using latest version in dev-dependency "@sap/html5-repo-mock": "2.0.x"
Please share the manifest.json xs-app.json and mta.yaml
are you running
Did you subscribe to portal or launchpad?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Yuval,
We are facing the same error - the invalid_uri has an invalid domain error for our CPI tenant while accessing them with a custom domain we created. And as it is not a UI5 app, we are not aware where to find xs-security.json file for CPI tenant in BTP CF cockpit. Can you please help here
Subscription to portal is mandatory to run the app.
You can launch standalone apps fro HTML5 Application menu, or from the terminal in BAS " cf html5-list -u - d
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you bind the destination in BAS (in the run configuration)? I found that if its not bound the app will not run at all inside BAS.
But for me - when I deploy it to CF I found that the app could not access the backend OData service. After tearing what little hair I have left out, I found that it only works when run from within the Launchpad or Portal. That does not specifically seem to be documented anywhere but I do believe the launchpad service prpovides the approuter for these "managed by sap" apps...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am not sure why you are getting this error. I didnt have to manually create a service instance.
Here are the my project files.
Destinations
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please share
1. xsapp.json
2. manifest data source section
3. destination from cockpit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm not using any datasource. I just generated an empty UI5 app with authentication. I have the same on trial as on a productive landscape. On trial I don't see the HTML5 app in the Cloud Foundry menu...
Here you have my xs-app.json
{
"welcomeFile": "/index.html",
"authenticationMethod": "route",
"logout": {
"logoutEndpoint": "/do/logout"
},
"routes": [
{
"source": "^(.*)$",
"target": "$1",
"service": "html5-apps-repo-rt",
"authenticationType": "xsuaa"
}
]
}
User | Count |
---|---|
96 | |
11 | |
9 | |
9 | |
7 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.