Exception when getting bucket


I am getting this exception.

Object reference not set to an instance of an object  at Couchbase.Core.ServiceUriProvider.GetRandomManagementUri()
at Couchbase.Management.Buckets.BucketManager.GetUri(String bucketName)
at Couchbase.Management.Buckets.BucketManager.GetBucketAsync(String bucketName, GetBucketOptions options)

My Cluster.ConnectAsync is passing “couchbase://” as first parameter so shouldn’t be any firewall issues.

Couchbase 6.6
SDK 3.1.6

Found the issue.
The password I’ve used for the ConnectAsync was incorrect and that method doesn’t throw any error…
How can I know that the credentials I’ve used are incorrect?

I made a ticket to improve on error handling.


1 Like

Thank you.
Ideally the ConnectAsync would throw an IncorrectCredentials exception

Still no way to identify incorrect credentials used?