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

Improve string for SSL cannot verify

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • None
    • None
    • None
    • 1

    Description

      Testing against a TLS cluster, it fails simply, but the english message is pretty ambiguious.

      $ python testing.py
      Traceback (most recent call last):
        File "testing.py", line 10, in <module>
          ClusterOptions(PasswordAuthenticator('username', 'password'))
        File "/Users/ingenthr/.pyenv/versions/3.7.5/lib/python3.7/site-packages/couchbase/cluster.py", line 508, in connect
          return cls(connection_string, options, **kwargs)
        File "/Users/ingenthr/.pyenv/versions/3.7.5/lib/python3.7/site-packages/couchbase/cluster.py", line 491, in __init__
          super(Cluster, self).__init__(connection_string=str(self.connstr), _conntype=_LCB.LCB_TYPE_CLUSTER, **self._clusteropts)
        File "/Users/ingenthr/.pyenv/versions/3.7.5/lib/python3.7/site-packages/couchbase_core/client.py", line 159, in __init__
          self._do_ctor_connect()
        File "/Users/ingenthr/.pyenv/versions/3.7.5/lib/python3.7/site-packages/couchbase/cluster.py", line 511, in _do_ctor_connect
          super(Cluster,self)._do_ctor_connect(*args,**kwargs)
        File "/Users/ingenthr/.pyenv/versions/3.7.5/lib/python3.7/site-packages/couchbase_core/client.py", line 168, in _do_ctor_connect
          self._connect()
      couchbase.exceptions.CouchbaseException: <RC=0x3EB[LCB_ERR_SSL_CANTVERIFY (1003)], 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)>
      

      It'd be an improvement for this string to be clear that the TLS cert verification is the issue.

      Attachments

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

        Activity

          People

            david.kelly David Kelly (Inactive)
            ingenthr Matt Ingenthron
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty