Hey,
So I’m trying to build a basic API to support my company’s mobile app and handle thing like authentication, authorization and opening up some endpoints to third parties. I’m using python, and am stuck trying to get any calls past c = Bucket(‘couchbase://my_url/default’) to work. Here is my python console:
>>> from couchbase.bucket import Bucket
>>> c = Bucket(‘couchbase://my_url/default’)
>>> c
couchbase.bucket.Bucket bucket=default, nodes=[‘my_url:8091’] at 0x103817820
>>> c.upsert(“key”, “value”)
Traceback (most recent call last):
File “”, line 1, in
File “/Users/samwilks/maishameds-api/Flask/lib/python2.7/site-packages/couchbase/bucket.py”, line 353, in upsert
replicate_to=replicate_to)
couchbase.exceptions._TimeoutError_0x17 (generated, catch TimeoutError): <Key=u’key’, RC=0x17[Client-Side timeout exceeded for operation. Inspect network conditions or increase the timeout], Operational Error, Results=1, C Source=(src/multiresult.c,309)>
I’m using python 2.7.10 and Couchbase server 4.0. Sync from my mobile app through sync gateway is working fine.
Thanks!