Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 3.2.6
    • None
    • None
    • 1

    Description

      I had an authentication failure when connecting against Capella. The error message was a bit confusing.

      This is the error that I got from the Python SDK 3.2.6

      Traceback (most recent call last):
        File "/Users/nithishraghunandan/Code/schema-validation/validate_documents.py", line 66, in <module>
          cluster = Cluster(
        File "/Users/nithishraghunandan/.virtualenvs/schema-validation/lib/python3.9/site-packages/couchbase/cluster.py", line 577, in _init_
          super(Cluster, self)._init_(
        File "/Users/nithishraghunandan/.virtualenvs/schema-validation/lib/python3.9/site-packages/couchbase_core/client.py", line 142, in _init_
          super(Client, self)._init_(*args, **kwargs)
      couchbase.exceptions.LCB_0x405 (generated, catch: ): <RC=0x405[LCB_ERR_SDK_FEATURE_UNAVAILABLE (1029)], Couldn't create instance. Either bad credentials/hosts/bucket names were passed, or there was an internal error in creating the object, C Source=(src/bucket.c,1121)>

      The error mentions about bad credentials but I was paying more attention to the LCB_ERR_SDK_FEATURE_UNAVAILABLE (1029).

      The error message is different & much easier to debug in at least version 3.2.2 of the Python SDK.

      Error message in 3.2.2

      couchbase.exceptions.AuthenticationException: <RC=0xCE[LCB_ERR_AUTHENTICATION_FAILURE (206)], There was a problem while trying to send/receive your request over the network. This may be a result of a bad network or a misconfigured client or server, C Source=(src/bucket.c,1209)>

      Could we have better error message for authentication failure?

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jared.casey Jared Casey
            nithish.raghunandanan Nithish Raghunandanan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty