Uploaded image for project: 'Couchbase Python Client Library'
  1. Couchbase Python Client Library
  2. PYCBC-930

Using `cert_path=` in ClusterOptions hit inner_cause='cert_path' is an invalid keyword argument for this function, C Source=(src/bucket.c,1047)

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0, 3.0.1
    • 3.0.1
    • library
    • None
    • 1

    Description

      Passing the cert_path argument when bootstrapping the application:

      cluster = Cluster("couchbases://10.112.201.101",ClusterOptions(PasswordAuthenticator("Administrator","password", cert_path="/home/hbq/dev/pythonsdk/ca.cert")))
      

      Will result in this error:

      2020-05-18 14:56:40 INFO     Initializing Couchbase logging. lcb_version=('3.0.1', 0)
      Traceback (most recent call last):
        File "qvc.py", line 21, in <module>
          cluster = Cluster("couchbases://10.112.201.101",ClusterOptions(PasswordAuthenticator("Administrator","password", cert_path="/home/hbq/dev/pythonsdk/ca.cert")))
        File "/usr/local/lib/python3.6/dist-packages/couchbase/cluster.py", line 434, in __init__
          super(Cluster, self).__init__(connection_string=str(self.connstr), _conntype=_LCB.LCB_TYPE_CLUSTER, **self._clusteropts)
        File "/usr/local/lib/python3.6/dist-packages/couchbase_core/client.py", line 141, in __init__
          super(Client, self).__init__(*args, **kwargs)
      couchbase.exceptions.InvalidArgumentException: <Bad/insufficient arguments provided, inner_cause='cert_path' is an invalid keyword argument for this function, C Source=(src/bucket.c,1047)>
      

      The same error occurs when using CertAuthenticator:

      2020-05-18 15:15:35 INFO     Initializing Couchbase logging. lcb_version=('3.0.1', 0)
      Traceback (most recent call last):
        File "qvc.py", line 22, in <module>
          cluster = Cluster("couchbases://10.112.201.101",ClusterOptions(CertAuthenticator("Administrator","password", "/home/hbq/dev/pythonsdk/cert.pem")))
        File "/usr/local/lib/python3.6/dist-packages/couchbase/cluster.py", line 434, in __init__
          super(Cluster, self).__init__(connection_string=str(self.connstr), _conntype=_LCB.LCB_TYPE_CLUSTER, **self._clusteropts)
        File "/usr/local/lib/python3.6/dist-packages/couchbase_core/client.py", line 141, in __init__
          super(Client, self).__init__(*args, **kwargs)
      couchbase.exceptions.InvalidArgumentException: <Bad/insufficient arguments provided, inner_cause='cert_path' is an invalid keyword argument for this function, C Source=(src/bucket.c,1047)>
      

      Attachments

        For Gerrit Dashboard: PYCBC-930
        # Subject Branch Project Status CR V

        Activity

          There are no comments yet on this issue.

          People

            Ellis.Breen Ellis Breen
            tin.tran Tin Tran (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty