Sync User object causing changetracker to stop


Hi there

We’ve implemented a progress bar for observing pull and push replication using the .NET sdk.
I’ve found that in every case for a fresh database, the progress bar will get “stuck” at a certain point.

The log we receive is
"Puller Message: Couchbase.Lite.Replicator.Puller: Received invalid doc ID from _changes: System.Collections.Generic.Dictionary`2[System.String,System.Object]" after which it seems that further changes in the feed are processed, but we stop receiving notifications from the change tracker. This does not happen if we use GUEST access, so the issue only appears for a logged in user.

I did some digging into the actual changes feed from Couchbase Sync Gateway REST API and found an example like this :
“name”:“Object 1”
“name”:“Object 2”

Notice the second object in the result that doesn’t actually have a document and has a non-GUID identifier. This is not a document that we’ve created, but maps to the current user entity hitting the _changes endpoint which we created through the admin REST API.

The order of these results can be random, and it seems this object is causing the puller object some grief.
I think the tracker just stops at this point (when the exception is thrown in ChangeTrackerReceivedChange method), so any further items in this feed are synced to the local DB but not registered by the change tracking monitor. In this scenario I think the Status would report as IDLE 1/3.

Now, does this point to something in our configuration being incorrect? Is there a way to stop this Meta object appearing in the changefeed? Does Couchbase Lite even make use of the User object?