on 2022 Feb 03 6:10 AM
Hi experts,
I have created a CAP application using CDS method. And for approuter I have included freestyle SAPUI5 as frontend module. When I run locally, it is working fine, since it fetches oauth2-configuration and destination from default-env.json. Whereas, after deploying (used ignore in build-parameter to exclude default-env.json file), it is giving "404 Not found" error.
Can you please help me in following 2 issues,
I'm new to XSUAA topic and appreciate your help.
PFA,
srv module output:
respective approuter module output:
Best regards,
Vignesh K
Hello,
you can add following env variable, to see debug info in console.
This should help to see where exactly the request fails:
env:
CF_NODEJS_LOGGING_LEVEL: "debug"
Furthermore, you could add more configuration code snippets to your question.
Have you bound your app to xsuaa?
How do you define / create destinations?
Is destination defined in correct subaccount/app-level?
Have you tried setting the destination in the env (just as first approach)?
Kind Regards,
Carlos
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I have followed this blog only Deploy CAP with SAP HANA Cloud project as MTA | Tutorials for SAP Developers.
When I ran locally it is working (with destination config in default-env.json). Only when I deploy, it is not working (env file is ignored here). It seems the destination is not applying. Please find the below screenshots are destination configuration in BTP.
Can you please help me with which configuration I am missing here?
Regards,
Vignesh K
Maybe you find some inspiration from my bookshop-demo example project.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
71 | |
10 | |
8 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.