I have a cluster of three nodes running 2.0.1 enterprise edition (build-170) set up using hostnames.
I also have a basic console app with Main method as follows:var c = new CouchbaseClientConfiguration();
c.Username = “Administrator”;
c.Password = “qwerty”;
var cluster = new CouchbaseCluster©;
var buckets = cluster.ListBuckets();
ListBuckets throws ArgumentNullException with message “Value cannot be null.\r\nParameter name: uri” and the following stack trace:
at Couchbase.Helpers.HttpHelper.doRequest(Uri uri, String verb, String username, String password, String postData, String contentType) at Couchbase.Helpers.HttpHelper.doRequest(Uri uri, String verb, String username, String password) at Couchbase.Helpers.HttpHelper.Get(Uri uri, String username, String password) at Couchbase.Management.CouchbaseCluster.ListBuckets() at TestApp.Program.Main(String args) in C:\Development\TestApp\Program.cs:line 22
I believe it has to do with the bootstrapping process within the CouchbaseCluster class. Running the same with a CouchbaseClient and pulling a view from a bucket works perfectly.
I’m using Couchbase .NET Client v126.96.36.199. I can connect through the console and I am running several systems that are successfully using the Java Client already,
Has anybody encountered this? What am I doing wrong?