Couchbase 5.5 NodeJS Bootstrapping with Active Compression

Hello,

Bootstrapping against a Couchbase 5.5 bucket with Active Compression turned on and enable ‘active’ compression on the SDK does not work. Below is the error:

/Users/sanupin/Documents/workspace/CouchbaseNodejsTest/node_modules/couchbase/lib/bucket.js:203
this._cb = new CBpp(bucketDsn, bucketUser, bucketPass);
^
CouchbaseError: Argument passed to cntl was badly formatted
at new Bucket (/Users/sanupin/Documents/workspace/CouchbaseNodejsTest/node_modules/couchbase/lib/bucket.js:203:14)
at Cluster.openBucket (/Users/sanupin/Documents/workspace/CouchbaseNodejsTest/node_modules/couchbase/lib/cluster.js:189:16)
at Object. (/Users/sanupin/Documents/workspace/CouchbaseNodejsTest/loadTestNew.js:10:22)
at Module._compile (internal/modules/cjs/loader.js:654:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:665:10)
at Module.load (internal/modules/cjs/loader.js:566:32)
at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
at Function.Module._load (internal/modules/cjs/loader.js:498:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:695:10)
at startup (internal/bootstrap/node.js:201:19)

Seems to be erroring out at the simple bucket bootstrapping call :
var bucket = cluster.openBucket('application');

The connection string is below :

var cluster = new couchbase.Cluster('couchbase://172.31.38.159,172.31.38.160,172.31.38.161,172.31.38.162,172.31.38.163?compression=active');

Hey @satish.anupindi,

You should be using compression=on or compression=force rather than compression=active. Here is an example:
var cluster = new couchbase.Cluster(‘couchbase://172.31.38.159,172.31.38.160,172.31.38.161,172.31.38.162,172.31.38.163?compression=on’);

Cheers, Brett

1 Like