I have set up two Couchbase 4.0 beta “single node clusters” on Azure. One is running on Windows, and one on Ubuntu.
The Ubuntu one has enough azure Endpoints configured that I can connect to it via the C# client and talk to it fine.
I have configured the following endpoints, as public TCP ports: 8091, 8092, 8093, 11210, 11211
C# clients can talk to it fine, but when I use Python and try to talk to that endpoint, it gives me an error code:
(<class ‘couchbase.exceptions._NetworkError_0x10 (generated, catch NetworkError)’>, _NetworkError_0x10 (generated, catch NetworkError)({‘rc’: 16, ‘message’: “HTTP Request failed. Examine ‘objextra’ for full result”, ‘objextra’: ViewResult<RC=0x10[Generic network failure. Enable detailed error codes (via LCB_CNTL_DETAILED_ERRCODES, or via detailed_errcodes
in the connection string) and/or enable logging to get more information], Value=None, HTTP=0>, ‘csrc_info’: (‘src\http.c’, 140)},), <traceback object at 0x02D3F288>)
One difference apparent to me is that the Python connection bucket string is in this form:
couchbase://host/default
As python code, I’m creating a bucket like this:
c = Bucket(“couchbase://host/default”)
whereas the .NET connection string is in this form:
And I open a connection to the server, then open a bucket as a second line of code.
One appears to be a REST API endpoint as a URL (8091 is the REST API port) and the other appears to be a “bucket URI syntax”.