Hi Adam,
Thanks for your help with this! The issue here is a duplicate of this so you can close out that issue and we’ll just all look at this one.
I’m going to get you the request/response for receiving the null value for the last sequence value, but in the meantime I wanted to keep the conversation going by responding here.
I’ll try and give you some background about how we kick off our one-shot replicator. We store all of the information our application requires in a data bucket in Couchbase. Before the user can look at the content they wish to view they have to be given access. You can see this in the AUTH log generated (in the other thread). Immediately after this finishes we perform a one-shot pull of the data. As noted our initial replicator gets shutdown because of the GRANT process. The issue is that we don’t know how to proceed at this point. We do not want to keep attempting one-shot pulls from the Sync Gateway hoping that the channel cache has been updated. What is a reliable way to perform the one-shot pull?
If the supported way is to use the last sequence number, then let’s track down why the null value is being passed back for it. As mentioned I’ll get you that request/response as soon as I can.