Hi, I am accessing a publicly available VM, with no access to the internal ips.
I can reproduce an exception with this c# code:
var builder = new ConfigurationBuilder(); builder.AddJsonFile("config.json"); var jsonConfiguration = builder.Build(); var definition = new CouchbaseClientDefinition(); jsonConfiguration.GetSection("couchbase:basic").Bind(definition); var clientConfig = new ClientConfiguration(definition); var cluster = new Cluster(clientConfig); var bucket = cluster.OpenBucket("trips"); Console.WriteLine("got bucket.");
The call to OpenBucket will throw an exception:
NullConfigException: NodeLocator is not defined.
I rolled back to 2.7.18, and the above code passes. 2.7.20 and 21 throw the exception.
I went through the changes between the two versions:
I ran through the code, and found that if the code deleted in Src/Couchbase/IO/Services/PooledIOService.cs
is added back in, the sample code above works.
This is the deleted code that I put back in:
var connection = connectionPool.Connections.FirstOrDefault() ?? connectionPool.Acquire();
I am looking for a workaround or a fix to get around the error.
Thanks for any help.