I’ve installed a new couchbase server and attempted to connect to it when the following python code
from couchbase.cluster import Cluster
from couchbase.auth import PasswordAuthenticator
from couchbase.options import (ClusterOptions, ClusterTimeoutOptions, QueryOptions)
print("Connection Test")
auth = PasswordAuthenticator("Administrator", "password");
cluster = Cluster("couchbase://localhost:8091", ClusterOptions(auth))
User and password is correct. I have even tested the server using curl command.
curl -u Administrator:password http://localhost:8091/pools/default
The server responds with the expected output. When I try to execute the python code I get the following error
couchdb/virtualenv3/lib/python3.8/site-packages/couchbase/cluster.py", line 105, in _connect
raise ErrorMapper.build_exception(ret)
couchbase.exceptions.RequestCanceledException: RequestCanceledException(<ec=2, category=couchbase.common, message=request_canceled (2), C Source=/home/ec2-user/workspace/python/sdk/python-packaging-pipeline/py-client/src/connection.cxx:199>)
This is pretty much a basic hello world test and it fails. Looking for ideas on what to look into.
Python couchbase version 4.1.6
Couchbase version: Community Edition 7.1.1 build 3175
OS version: Ubuntu 20.04