Collection.get failing SDK v3.2.0, Ubuntu 20.04, couchbase community 7.0

We have been using v3.0.10 of the Python SDK. I am attempting to upgrade to 3.2.0, but my various collection calls are now failing - no change to code. So, for example, this query works with 3.0.10 but fails with 3.2.0
result = collection.get(‘0629a077-80e0-4fa2-8302-fd321e445266’)
Traceback (most recent call last):
File “”, line 1, in
File “/home/bvadm2/venv2/lib/python3.8/site-packages/couchbase/”, line 273, in wrapped
return func(self, *args, **kwargs)
File “/home/bvadm2/venv2/lib/python3.8/site-packages/couchbase/”, line 505, in wrapped
x, options = func(*args, **kwargs)
File “/home/bvadm2/venv2/lib/python3.8/site-packages/couchbase/”, line 497, in get
return self._get_generic(key, kwargs, options)
File “/home/bvadm2/venv2/lib/python3.8/site-packages/couchbase/”, line 461, in _get_generic
x = CoreClient.get(self.bucket, key, **opts)
File “/home/bvadm2/venv2/lib/python3.8/site-packages/couchbase_core/”, line 409, in get
return super(Client, self).get(*args, **kwargs)
couchbase.exceptions.CouchbaseException: <Key=‘0629a077-80e0-4fa2-8302-fd321e445266’, RC=0x407[LCB_ERR_KVENGINE_INVALID_PACKET (1031)], Operational Error, Results=1, C Source=(src/multiresult.c,312), Context={‘status_code’: 4, ‘opaque’: 11, ‘cas’: 0, ‘key’: ‘0629a077-80e0-4fa2-8302-fd321e445266’, ‘bucket’: ‘workflows’, ‘collection’: ‘instances’, ‘scope’: ‘_default’, ‘context’: ‘Request must include key’, ‘ref’: ‘’, ‘endpoint’: ‘’, ‘type’: ‘KVErrorContext’}, Tracing Output={“0629a077-80e0-4fa2-8302-fd321e445266”: {“debug_info”: {“FILE”: “src/callbacks.c”, “FUNC”: “value_callback”, “LINE”: 840}}}>

For what its worth, this query DOES work with v3.2.0:
rows = cluster.query(“SELECT * FROM workflows._default.instances WHERE meta().id = $1”, QueryOptions(positional_parameters=[‘0629a077-80e0-4fa2-8302-fd321e445266’]))

Of course, our real problem is that we need to use the collection.replace() method to completely replace a document and that fails – all collection methods are failing in 3.2.0

Any insight/assistance would be greatly appreciated!!

Lee Roder

Hello @lroder thanks for reaching out, which Couchbase server version are you using ?

@jcasey can you please assist ?

Hi @lroder – To add more details to @AV25242 's comment, are you using the recently GA’d version of Couchbase Server Community 7.0?

If you go to the UI, then select the Dashboard tab on the left, in the top right corner of the screen you should see Community Edition 7.0.0 build 5302 (see screen shot below). If you are using a prior build version (i.e. the beta release) I would expect to see the LCB_ERR_KVENGINE_INVALID_PACKET arise.

Screen Shot 2021-08-28 at 11.24.46 AM

I hope this helps.