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

Can't set custom timeout for lookup_in

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.1.8
    • None
    • None
    • None
    • 0

    Description

      Code to reproduce:

      cluster = Cluster('couchbase://127.0.0.1', ClusterOptions(PasswordAuthenticator('Administrator', 'password')))
      coll = cluster.bucket('default').default_collection()
      content = {'foo': 50}
      coll.upsert('test-doc', content)
      res = coll.lookup_in('test-doc', [subdoc.get('foo')], LookupInOptions(timeout=timedelta(milliseconds=10000)))
      print(res.content_as[int](0))
      
      

      Running the snippet above results in:

      couchbase.exceptions.InvalidArgumentException: InvalidArgumentException(<message=Expected timedelta instead of 10000000>)
      

      Attachments

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

        Activity

          People

            jared.casey Jared Casey
            Dimitris.Christodoulou Dimitris Christodoulou
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty