I’ve successfully hosted my docker container in the cloud and via a browser I can hit http://servername.cloud.com/pools. Internally, the cloud service maps to port 8091 and it does exactly what I expect it to do. The problem is, the .NET Client SDK seems to always append :8091 to the URL no matter what I try which fails. The question is, how can I force the Client to NOT add :8091?
Here’s my code:
var cluster = new Cluster(
new ClientConfiguration
{
Servers = new List<Uri> { new Uri("http://servername.cloud.com/pools") },
Serializer = () =>
{
var serializerSettings = new JsonSerializerSettings();
serializerSettings.ContractResolver = new DefaultContractResolver();
return new Couchbase.Core.Serialization.DefaultSerializer(serializerSettings, serializerSettings);
}
}
);
var authenticator = new PasswordAuthenticator(username, password);
cluster.Authenticate(authenticator);
try
{
var bucket = cluster.OpenBucket("BucketName");
}
catch(Exception ex)
{
Console.WriteLine(ex);
}