Error:Unable to read response from server

Discussions about syncing data via Bluetooth, Dropbox, FTP, and using CSWeb
Forum rules
New release: CSPro 8.0
Post Reply
AriSilva
Posts: 591
Joined: July 22nd, 2016, 3:55 pm

Error:Unable to read response from server

Post by AriSilva »

Hi folks,
Maybe I should post this message in the Tools group, but, it is also related with sync, so...
I executed the sync from the tablet to the server.
I could also download the files in the server using the data application in the /csweb/ui.
When trying to download the files using the DataViewer, the connection is apparently good, since it shows the list of the files in the server, but when executing the download it throws the attached message, saying that it was unable to read response from the server.
To see the log for details.
I looked at the ui logfile (see attached) but did not see any clue.
What am I doing wrong?
By the way. I´m using the wamp64.
Best
Ari
Attachments
ui.log
(753 Bytes) Downloaded 279 times
UnableToRead.PNG
UnableToRead.PNG (2.35 KiB) Viewed 4638 times
Best
Ari
aaronw
Posts: 561
Joined: June 9th, 2016, 9:38 am
Location: Washington, DC

Re: Error:Unable to read response from server

Post by aaronw »

ui.log is going to log details related to the navigation of the CSWeb website. What we need here is the sync.log.

Depending on the your OS you will find the sync log in either one of two places:
  • 1. Android: csentry\sync.log
    2. Windows: Users\username\AppData\Roaming\CSPro\sync.log
AriSilva
Posts: 591
Joined: July 22nd, 2016, 3:55 pm

Re: Error:Unable to read response from server

Post by AriSilva »

The last lines of the log follows:
07/02/2018 16:15:47.593 INFO: Connection successful. Server id: http://localhost/csweb/api/
07/02/2018 16:15:47.609 INFO: Downloading dictionary list
07/02/2018 16:15:48.062 INFO: Downloading dictionary list complete
07/02/2018 16:16:01.187 INFO: Downloading dictionary file: HOUSEHOLDQUESTIONNAIRE_DICT
07/02/2018 16:16:01.421 INFO: Downloading dictionary file complete
And then I got the error message shown in my first message.
I finally thought over this problem, and it is related with the CsPro version I´m using. I´m playing with 7.0 and 7.1 at the same time, and I created the server with the 7.1, but I was trying to use the dataviewer to download the files with the 7.0.
This is what caused the real problem.
As soon I realized it, I used the 7.1 version all the way to download the files and it worked perfectly.
Pleeeeeeeeeeeease, release the 7.1 ASAP.
As a suggestion, another thing that might help is to write the name of the log file in the error message. Instead of saying just "log" you should say "sync.log", or any other log that are applicable.
Best
Ari
Best
Ari
aaronw
Posts: 561
Joined: June 9th, 2016, 9:38 am
Location: Washington, DC

Re: Error:Unable to read response from server

Post by aaronw »

Glad you figured it out. I like your suggestion about specifying which log. I'll update the message.
Post Reply