on 01-25-2022 9:08 AM
Hi ,
I am following this tutorial to deploy my first MDK app to Web
https://developers.sap.com/tutorials/cp-mobile-dev-kit-ms-setup.html
https://developers.sap.com/tutorials/cp-mobile-dev-kit-offline-app.html
But After deploying the app, I am getting underlying error
Failed to initialize application data service - Error: Error 0 (Unknown); GET https://webclient/sample_service_v2/
Looks Like it's an cross domain error from network trace ...
Please help me on this.
Please double check the URL as highlighted in the attached screenshot.
This URL should be the destination API from Mobile Services, check step 4.2 from this tutorial https://developers.sap.com/tutorials/cp-mobile-dev-kit-ms-setup.html
(you should see Connection to "sample_service_v2" established. Response returned: "400: Bad Request when checking the connection)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Meanwhile, just to check the BTP destination is configured correctly, you can try below -
Hi @jitendrakumar.kansal
I am having a similar issue during the testing of my mobile app with the web interface. App works properly within the Mobile client. All my developments are done with SAP BAS.
Below is the error I get while testing the app and it disappears very soon and selected entities from the demo service are displayed however upon selection of an entity the respective records does not show up. I tried with some other services which does not contain period(.) and also with another onPremise service but the result is always same.
error : Failed to initialize application data service - Error: 500 (); GET /sapdemo/com.sap.edm.sampleservice.v2/ Internal Server Error
I have checked the BTP destination by replacing the Mobile service with a BTP service as per your suggestion however this time I got the below 404 error. On the other hand the Mobile service updates the metadata successfully.
error: Unable to fetch service metadata with the error <html><head><title>Error report</title></head><body><h1>HTTP Status 400 - </h1></body></html>
All my configurations are inline with the documentation you provided. Do you have any tip about where I can look at.
Thanks
regards
Yavuz
User | Count |
---|---|
71 | |
9 | |
8 | |
6 | |
6 | |
6 | |
6 | |
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.