Sync server error

Discussions about creating CAPI applications to run on Android devices
Forum rules
New release: CSPro 8.0
Post Reply
Komin
Posts: 60
Joined: July 23rd, 2016, 1:27 pm

Sync server error

Post 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
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Sync server error

Post 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.
Komin
Posts: 60
Joined: July 23rd, 2016, 1:27 pm

Re: Sync server error

Post by Komin »

Dear CSEnry team,

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

Komin
Attachments
Screenshot_2017-04-03-19-18-36~01.png
Screenshot_2017-04-03-19-18-36~01.png (391.93 KiB) Viewed 7989 times
Last edited by Komin on April 4th, 2017, 2:54 am, edited 1 time in total.
savy
Posts: 159
Joined: December 27th, 2012, 1:36 pm

Re: Sync server error

Post 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.
Komin
Posts: 60
Joined: July 23rd, 2016, 1:27 pm

Re: Sync server error

Post 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
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Sync server error

Post 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.
Komin
Posts: 60
Joined: July 23rd, 2016, 1:27 pm

Re: Sync server error

Post 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
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Sync server error

Post by josh »

Can you post the api.log file from the server?
Komin
Posts: 60
Joined: July 23rd, 2016, 1:27 pm

Re: Sync server error

Post 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
Attachments
Screenshot_2017-04-18-21-47-35.png
Screenshot_2017-04-18-21-47-35.png (145.28 KiB) Viewed 7879 times
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Sync server error

Post 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.
Post Reply