Cause of Error Timeout in CouchDB

I am using CouchDB for my iOS application.

Below is my application stream,

  • When my application launches for the first time, it replicates the remote database using xyz: a ... @ mmm.iriscouch.com / databasename.

  • if replication is successful, everything works as expected, but sometimes replication fails. In this case, I get the following error with the log

    1> OTHER: {'EXIT',{error,timeout,#Ref<0.0.0.506>}} 

    and it will not replicate until I uninstall the application and reinstall the application on the device / simulator. is there a callback / delegate for this?

    • Somehow, when I try to synchronize with an empty database, I never get an error, when I have contents in the database, I get an error!

      It is also difficult to reproduce on the simulator, while on the iPad the appearance is 90%.

  • I put the sample project in the git hub https://github.com/interactiveblueprints/CouchDBSyncTest (for couchDB user password, please read readme.txt)

    • this sample code is just a modification of PhotoLocations. Sample application (https://github.com/couchbaselabs/iOS-Demo-PhotoLocations), but modified according to my requirement.
  • I also included error logs at http://dl.dropbox.com/u/35814355/ErrorLog.rtf

Waiting for an answer, Krishna.

+4
source share
1 answer

I tried with your sample and updated "Couchbase.framework" to the latest, from https://github.com/couchbaselabs/CouchCocoa , and now the problem seems to be resolved, maybe it was a bug in the previous version. it now seems that the database is trying to restart by itself. and replication becomes smoother and faster.

+2
source

Source: https://habr.com/ru/post/1387572/


All Articles