Gcouchbase client-side timeout exceeded

does gcouchbase still supported or obsolete…(https://docs.couchbase.com/python-sdk/2.5/async-programming.html)
connectionstring documentation also very limited… stressful to start…
(https://docs.couchbase.com/c-sdk/2.5/options.html), nothing mentioned about username and password property there…

couchbase server env

docker run -d --name db -p 8091-9000:8091-9000 -p 11209-11214:11209-11214 -p 18091-18096:18091-18096 couchbase:enterprise-6.0.2

using couchbase, working fine (on python console)

from couchbase.bucket import Bucket
cb = Bucket(‘couchbase://127.0.0.1/products’,username=‘admin’, password=‘pwd123’)

using gcouchbase

from gcouchbase.bucket import Bucket
cb = Bucket(‘couchbase://127.0.0.1/products’,username=‘admin’, password=‘pwd123’)

desperately keep throwing this,

File “src/gevent/event.py”, line 268, in gevent._event.AsyncResult.get
File “src/gevent/event.py”, line 296, in gevent._event.AsyncResult.get
File “src/gevent/event.py”, line 286, in gevent._event.AsyncResult.get
File “src/gevent/event.py”, line 266, in gevent._event.AsyncResult._raise_exception
File “/Users/harry/Dev/myFistProject/env/lib/python3.7/site-packages/gevent/_compat.py”, line 48, in reraise
raise value
couchbase.exceptions._TimeoutError_0x17 (generated, catch TimeoutError): <RC=0x17[Client-Side timeout exceeded for operation. Inspect network conditions or increase the timeout], Error getting initial connection to cluster>

Hi, the gevent support that is present was based on gevent 1.2.x, but is broken in versions >=1.3.

If you wish to use gvent with Python 2.x then installing gevent 1.2.2 should fix this.

However, unfortunately, Python 3.x is only compatible with gevent >=1.3.

We are working on a fix for gevent 1.3 but it is complicated by the old code using internal API calls, at a time when the API was still stabilising. You can track the issue here: https://issues.couchbase.com/browse/PYCBC-565

Hope that helps,

Thanks,

Ellis