on 12-19-2018 1:11 AM
Hi Experts,
all of a sudden, my previously working Hybrid app is having "[ODataMetadata] initial loading of metadata failed" error and seems to stop working.
Can anyone advise how I should trace the root cause? What I know as of now is that it seems the request does not even reach the gateway, as my _CREATE method breakpoint is not triggered.
Best Regards
Andre Julius
Hi Andre,
Most of the times that error is harmless. Have you verified that the destination is reachable and metadata is fetchable? (inside the Connectivity section of your app)? This is most likely a connection/configuraiton issue in the backend.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi fardin.khanjani
For The "READ" part it's working OK(so I assume it is reachable)....the problem only occurs for "WRITE" part where there is no request being sent to the back end at all in the "Network" tab.
in this case, I don't think it's a backend issue right? could it be some kind of Hybrid-Odata v2 Incompatibility issue(This is just a wild guess)? lnoens ...is there any known issue? since the prototype I built based on your blog suddenly stops working.
Could it be because recent SMP is SP16 and I have SP15 installed in my PC?
Best Regards
Andre Julius
Hi fardin.khanjani
Thanks for your advice, since you mentioned that the error should be harmless..I tried a few things, then I realize something...my app needs a "Flush" even though it is online. It did not behave like that last time. I'm still checking with Ludo on this matter by leaving a comment in his blog.
Best Regards
Andre Julius
Hi Andre,
As mentioned on my blog, the offline app always works against the offline on-device store, no matter whether it is operating with or without network connection. You will need to flush and refresh. These actions could be automatically done, if the app detects the transitions in network connectivity.
Hope this clarifies.
Cheers,
Ludo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.