The following code will cause the application to crash:
Looking into this further, it seems that this is caused by a mangled connection string, from additional debug information:
This happens because we construct the connstr at https://github.com/couchbase/couchbase-python-client/blob/master/couchbase/connstr.py#L141 and unconditionally put the ? on the end.
Later we then try to tack the bucket and additional ipv6 query parameter in the Admin constructor: https://github.com/couchbase/couchbase-python-client/blob/master/couchbase/admin.py#L83.
I think the best way to handle this is to not attempt to add the bucket or extra parameter if the connection_string kwarg has been passed to the constructor.
If you experience this issue, then you can create the Admin object manually as covered in https://developer.couchbase.com/documentation/server/5.1/sdk/python/managing-clusters.html.
|For Gerrit Dashboard: PYCBC-496|
|95314,11||PYCBC-496: Fix crash when calling Cluster.cluster_manager()||master||couchbase-python-client||Status: MERGED||+2||+1|