Search found 2188 matches

by josh
August 3rd, 2020, 7:19 pm
Forum: Synchronization
Topic: error 500 when synchronizing
Replies: 20
Views: 370

Re: error 500 when synchronizing

If they open the case on their machine, change a value and then change it back again to make CSPro think the case was modified, and then sync that will make their version of the case newer and it will be uploaded. Once they modify the case on their machine it will increment the number of changes in ...
by josh
August 3rd, 2020, 9:57 am
Forum: Synchronization
Topic: error 500 when synchronizing
Replies: 20
Views: 370

Re: error 500 when synchronizing

The case on the server is not always updated even when the uuid is the same. We also use the vector_clock to determine whether or not the server or the client has the more up to date version of the case. This comes into play only when you have multiple different devices modifying the same case. The ...
by josh
August 2nd, 2020, 9:02 am
Forum: Synchronization
Topic: error 500 when synchronizing
Replies: 20
Views: 370

Re: error 500 when synchronizing

I was thinking of this exchange https://www.csprousers.org/forum/viewtopic.php?f=11&t=3993&p=12418#p12418 but I don't see any resolution. Are there cases in the csdb file that are not already on the server based on the case UUID? If you the cases in the csdb are already on the server (server has a c...
by josh
August 1st, 2020, 8:48 am
Forum: Synchronization
Topic: error 500 when synchronizing
Replies: 20
Views: 370

Re: error 500 when synchronizing

Ari - I feel like we had this problem where some cases were not getting uploaded before with a different one of your surveys but I can't remember if or how you solved it. Timestamp is a standard unix timestamp - seconds since Jan 1, 1970. This website converts back and forth https://www.epochconvert...
by josh
July 29th, 2020, 5:02 pm
Forum: Synchronization
Topic: error 500 when synchronizing
Replies: 20
Views: 370

Re: error 500 when synchronizing

The algorithm starts by sending the first 100 cases. If the server handles that chunk of 100 cases fast and without error then it tries 200, then 400... There is an upper limit on the size of data we send but it may be set too big. We stop doubling if it takes more than 30 seconds to upload the chun...
by josh
July 29th, 2020, 11:23 am
Forum: Synchronization
Topic: error 500 when synchronizing
Replies: 20
Views: 370

Re: error 500 when synchronizing

I see this error in the api.log a few times: [2020-07-29 12:56:55] php.CRITICAL: Fatal Error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 4593380 bytes) {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\OutOfMemoryException(code: 0): Error: Allowed memory size of 6...
by josh
July 26th, 2020, 7:18 pm
Forum: Synchronization
Topic: error 500 when synchronizing
Replies: 20
Views: 370

Re: error 500 when synchronizing

500 is a general http code for an internal server error. It could be a lot of different things. We would need to see the sync.log from the client and the api.log from the server to know what is going on.
by josh
July 22nd, 2020, 4:50 pm
Forum: Synchronization
Topic: Bluetooth synchronization with logic
Replies: 9
Views: 320

Re: Bluetooth synchronization with logic

I got the application. The problem is that your logic does not call syncdisconnect() after the calls to syncconnect() and syncfile(). When you are done transferring files and data you must call syncdisconnect() otherwise the server device is still waiting for more data. After waiting 10 seconds with...
by josh
July 22nd, 2020, 2:09 pm
Forum: Android
Topic: Scanning barcode CSPro 7.4
Replies: 5
Views: 964

Re: Scanning barcode CSPro 7.4

We don't have that function right now but we will consider it. What others have done is to cover up the other barcodes on the page with your hand or another piece of paper before starting to scan.