Exception when getting bucket

Hello,

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://127.0.0.1” as first parameter so shouldn’t be any firewall issues.

Environment:
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.

Jeff

1 Like

Thank you.
Ideally the ConnectAsync would throw an IncorrectCredentials exception

Still no way to identify incorrect credentials used?