Thanks @andrineM for sharing the issue. I happened to have encountered the same issue at one of our pilot sites. We are doing an offline implemention and the devices using for entry by our HTS providers are Samsung J7 Phones running on Android 7.0 and Mozilla Firefox version 91.1.0
Connection url to the CHT application:
To connect to the cht instance, the users are using the url https://192.168.0.1:7200
Reproducing the Issue
The data sync issue is happening mainly when a phone goes off due to low charge/battery level which eventually leads to disconnection from the CHT server network.
You can therefore reproduce this by doing a phone restart and see if you will be able to sync data.
Below are the Logs on the Browser console :
16:53:56.530
XHRGEThttps://192.168.0.191:7200/medic/_changes?timeout=600000&style=all_docs&heartbeat=10000&since=0&limit=100
16:53:56.665
Error replicating from remote server
Object { result: {…}, stack: “” }
16:53:56.675
Error replicating from remote server
Object { result: {…}, stack: “” }
16:53:56.683
TypeError: NetworkError when attempting to fetch resource. Possibly unhandled rejection: {}
16:53:56.692
Object { result: {…}, stack: “” }
Possibly unhandled rejection: {“result”:{“ok”:false,“start_time”:“2021-09-20T13:53:55.877Z”,“docs_read”:0,“docs_written”:0,“doc_write_failures”:0,“errors”:[],“status”:“aborting”,“end_time”:“2021-09-20T13:53:56.666Z”,“last_seq”:0}}
16:53:56.750
XHRPOSThttps://192.168.0.191:7200/medic/_revs_diff
16:53:56.906
Error replicating to remote server
Object { result: {…}, stack: “” }
16:53:56.915
Object { result: {…}, stack: “” }
Possibly unhandled rejection: {“result”:{“ok”:false,“start_time”:“2021-09-20T13:53:55.884Z”,“docs_read”:0,“docs_written”:0,“doc_write_failures”:0,“errors”:[],“status”:“aborting”,“end_time”:“2021-09-20T13:53:56.906Z”,“last_seq”:0}}
16:53:56.925
Error replicating to remote server
Object { result: {…}, stack: “” }
16:53:56.965 Replication failed after 1.108 seconds [inbox.js:3:1236663]
On the Network tab. I am scrolling through all the Get and Post XHRs and all are giving the message No response data available for this request
@derick
On my end , I was able to connect to the server from the affected devices by entering the server IP address in incognito mode, even though on the normal browser mode, the sync issue still persists