Hi Jens,

Sure, sorry about that.

I'm not able to replicate from a CBLListener with authentication turned on. 
Works great with authentication turned off.

CBLListener code:

self.listener = [[CBLListener alloc] initWithManager:[CBLManager 
sharedInstance] port:52021];

self.listener.requiresAuth = YES;

[self.listener setPasswords:@{[self authenticatorUsername] : [self 
authenticatorPassword]}];

[self.listener setBonjourName:[self myUUID] type: [self bonjourType]];

[self.listener start:&error]

Client code:

NSURL *serviceURL = [NSURL URLWithString:[NSString stringWithFormat:@
"http://%@:%li";, service.hostName, service.port]];

NSURL *databaseURL = [NSURL URLWithString:[[self database] name] 
relativeToURL:serviceURL];

NSURLComponents *components = [NSURLComponents componentsWithURL:databaseURL 
resolvingAgainstBaseURL:YES];

components.user = [self authenticatorUsername];

components.password = [self authenticatorPassword];

self.pullReplication = [[self database] createPullReplication:components.URL
];

self.pullReplication.continuous = self.isContinuous;

self.pullReplication.customProperties = @{@"websocket": @NO};

self.pullReplication.filter = @"exceptUUIDAndMinUpdatedAt";

self.pullReplication.filterParams = @{@"exceptUUID": uuid, @"minUpdatedAt": 
[CBLJSON JSONObjectWithDate:minUpdatedAt]};


[self.pullReplication start];

Logs from the client 
here: https://gist.github.com/joshblour/59b76b2531dd0f2eb3b4
Logs from the CBLListener 
here: https://gist.github.com/joshblour/163a9d101f1f4b10dc56

The error seems to happen on the CBLListener side: 

*CBLListener: Login attempted for user 'p2p_v1'*

*CBLListener: GET 
/proximator/_local/e95ce455ab12e1261e4f6b592ee4cc8f478c8eaa*

*CBLListener:     Response[GET 
/proximator/_local/e95ce455ab12e1261e4f6b592ee4cc8f478c8eaa] --> 404*



On Thursday, June 11, 2015 at 8:12:34 PM UTC+2, Jens Alfke wrote:
>
>
> On Jun 11, 2015, at 9:43 AM, Yonah Forst <yonah...@gmail.com <javascript:>> 
> wrote:
>
> Were you ever able to re-enable credentials? I'm getting the exact same 
> error (1005 on the client side and 404 on the CBLListener side). It works 
> great when I disable the credentials...
>
>
> You’re replying to a thread that’s over 2 years old, so whatever was 
> described there is likely to be irrelevant now.
>
> Could you start over and describe your problem?
>
> —Jens
>

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mobile-couchbase+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/27068233-b3a0-4181-b821-8ee9d5060862%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to