AuthenticationFailureException is suppressed if invalid credentials are supplied

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.

 

Environment

None

Gerrit Reviews

None

Release Notes Description

None

Activity

Show:

Jeffry Morris March 24, 2021 at 10:02 PM

The AuthenticationFailureException that is thrown in ClusterContext.BootstrapGlobalAsync should be bubbled up and not suppressed and logged.

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Story Points

Components

Fix versions

Affects versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created March 24, 2021 at 9:33 PM
Updated April 18, 2022 at 9:47 PM
Resolved April 18, 2022 at 8:31 PM
Instabug