I’m seeing two errors in the Android log that seem to be preventing my device’s database from fully syncing with server. This means that whenever I start replication, I see a ton of activity where it’s trying to sync, but never manages to resolve the errors, leading to high network usage (I don’t particularly want to disable replication on mobile networks).
The errors fall into two classes. The first is a problem with attachments, and the error is very similar to one I saw in the forums that was apparently fixed in Sync Gateway 1.2 (which we’re using). A typical log entry is:
09-15 13:24:36.705 12570-10166/com.totl.eventtracker W/Sync: {error=bad_request, id=9f704700-50ca-4e8e-888f-d12ba34ef7be, reason=Missing digest in stub attachment “thumbnail”, status=400}: _bulk_docs got an error: com.couchbase.lite.replicator.PusherInternal$4@3b8b890
The other error is a MIME type one and looks like this:
09-15 13:24:45.375 12570-10236/com.totl.eventtracker W/Sync: {error=bad_content_type, id=da6b589d-6bf2-40d3-a932-ef786d980ebc, reason=Invalid content type text/plain, status=415}: _bulk_docs got an error: com.couchbase.lite.replicator.PusherInternal$4@17ee567
There are MANY examples of this in the DB.
The Couchbase Lite DB was built under version 1.2.1, but I’ve upgraded to 1.3.0 now, with no change to problems mentioned above.
A general question leading from this issues is: is there any way to effectively clear the sync jobs for cases that seem to be unrecoverable? And how would I even know that the problem exists, outside of what I see in the log?