Код
Replicator replicator = null;
try {
CouchbaseLite.init(context);
Database.setLogLevel(LogDomain.ALL, LogLevel.ERROR);
DatabaseConfiguration databaseConfiguration = new DatabaseConfiguration();
Database database = new Database("company-3", databaseConfiguration);
URLEndpoint target = new URLEndpoint(new URI("ws://*****:5984/company-3/"));
ReplicatorConfiguration config = new ReplicatorConfiguration(database, target);
config.setAuthenticator(new BasicAuthenticator("username", "password"));
replicator = new Replicator(config);
replicator.start();
} catch (CouchbaseLiteException e) {
e.printStackTrace();
} catch (URISyntaxException e) {
e.printStackTrace();
}
Ошибка ниже при подключении сервера CouchDB с помощью Replicator к android клиенту
ReplicatorChange{replicator=Replicator{@84dac64,<*>,Database{@58eedf6, name='company-3'},URLEndpoint{url=ws:/ /*****:5984/company-3/}], status=Status{activityLevel=CONNECTING, progress=Progress{completed=0, total=0}, error=CouchbaseLiteException{CouchbaseLite,10404,'Object Not Found'}}}