Connection to remote bucket named not 'default' in C Library

dear support~ ^^

I’m using C Library for couchbase server.

1> to local ‘default bucket’ or ‘named bucket’ ==> OK
create_options.v.v0.host = “localhost:8091”;

2> to remote ‘default’ bucket ==> OK
create_options.v.v0.host = “remove Ip:8091”;
create_options.v.v0.user = “default”;
create_options.v.v0.bucket = “default”;

3> to remote named’ bucket ==> LCB_NETWORK_ERROR
create_options.v.v0.host = “remove Ip:8091”;
create_options.v.v0.user = “custom-name”;
create_options.v.v0.bucket = “custom-name”;

I know bucket name is identical only in ‘configure bucket’.

Hi chaseChoi,

You need to specify the bucket password when connecting to any bucket other than the default:

create_options.v.v0.passwd = "secret";

thanks ^^