Couchbase Questions: node.js SDK

Have a Question? Get it answered by our community

christopher.mina's picture
Asked 5 days 14 hours ago
Latest activity 2 days 13 hours 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 5 days 15 hours ago
Latest activity 2 days 9 hours 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 week 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 week 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 3 weeks 3 days 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 3 weeks 4 days 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 4 weeks 10 hours 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:

...
user127's picture
Asked 1 month 3 hours ago

Where Is The Options Parameter To getMulti Documented?

The getMulti() docs I can find mention the options parameter, but do not enumerate what those options are. Maybe I'm looking i the wrong place?

r3p7il3's picture
Asked 2 months 4 days ago
Latest activity 1 month 1 week ago

getMulti returns error when it fails to find a key

When I do a getMulti (or a get for that matter) for a key that doesn't exist, it's returning an error:
[Error: At least one of your operations failed, check the results object for more information.] code: 4101

And in the missing key:
error: { [Error: The key does not exist on...

teriyaki's picture
Asked 2 months 5 days ago
Latest activity 4 weeks 9 hours ago

node-gyp compile error on osx

try to install couchbase nodejs client on osx

sudo npm install couchbase

It reported error:

npm WARN cannot run in wd couchbase@1.2.4 (node-gyp rebuild 2> builderror.log) || (exit 0) (wd=/Users/mymac/node_modules/couchbase)

then I went to node_modules/couchbase and...

Pages