Couchbas-java-client:2.1.1 doesn't connect to a node

I have a single couchbase instance on a remote node with one bucket without password and every port open. When I’m trying to connect to it using version 2.1.1 (in Scala):

val cluster = CouchbaseCluster.create("<ip>")
val bucket = cluster.openBucket("<bucket>")

it throws an exeption:

04/08 00:30:29.525 INFO [cb-io-1-1] c.c.c.c.n.Node - Connected to Node <ip>
04/08 00:30:29.877 INFO [-computations-5] c.c.c.c.c.ConfigurationProvider - Opened bucket <bucket>
04/08 00:30:29.877 WARN [cb-io-1-2] c.c.c.c.e.Endpoint - [null][KeyValueEndpoint]: Could not connect to endpoint, retrying with delay 32 MILLISECONDS: Connection refused: localhost/
	at Method) ~[na:1.8.0_31]
	at ~[na:1.8.0_31]
	at ~[core-io-1.1.1.jar:1.1.1]
	at$AbstractNioUnsafe.finishConnect( ~[core-io-1.1.1.jar:1.1.1]
	at [core-io-1.1.1.jar:1.1.1]
	at [core-io-1.1.1.jar:1.1.1]
	at [core-io-1.1.1.jar:1.1.1]
	at [core-io-1.1.1.jar:1.1.1]
	at$ [core-io-1.1.1.jar:1.1.1]
	at$ [core-io-1.1.1.jar:1.1.1]

It looks like it’s trying to connect to localhost but I provided it with an IP address.

I’ve downgraded to 2.0.3 and it works totally fine. Couchbase version is 3.0.2-1603 Enterprise Edition (build-1603-rel)

Yes, this is a regression introduced in 2.1.1. We already released 2.1.2, can you please upgrade and see if it works?

Thanks, 2.1.2 fixes the issue. mentions 2.1.1 in maven download section, I think it may confuse someone else, just like it confused me.

@makados woops, thanks for the heads up! Will fix it now.