3 weeks ago - last edited 3 weeks ago
Hi,
i have an issue deploying a MDK Application in Business Application Studio
The App is an Offline App but for particular needs I configure also an online service for particular OData calls.
This is the services:
The Online Service have the same Service Source Type and the same Destination Name of Offline Service, the only difference is the unchecked Offline flag.
If I deploy the APP to Mobile Service or Cloud all works fine.
When I try to deploy in My Dev Space i have the following errors:
Process exited with code 1
Uncaught VError VError at JsonValidator.validate (/home/user/projects/WebApplicationFactory/somanagement-approuter/node_modules/@sap/approuter/lib/utils/JsonValidator.js:30:5) at validateDestinations (/home/user/projects/WebApplicationFactory/somanagement-approuter/node_modules/@sap/approuter/lib/configuration/validators.js:193:15) at loadDestinations (/home/user/projects/WebApplicationFactory/somanagement-approuter/node_modules/@sap/approuter/lib/configuration/env-config.js:91:14) at load (/home/user/projects/WebApplicationFactory/somanagement-approuter/node_modules/@sap/approuter/lib/configuration/env-config.js:22:28) at module.exports.load (/home/user/projects/WebApplicationFactory/somanagement-approuter/node_modules/@sap/approuter/lib/configuration.js:16:37)
After some research I think the reason of this error is the same name of the Service Source Type and Destination Name for both services in the generated file .project.json
If I replicate the connection in the Mobile Connectivity with another name, ex: s4-backend-odata-online and change it in the Online Service configuration(ServiceV2_Online.service) the deploy in the dev space works correctly.
Unfortunately I can't do that because i have(only on Web/Cloud) a 502 Bad Gateway when using the second configured Mobile Connectivity Destination "s4-backend-odata-online" that is a simple copy of s4-backend-odata. But this is another issue.
Thank you
@Angelo_Ab I am able to reproduce the issue with your "not working" scenario. We'll investigate this.
In meanwhile, you can create two destinations in mobile services connectivity and BTP cockpit destination to consume in your MDK project.
For your second destination in BTP cockpit, please make sure to point to the respective URL (under APIs tab) from 2nd destination in mobile services.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Angelo_Ab Could you share what exactly you had in the ServiceV2_Online.service before making changes with new destination name? Right click on this file>Open with > Text editor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
10 | |
8 | |
8 | |
7 | |
7 | |
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.