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
    • Resolution: Fixed
    • Major
    • 3.0.1
    • 3.0.0, 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

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

        Activity

          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