Couchbase Questions: node.js SDK

Have a Question? Get it answered by our community

pithu's picture
Asked 6 days 20 hours ago

CAS de/serialization not possible

Using a de-serialized/ serialized CAS value of a couchbase document for a set operation produces an error in couchnode. The Error is { [Error: Bad CAS] code: 4098, at: { '0': 84213760, '1': 193011187 } }.

The following code snippet reproduces the error:

...
Val Entin's picture
Asked 1 week 3 days ago
Latest activity 6 days 22 hours ago

Is there a method to insert multiple documents in one query?

Hi,

I'm lookin for a way with couchebase-node to insert multiple documents at the same time.

Like that I don't have to wait each fallback before inserting the other document or create a recursive function:

This is an example of what I'm currently doing:...

tito's picture
Asked 2 weeks 3 hours ago

How to open db connections when clustering a node app?

Hello,

Assuming the following snippet:

var couchbase = require('couchbase');
 
var bucket = new couchbase.Connection({
    'bucket': 'default',
    'host': '127.0.0.1:8091'
}, function (err
...
christopher.mina's picture
Asked 4 weeks 1 day ago
Latest activity 3 weeks 4 days ago

2.0.0-Beta - N1QL Query object not instantiated properly

In the current source code for 2.0.0-Beta, the N1QL Query object is not instantiated properly, the raw Query string is ignored and replaced with an empty str: str = ''.

I have created a new pull request for this, found: https://...

christopher.mina's picture
Asked 4 weeks 1 day ago
Latest activity 3 weeks 4 days ago

2.0.0-Beta - multiple CAS values

I'm making a standard #get(id) call against a bucket and the return response.value is good, however, the CAS value is an array with 2 values, always.

I'm on Couchbase Version 2.5.1-1083-rel, Mac OSX.

If this is intentional, can you please explain how to use the two values in the...

casmeiron's picture
Asked 1 month 3 days ago

NodeJS couchbase@2.0.0-beta error with view query

Hi,

Im trying to execute a query using couchbase@2.0.0-beta for NODEJS and the server is 3.0 beta. The follow error occurs whatever view query I try:

Floating point exception: 8

No stacktraces whatsoever, no more information, nothing!

The query invocation is quite...

casmeiron's picture
Asked 1 month 3 days ago

QueryView TypeError Problem

Hi,

We've trying the new couchbase nodejs client (2.0.0) but we cannot use queryview.

In bucket.js, line 591 we have the follow:

if (query instanceof ViewQuery.Default) {

It's failing, saying query isn't of type ViewQuery.Default.

TypeError: First argument...

jrgcampuzano's picture
Asked 1 month 2 weeks ago

how to call a spatial view using node.js?

Hi there:

I'm trying to get a spatial view, it seems that the couch can not query. The error be delayed after around a minute is the following :

[Error: Unknown REST Error]

any suggestions would be appreciated.

Here's the code I'm using node.js...

teriyaki's picture
Asked 1 month 2 weeks ago

Is it possible to keep the connection of couchbase?

I use the code below to query from couchbase

var KDatabase = function() {

};
KDatabase.prototype.query1 = function(userName) {
var couchbase = require('couchbase');
var db = new couchbase.Connection({

host: "...

David Rousselie's picture
Asked 1 month 3 weeks ago

removeMulti error result not expected

Hello,

I have an unexpected behavior from removeMulti with {persist_to: 1} which report an error "The key does not exist on the server" when the key actually exist and it actually remove the key.

Here is the code which return an error:

...

Pages