@zpczjl wrote:
I have a ionic APP on sale. My customer complain to me that they often encounter "server can not reach" error, especially at the first time they open the APP after app is closed for hours. If they re-try, then app works.
I checked the log at server side, but find nothing special.
I checked the font-sized code, angular $http returns error with state 0.state 0 means a lot, it can be CORS issue, DNS issue, or even server shutdown. If I can reproduce the issue locally in the web browser, then the browser can tell me the error detail in the console. But now the issue occur in some customer's phone, I can get nothing.
So my question is: Can I get the underlying reason of error 0 in javascript layer? So that I can log it.
After some research, it seems we can not know the underlying reason of ajax error 0 from js layer.
Some is there anything else I can try?
Posts: 4
Participants: 2