Hi
I am getting 'Couchbase.Core.Exceptions.UnambiguousTimeoutException:'Timed out after 00:00:20 with 0 nodes ’ when i connect to my CB server . I was asked to put WaitUntilReadyAsync(20) which i did but after the wait I am getting ‘UnambiguousTimeoutException’
var host = “couchbase://mck.win.net/”;
var username = “0*******”;
var password = “*******”;
This is a windows server and should be able to connect only on my company’s network/VPN .
Any thoughts ?
try
{
var cluster = await Cluster.ConnectAsync (
host,
new ClusterOptions
{
UserName = username,
Password = password
});
await cluster.WaitUntilReadyAsync(TimeSpan.FromSeconds(30), null);
var bucket = await cluster.BucketAsync("some bucket");
await cluster.DisposeAsync();
}
catch (Exception e)
{
Console.Error.WriteLine(e.ToString());
throw;
}