On Aug 29, 2014, at 12:22 PM, Todd Freese <to...@filmworkers.com> wrote:I'm getting the error in status, but lastError is always null. This was working before I started using credentials. If I switch back to putting the username and password in the URL, I get the correct 401 error in lastError.
_pull = [self.database createPullReplication:[NSURL URLWithString:cblSyncURL]];
_pull.credential = credential;
_push = [self.database createPushReplication:[NSURL URLWithString:cblSyncURL]];
_push.credential = credential;
Looks like it is a bug as it is reproducible. And if I don't use an NSURLCredential and instead pass the username and password in the URL, it works fine.
I will file a bug.
Todd