SAP-samples/cloud-cap-samples

error when deploying following openSAP-week3-unit5

silasd23 opened this issue · 5 comments

Hello everyone !

I'm having some troble whyle trying to run the example of week 3 unit 5 of open sap course
https://github.com/SAP-samples/cloud-cap-samples/tree/openSAP-week3-unit5
https://open.sap.com/courses/cp7/items/y6qAYiWpxGJqIpCYpwzn6

in the homepage i have this errors :
image

in the Books page i have this errors :
image

i followed the steps in the demo presentend in the course and also checked in the git repository, can someone help me to understand what i have made wrong?

chgeo commented

I think must of the errors is client-side stuff from UI5, which may be ignored. For example, the ServerInfos requests are optional.
What is the actual perceived error that you get? Which UIs do not work?

Also CCing @pianocktail, who is the expert for the unit.

The only reason for having the "app" in the CF deployment in the example is to show how the approuter is doing the redirection to XSUAA and getting a JWT token. Testing the authorizations is much easier to be done locally. This is also what is shown in the demos.

shown

Yes I know but my problem is that after following all the steps to deploy to Cloud and I execute the command bellow I get errors in the files generated:
image

Follow evidence:
image

If I deploy this as it is the deployment process will be done with success but if I go to the App i do not have any data in the Database. If I do some changes and fix the files and then do the deploy i got the same error.

Can you or somewone tell me what is wrong ?

chgeo commented

The error above in the editor can be ignored. That's a glitch in the editor.

For the missing data, how have you verified this? Troubleshooting tips:

  • Check in the HANA tables.
  • If this is fine, check the pure odata request like /catalog/Books.
  • If this is working, only check from the UI. Do you see columns in the table? If not, this indicates no UI.LineItems annotations being present.
chgeo commented

This issue channel will be closed. If the error persists, please report it in our community.