We were previously using iOS CBL 1.0.3.1 and recently upgraded to iOS CBL 1.1.1. Now with certain documents with attachments we started seeing errors like this which stop the replication. We are running CouchDB version 1.6.1 for our couch server.
2015-10-24 11:21:20.188 AppName[6574:1993505] WARNING: CBL_Puller[https://username:*****@hostname:6984/database] failed to write {namespace/doc_id #198-b707c081c57791deb57a366aee25c141}: status=491
2015-10-24 11:21:20.189 AppName[6574:1993505] Sync: CBL_Puller[https://username:*****@hostname:6984/database] Progress: set error = 400 Invalid attachment
2015-10-24 11:21:20.190 AppName[6574:1993505] Sync: CBL_Puller[https://username:*****@hostname:6984/database] STOPPING...
Now if you query the CouchDB for `namespace/doc_id` I get:
"_id":"namespace/doc_id","_rev":"366-8fc5ffd358688535b06788b5872793bc”,
If I query CouchDB for `namespace/doc_id` with `?revs_info=true` I get back only 10 revisions as it was configured.
So why is CBL complaining about problems with `kCBLStatusBadAttachment` for revisions like 75-100 revisions prior to the latest? Also when using CBL 1.0.3.1 with the same exact database this issue doesn't occur and everything replicates as expected. Any suggestions of how to solve this problem would be greatly appreciated as so far none of the workarounds I've tried have yielded a solution. Thanks.