Couchbase Questions: node.js SDK

Have a Question? Get it answered by our community

pithu's picture
Asked 5 months 1 week ago

node process do not exit until connection shutdown

Hi Couchbase,

running the following code with node.js never exits.

var Couchbase = require('couchbase');
var connection = new Couchbase.Connection({bucket: "default"}, function(err){
//
...
a4xrbj1's picture
Asked 5 months 1 week ago
Latest activity 4 months 3 weeks ago

Key exists error while using ADD (via node.js)

Hi guys,

posted my question already on Stackoverflow.com (http://stackoverflow.com/questions/22611021/key-exists-error-while-using...) but to no avail. Hopefully some expert here can...

mxav@yahoo.com's picture
Asked 6 months 2 weeks ago
Latest activity 6 months 2 weeks ago

[couchnode] How does couchnode handle unavailability from one or some nodes of the couchbase cluster

Hello,

We are using couchnode for a couple of months now and we really like it, but we have experienced an issue a couple of days ago while adding a new node to an existing couchbase cluster and we would like to understand better the way couchnode handles unavailability from one or some...

saransh2012's picture
Asked 6 months 3 weeks ago
Latest activity 6 months 1 week ago

How is buffer stored?

I am trying to use crypt module of node.js to encrypt the password of the user. The function return me a buffer which I store in couchbase. I want to know how does the node SDK of couchbase store the buffers? When I am trying to verify if the passwords are correct or not, it doesn't match....

christoph's picture
Asked 7 months 2 weeks ago
Latest activity 7 months 1 week ago

Connection to multiple nodes

Hi,

I tried the following code;

var db = new couchbase.Connection({
host: ["<host1>:8091","<host2>:8091"]
bucket:'default',
}

Now, if I shut down host1, than I get a connection. If I shut down host2, than the...

christoph's picture
Asked 7 months 2 weeks ago

Connection to multiple nodes

Hi,

I tried the following code;

var db = new couchbase.Connection({
host: [":8091",":8091"]
bucket:'default',
}

Now, if I shut down host1, than I get a connection. If I shut down host2, than the connection fails.

BTW: The following works:...

jonathonl's picture
Asked 7 months 3 weeks ago
Latest activity 6 months 4 weeks ago

Expiry for getMulti?

Is there no way to do a touch and get with getMulti? According to the docs, the (singular) get method has "format" and "expiry" as possible options but getMulti has "format" and "spooled".

What's the point of a non-spooled option anyway? If you want separate callbacks for each document,...

evantahler's picture
Asked 8 months 14 hours ago
Latest activity 5 months 6 days ago

getAndLock for node library?

In previous versions of the node library, getAndLock() was implemented.... why was it removed?

saransh2012's picture
Asked 8 months 1 day ago
Latest activity 8 months 16 hours ago

Best Mark-up Language suited for couchbase

I want to store text in couchbase for blogs where users are allowed to use different fonts, size, and colour in text in the text. Therefore I was looking for a markup language to store the text in couchbase.

What are the best mark-up language to use with couchbase?

Will it still...

Ryan Clark's picture
Asked 8 months 2 days ago
Latest activity 4 months 1 week ago

Connection NOT persisting.

When connecting to my couchbase cluster I seem to be able to make request successfully for a few minutes and then all request begin to fail with the following:

getMulti Error:
{ [Error: At least one of your operations failed, check the results object for more information.] code:...

Pages