on 11-23-2021 2:27 PM
mta.txtxs-app.txtTutorials: https://developers.sap.com/tutorials/hana-cloud-cap-add-authentication.html
--------------------------
when i do 'npm start' in app folder path
------------------------
error ->
jse_shortmsg: 'xs-app.json/routes/0: Format validation failed (Route references unknown destination "srv-api")',
------------------------
please help me...
When you run locally, i.e. you are not building and deploying to cloud foundry, content of mta.yaml is irrelevant. Check contents of file default-env.json. You should have an entry in this file for destinations with the destination mentioned in xs-app.json (this is in the tutorial Step 4, bullet 5):
"destinations" : [{
"name" : "srv-api", "url": "https://localhost:4004", "forwardAuthToken":true
}]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It seems to me that you are mixing "srv-api", "default-url" and "srv-url" here. Have a look at this working sample and try to rebuild the structure used there.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your reply.
It was solved by putting default-env.json under the app folder.
User | Count |
---|---|
85 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.