Hi! I am trying to set up certificate auth and access bucket/collection but getting timeout
error. I also have ID and Password setup as well. I am not sure what I am missing.
I referred this page Authentication | Couchbase Docs
cert, err := tls.LoadX509KeyPair("test.cert.pem", "test.key.pem")
if err != nil {
panic(err)
}
opts := gocb.ClusterOptions{
Authenticator: gocb.CertificateAuthenticator{
ClientCertificate: &cert,
},
TimeoutsConfig: gocb.TimeoutsConfig{
ConnectTimeout: 50000000000,
},
}
cluster, err := gocb.Connect("couchbases://host.test.com", opts)
if err != nil {
panic(err)
}
err = cluster.Bucket("test").WaitUntilReady(5*time.Second, nil)
if err != nil {
panic(err)
}
for some reason it panics within that waituntilready
function
panic: unambiguous timeout | {"InnerError":{"InnerError":{"InnerError":{},"Message":"unambiguous timeout"}},"OperationID":"WaitUntilReady","Opaque":"","TimeObserved":5000416562,"RetryReasons":["NOT_READY","CONNECTION_ERROR"],"RetryAttempts":17,"LastDispatchedTo":"","LastDispatchedFrom":"","LastConnectionID":""}