我在远程的couchbase bucket'SAMPLE'内创建了json文档'test'。 网址为couchbase是http://testcouch.employee.com:8091/index.html - IP是沙发124.10.0.2couchbase java身份验证失败问题
用户名:helloUser
密码沙发:helloUser ++
Connection.java
static CouchbaseEnvironment couchbaseEnvironment = DefaultCouchbaseEnvironment.builder()
.queryTimeout(10000)
.build();
static Cluster cluster = CouchbaseCluster.create(couchbaseEnvironment,"http://testcouch.employee.com");
static Bucket bucket = cluster.openBucket("SAMPLE","helloUser++");
尝试连接时收到以下错误:
WARNING: [null][KeyValueEndpoint]: Could not connect to endpoint, retrying with delay 32 MILLISECONDS: com.couchbase.client.core.endpoint.kv.AuthenticationException: Authentication Failure at com.couchbase.client.core.endpoint.kv.KeyValueAuthHandler.checkIsAuthed(KeyValueAuthHandler.java:288) at com.couchbase.client.core.endpoint.kv.KeyValueAuthHandler.channelRead0(KeyValueAuthHandler.java:173)