Description
From the forums: https://forums.couchbase.com/t/the-connection-to-the-cluster-does-not-throw-exceptions-when-the-credentials-are-wrong/29929
Task<ICluster> cluster = null; |
try
|
{
|
ClusterOptions options = new ClusterOptions() |
{
|
UserName = pConfig.user,
|
Password = pConfig.password,
|
ConnectionString = pConfig.server
|
};
|
|
cluster = Cluster.ConnectAsync(options);
|
cluster.Wait();
|
}
|
catch (Exception e) |
{
|
Log.Error(e.Message);
|
return null; |
}
|
This is confirmed running the code above with invalid credentials or host.
Attachments
Issue Links
- is duplicated by
-
NCBC-3123 BucketNotFoundException thrown when Cluster.BucketAsync fails
- Resolved