on 04-23-2020 8:07 AM
Hello experts,
We are trying to get a MDK app running that accesses an OData service on our SAP back-end using mobile services in Cloud Foundry. So, we connected our CF account to the cloud connector and created a destination for our back-end in the CF also.
In Mobile services we created a Hybrid App and connected it to our OData service, see steps below:
When I ping or test the OData service it returns no errors.
At this point I have the feeling that my configuration on Mobile Services side is quite ok. We followed the steps on the tutorials for MDK, so the NEO instance has a destination that points towards the mobile-services on CF. We then follow the steps in following tutorial:
https://developers.sap.com/tutorials/cp-mobile-dev-kit-online-app.html
When we then open the app on the mobile phone we get following issue:
Any idea what might be causing this?
Thanks in advance!
Kind regards,
Robin
The issue was that in the metadata of the service I used, there was a reference towards another service. So we had two options:
I tested option 1 and this worked for my case
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Robin,
I would start by checking the Mobile Services logs for your application to see if there is a more descriptive error message. In Mobile Services go to Analytics > Logs and see if there is more detail related to the error.
Additionally, I would try accessing your application API url for that destination in the browser to confirm you can retrieve the metadata. So for your example it would be https://<id>-trial-01-be-odata-redirect.cfapps.eu10.hana.ondemand.com/be.odata.redirect/$metadata?au... just to verify it is accessible (I would guess it is).
--Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Bill,
Thanks for reply.
No relevant logs available when running the app.
I can confirm that https:// - trial-01-be-odata-redirect.cfapps.eu10.hana.ondemand.com/be.odata.redirect/$metadata?auth=uaa is accessible and returns the metadata.
Kr,
Robin
panneels.robin
Couple of things you can look into:
Are you trying it on MDK public store client (check once if you have already updated it to 4.2.1)? If so, you can connect your Android device to PC and can access ClientLog.txt file via the Android Studio> View menu > Tools Window > Device File Explorer>data>data>com.sap.....>files>ClientLog.txt , there you may find some more info.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
74 | |
8 | |
8 | |
7 | |
7 | |
6 | |
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.