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)> |