Page 1 of 1

Sync server error

Posted: April 1st, 2017, 11:07 am
by Komin
Dear CSEntry Team,

I am trying to synd data from my phone to server, it's required me to input username and password.
I am already done for username and password but when i click on icon syndata, it's provided a message as below:

CSEntry Error (1000101)
Sync server responded with error: JSON does not validate.
Violation:
[] Array value found, but an object is required. (404)

Could please advise on this problems?

Noted: I am using CSEntry 7.0

Regards,
Komin

Re: Sync server error

Posted: April 3rd, 2017, 5:57 am
by josh
Please make sure that the version of the software on the webserver and on the tablet are both the most recent. This sounds like using an older version of CSPro on the tablet and a newer one on the server or vice versa.

If that doesn't work post the api.log file from the server and the sync log file from the tablet.

Re: Sync server error

Posted: April 3rd, 2017, 8:24 am
by Komin
Dear CSEnry team,

This is my cspro version on tab that i am using. Is it right?

Komin

Re: Sync server error

Posted: April 3rd, 2017, 12:27 pm
by savy
The latest version of CSWeb is now available on the beta page - http://csprousers.org/beta/
Please let us know if you are still having problems with CSWeb synchronization.

Re: Sync server error

Posted: April 3rd, 2017, 10:42 pm
by Komin
Dear CSEntry Team,

Yes, i already download and configure with the latest version of CSWeb, but it's still problem when i am trying sync data to webser
Here is a message from my table after i sync data

CSEntry Error (100101)
Sync server responded with error: Unauthorized. (401)

Could you please help advise me?

Kormin

Re: Sync server error

Posted: April 4th, 2017, 12:00 am
by josh
Unauthorized usually means the username/password didn't work. After you installed latest on the server did you add the user account you are using to the system again?

Also the database structure changed with the new version of the server so you need to delete and recreate the server MySQL database and then run configure again.

Re: Sync server error

Posted: April 4th, 2017, 2:16 am
by Komin
Dear CSEntry Team,

I already config again but the result it's the same the old one.
if i sync data from my desktop to web server, it's okay.

CSEntry Error (1000101)
Sync server responded with error: JSON does not validate.
Violation:
[] Array value found, but an object is required. (404)

*********

Regards,
Komin

Re: Sync server error

Posted: April 4th, 2017, 9:06 am
by josh
Can you post the api.log file from the server?

Re: Sync server error

Posted: April 18th, 2017, 10:52 am
by Komin
Dear cspro team,

I am trying to sync data from my phone to server by using local host but it is reveal a message below.

What'swrong is it?

Regard,
Komin

Re: Sync server error

Posted: April 18th, 2017, 3:16 pm
by josh
Localhost will only work on your phone if you are running the webserver on your phone. Localhost means that you want to connect to a web server on the local machine (https://en.wikipedia.org/wiki/Localhost). If you are running the server on a PC on the local network you will need to use the IP address or hostname of the computer that the server is running on instead of localhost. You may also need to change your firewall settings on the machine that is running the server to allow remote connections.