# Node.js Client

**URL:** https://discuss.aerospike.com/c/client-libraries/node-js-client/13.md?page=1

[Latest](https://discuss.aerospike.com/latest.md) · [Categories](https://discuss.aerospike.com/categories.md) · [Tags](https://discuss.aerospike.com/tags.md)

**Page:** 2

---

## [Weird error happening randomly with Node client- Bad file descriptor as\_socket\_read\_limit line 432](https://discuss.aerospike.com/t/weird-error-happening-randomly-with-node-client-bad-file-descriptor-as-socket-read-limit-line-432/3865)

<div class="topic-metadata">

**Author:** [@sanchit](https://discuss.aerospike.com/u/sanchit)\
**Replies:** 4\
**Last updated:** [February 24, 2017, 12:25pm UTC](https://discuss.aerospike.com/t/weird-error-happening-randomly-with-node-client-bad-file-descriptor-as-socket-read-limit-line-432/3865 "2017-02-24T12:25:58Z")

</div>

Aerospike Version: Aerospike Community Edition build 3.6.3 We have a node server using Aerospike as DB. The load on the server is minimal. We have a monitoring service which monitors one of the API by repeatedly calling …

---

## [Client queries using multiple filters](https://discuss.aerospike.com/t/client-queries-using-multiple-filters/1071)

<div class="topic-metadata">

**Author:** [@shripadk](https://discuss.aerospike.com/u/shripadk)\
**Replies:** 5\
**Last updated:** [January 26, 2017, 9:36pm UTC](https://discuss.aerospike.com/t/client-queries-using-multiple-filters/1071 "2017-01-26T21:36:12Z")

</div>

I have created two secondary indexes (customer and orderID). It works well with single filter but when I try to chain two or more filters I run into the following bug: { code: 4, message: 'AEROSPIKE\_ERR\_REQUEST\_INVALI…

---

## [Aerospike crash and lost all sets](https://discuss.aerospike.com/t/aerospike-crash-and-lost-all-sets/3676)

<div class="topic-metadata">

**Author:** [@Akita](https://discuss.aerospike.com/u/Akita)\
**Replies:** 2\
**Last updated:** [December 27, 2016, 2:57am UTC](https://discuss.aerospike.com/t/aerospike-crash-and-lost-all-sets/3676 "2016-12-27T02:57:32Z")

</div>

Hi all, I am new in Aerospike. I have a problem: I created a loop in NodeJs to inset 9.000.000 record into Aerospike, but always to about 2.900.000 record my Aerospike crash. I must restart it and I lost all inserted da…

---

## [Benchmarks errors on node.js OS X (vagrant)](https://discuss.aerospike.com/t/benchmarks-errors-on-node-js-os-x-vagrant/3702)

<div class="topic-metadata">

**Author:** [@sasacoh](https://discuss.aerospike.com/u/sasacoh)\
**Replies:** 4\
**Last updated:** [December 22, 2016, 9:53am UTC](https://discuss.aerospike.com/t/benchmarks-errors-on-node-js-os-x-vagrant/3702 "2016-12-22T09:53:36Z")

</div>

Hey, I’m running the latest nodejs benchmarks on macbook pro (vagrant - storage-engine memory) and getting lots of errors (see below) - especially at the beginning of test. Is this expected? Should I change the configs f…

---

## [Aerospike nodejs client npm url](https://discuss.aerospike.com/t/aerospike-nodejs-client-npm-url/3582)

<div class="topic-metadata">

**Author:** [@kitex](https://discuss.aerospike.com/u/kitex)\
**Replies:** 1\
**Last updated:** [November 5, 2016, 3:18pm UTC](https://discuss.aerospike.com/t/aerospike-nodejs-client-npm-url/3582 "2016-11-05T15:18:18Z")

</div>

Aerospike nodejs client install in Ubuntu16.10 is generating url for ubuntu16.04. After update and upgrade to ubuntu17 : aerospike@2.4.1 install /opt/projects/amatyastore/node\_modules/aerospike node-gyp rebuild \> ma…

---

## [How far you justify to write client side code when you have nodejs as a server side?](https://discuss.aerospike.com/t/how-far-you-justify-to-write-client-side-code-when-you-have-nodejs-as-a-server-side/2052)

<div class="topic-metadata">

**Author:** [@saurabh\_shankariya](https://discuss.aerospike.com/u/saurabh_shankariya)\
**Replies:** 3\
**Last updated:** [November 3, 2016, 1:32pm UTC](https://discuss.aerospike.com/t/how-far-you-justify-to-write-client-side-code-when-you-have-nodejs-as-a-server-side/2052 "2016-11-03T13:32:01Z")

</div>

I am a beginner in nodejs application development. I am developing an app for my interest to explore about javascript using nodejs, front-end framework expressjs, socket connection between server & client side with help …

---

## [Deleting bins during multiple operation](https://discuss.aerospike.com/t/deleting-bins-during-multiple-operation/3259)

<div class="topic-metadata">

**Author:** [@Cheriksoft](https://discuss.aerospike.com/u/Cheriksoft)\
**Replies:** 3\
**Last updated:** [August 11, 2016, 5:58am UTC](https://discuss.aerospike.com/t/deleting-bins-during-multiple-operation/3259 "2016-08-11T05:58:26Z")

</div>

I’m doing multiple operations on the record, using client.operate() method. During this proccess, some bins have to be deleted. As you know, you have to set bin value to null, to delete it, but when I’m trying to add to …

---

## [Query with statement parameter doesn't work \[Resolved\]](https://discuss.aerospike.com/t/query-with-statement-parameter-doesnt-work-resolved/3142)

<div class="topic-metadata">

**Author:** [@djhonjun](https://discuss.aerospike.com/u/djhonjun)\
**Replies:** 7\
**Last updated:** [July 14, 2016, 2:22am UTC](https://discuss.aerospike.com/t/query-with-statement-parameter-doesnt-work-resolved/3142 "2016-07-14T02:22:58Z")

</div>

I have this line of code: var q = client.query('ns1', 'set1', statement); when run, gives the following error: Invalid query arguments: Pass UDF params to Query#apply instead. I’m using v2.1.0 of the aerospike-clien…

---

## [How to use filter type geoWithinRadius and sample data for geoWithinRadius](https://discuss.aerospike.com/t/how-to-use-filter-type-geowithinradius-and-sample-data-for-geowithinradius/3035)

<div class="topic-metadata">

**Author:** [@Gawaksh\_Trikha](https://discuss.aerospike.com/u/Gawaksh_Trikha)\
**Replies:** 1\
**Last updated:** [June 7, 2016, 5:56am UTC](https://discuss.aerospike.com/t/how-to-use-filter-type-geowithinradius-and-sample-data-for-geowithinradius/3035 "2016-06-07T05:56:23Z")

</div>

//Primary Index CREATE MAPVALUES INDEX my\_geo\_radius\_Keys ON test.demo (points) GEO2DSPHERE //inserting the data var key = new Aerospike.Key(‘test’, ‘demo’, ‘foo6’) var bins = {points:{“type”: “polygons”, “coordinates”:…

---

## [A Change is Gonna Come: Early Adopter Release for Aerospike Node.js Client v2.0](https://discuss.aerospike.com/t/a-change-is-gonna-come-early-adopter-release-for-aerospike-node-js-client-v2-0/2751)

<div class="topic-metadata">

**Author:** [@Mnemaudsyne](https://discuss.aerospike.com/u/Mnemaudsyne)\
**Replies:** 1\
**Last updated:** [May 18, 2016, 5:08pm UTC](https://discuss.aerospike.com/t/a-change-is-gonna-come-early-adopter-release-for-aerospike-node-js-client-v2-0/2751 "2016-05-18T17:08:07Z")

</div>

Today, we are announcing the Early Adopter release of version 2.0 of the Aerospike Node.js client. Version 2.0 represents a major update to the Node.js client library with some user-visible changes, as well as lots of re…

---

## [Aerospike performance with node.js driver (on AWS c3.2xlarge)](https://discuss.aerospike.com/t/aerospike-performance-with-node-js-driver-on-aws-c3-2xlarge/1378)

<div class="topic-metadata">

**Author:** [@rafiton](https://discuss.aerospike.com/u/rafiton)\
**Replies:** 14\
**Last updated:** [May 18, 2016, 5:07pm UTC](https://discuss.aerospike.com/t/aerospike-performance-with-node-js-driver-on-aws-c3-2xlarge/1378 "2016-05-18T17:07:16Z")

</div>

Hi team, I’m exploring migrating our database to AeroSpike. To test performance I created a cluster of 3 c3.2xlarge servers using 80G SSD disks (not EBS). I’m using the cluster as SSD database. I read and implemented y…

---

## [Segmentation Fault](https://discuss.aerospike.com/t/segmentation-fault/2922)

<div class="topic-metadata">

**Author:** [@slane](https://discuss.aerospike.com/u/slane)\
**Replies:** 2\
**Last updated:** [May 10, 2016, 5:35pm UTC](https://discuss.aerospike.com/t/segmentation-fault/2922 "2016-05-10T17:35:13Z")

</div>

Attempting to set up NodeJS application to connect to Aerospike, and I hit an error I can’t find a solution to. Basically, I connect as such: var client = Aerospike.client({ hosts: \[{addr: '10.10.128.48', port:…

---

## [Node client notes](https://discuss.aerospike.com/t/node-client-notes/1593)

<div class="topic-metadata">

**Author:** [@fed135](https://discuss.aerospike.com/u/fed135)\
**Replies:** 2\
**Last updated:** [March 31, 2016, 7:57pm UTC](https://discuss.aerospike.com/t/node-client-notes/1593 "2016-03-31T19:57:50Z")

</div>

Hello, first post here. I would like to express my concerns for the direction of the Node client. I have worked on a large number of node libraries and I believe that public modules should be made using the highest sta…

---

## [In Aerospike, is it possible to do a scan with a limit in the Node client?](https://discuss.aerospike.com/t/in-aerospike-is-it-possible-to-do-a-scan-with-a-limit-in-the-node-client/1998)

<div class="topic-metadata">

**Author:** [@fdnieves](https://discuss.aerospike.com/u/fdnieves)\
**Replies:** 6\
**Last updated:** [February 4, 2016, 7:40pm UTC](https://discuss.aerospike.com/t/in-aerospike-is-it-possible-to-do-a-scan-with-a-limit-in-the-node-client/1998 "2016-02-04T19:40:38Z")

</div>

Hello! I was wondering, is there any way we can perform a scan but with a limit in Nodejs? or for example, grab N records randomly, or last N records modified? I started using scan as per: http://www.aerospike.com/docs…

---

## [Aerospike Cluster Automatically Errors](https://discuss.aerospike.com/t/aerospike-cluster-automatically-errors/2185)

<div class="topic-metadata">

**Author:** [@srinivasiyer](https://discuss.aerospike.com/u/srinivasiyer)\
**Replies:** 3\
**Last updated:** [January 18, 2016, 8:09am UTC](https://discuss.aerospike.com/t/aerospike-cluster-automatically-errors/2185 "2016-01-18T08:09:37Z")

</div>

Hi, I have been using aerospike replicated and clustered on 2 machines that are sitting right next to each other. Here is the error that I get: Nov 26 2015 08:02:50 GMT: ERROR(11563) \[connect.cc:69\] \[Connect\] - Connect…

---

## [Node --prof with aerospike can't start](https://discuss.aerospike.com/t/node-prof-with-aerospike-cant-start/2367)

<div class="topic-metadata">

**Author:** [@Dmitry\_S](https://discuss.aerospike.com/u/Dmitry_S)\
**Replies:** 6\
**Last updated:** [January 15, 2016, 5:06pm UTC](https://discuss.aerospike.com/t/node-prof-with-aerospike-cant-start/2367 "2016-01-15T17:06:01Z")

</div>

if i use --prof parameter to profiling my code, for example: node --prof app.js i got error from aerospike client module: ERROR(12629) \[connect.cc:69\] \[Connect\] - Connecting to Cluster Failed {“code”:-1,“message”:“Failed…

---

## [Extremely Long latencies using put](https://discuss.aerospike.com/t/extremely-long-latencies-using-put/2288)

<div class="topic-metadata">

**Author:** [@rafiton](https://discuss.aerospike.com/u/rafiton)\
**Replies:** 1\
**Last updated:** [December 20, 2015, 12:22pm UTC](https://discuss.aerospike.com/t/extremely-long-latencies-using-put/2288 "2015-12-20T12:22:40Z")

</div>

I have a cluster of 4x r3.8xl machines and all worked nicely for a month or two. Suddenly today I started getting huge latencies performing put transactions - I’m talking jumping from 1ms to 40-60 seconds ! The Aerospike…

---

## [LDT-Bin Does Not Exist error when creating a new largeList](https://discuss.aerospike.com/t/ldt-bin-does-not-exist-error-when-creating-a-new-largelist/2270)

<div class="topic-metadata">

**Author:** [@rafiton](https://discuss.aerospike.com/u/rafiton)\
**Replies:** 2\
**Last updated:** [December 19, 2015, 5:32pm UTC](https://discuss.aerospike.com/t/ldt-bin-does-not-exist-error-when-creating-a-new-largelist/2270 "2015-12-19T17:32:56Z")

</div>

Hi all, I’m trying to implement a largeList with node js using the following code: var llkey = { ns: "test", set: "testSet", key: "t…

---

## [Can I use other node.js frameworks like hapi.js or sail.js](https://discuss.aerospike.com/t/can-i-use-other-node-js-frameworks-like-hapi-js-or-sail-js/2172)

<div class="topic-metadata">

**Author:** [@aaron\_brown](https://discuss.aerospike.com/u/aaron_brown)\
**Replies:** 0\
**Last updated:** [November 24, 2015, 1:17pm UTC](https://discuss.aerospike.com/t/can-i-use-other-node-js-frameworks-like-hapi-js-or-sail-js/2172 "2015-11-24T13:17:24Z")

</div>

If I am using node.js as my aerospike client Can I use other node frameworks? (like hapi.js or sail.js)

---

## [Nodejs crashing \[Resolved\]](https://discuss.aerospike.com/t/nodejs-crashing-resolved/877)

<div class="topic-metadata">

**Author:** [@daniel](https://discuss.aerospike.com/u/daniel)\
**Replies:** 6\
**Last updated:** [October 10, 2015, 12:48am UTC](https://discuss.aerospike.com/t/nodejs-crashing-resolved/877 "2015-10-10T00:48:05Z")

</div>

Hi, I have a very normal setup of aerospike nodejs client, and sometimes I get this error backtrace: node: ../deps/uv/src/unix/core.c:171: uv\_\_finish\_close: Assertion \`handle-\>flags & UV\_CLOSING' failed. Program recei…

---

## [Node-gyp rebuild failing & NodeJS v4 support](https://discuss.aerospike.com/t/node-gyp-rebuild-failing-nodejs-v4-support/1813)

<div class="topic-metadata">

**Author:** [@Zhongcai\_Ng](https://discuss.aerospike.com/u/Zhongcai_Ng)\
**Replies:** 7\
**Last updated:** [October 2, 2015, 12:49am UTC](https://discuss.aerospike.com/t/node-gyp-rebuild-failing-nodejs-v4-support/1813 "2015-10-02T00:49:48Z")

</div>

Hi, Aerospike client library is failing on node-gyp rebuild. Tested for v0.10.36, v0.12.7 and v4 Help?

---

## [Task manager with aerospike and node.js](https://discuss.aerospike.com/t/task-manager-with-aerospike-and-node-js/1877)

<div class="topic-metadata">

**Author:** [@moubert](https://discuss.aerospike.com/u/moubert)\
**Replies:** 3\
**Last updated:** [September 30, 2015, 6:00am UTC](https://discuss.aerospike.com/t/task-manager-with-aerospike-and-node-js/1877 "2015-09-30T06:00:59Z")

</div>

I’m using node.js with aerospike in a networking application. When a user post, mention or follow I have to do job on timelines or/and notifications. I would like to run these jobs after node.js has sent a response to th…

---

## [Context about three, somewhat commonly seen, Aerospike errors](https://discuss.aerospike.com/t/context-about-three-somewhat-commonly-seen-aerospike-errors/1886)

<div class="topic-metadata">

**Author:** [@brandante](https://discuss.aerospike.com/u/brandante)\
**Replies:** 5\
**Last updated:** [September 29, 2015, 5:09pm UTC](https://discuss.aerospike.com/t/context-about-three-somewhat-commonly-seen-aerospike-errors/1886 "2015-09-29T17:09:58Z")

</div>

We are using the Node.js implementation of Aerospike. Here are the versions we are using in production: asd --version Aerospike Enterprise Edition, build 3.5.8 npm ls | grep aerospike Aerospike Node Client, version …

---

## [Query: how to amend records in aggregateUDF \[Resolved\]](https://discuss.aerospike.com/t/query-how-to-amend-records-in-aggregateudf-resolved/1651)

<div class="topic-metadata">

**Author:** [@Zhongcai\_Ng](https://discuss.aerospike.com/u/Zhongcai_Ng)\
**Replies:** 5\
**Last updated:** [September 10, 2015, 7:18am UTC](https://discuss.aerospike.com/t/query-how-to-amend-records-in-aggregateudf-resolved/1651 "2015-09-10T07:18:09Z")

</div>

Hi guys, I need to iterate through all my records in set and then amend 2 fields in it. What is the best way to go about doing it? I tried using Query stream with aggregateUDF, but it’s throwing me code100 errors. I the…

---

## [Not sure when to close client connection on Express](https://discuss.aerospike.com/t/not-sure-when-to-close-client-connection-on-express/1666)

<div class="topic-metadata">

**Author:** [@0nix](https://discuss.aerospike.com/u/0nix)\
**Replies:** 8\
**Last updated:** [August 31, 2015, 2:40pm UTC](https://discuss.aerospike.com/t/not-sure-when-to-close-client-connection-on-express/1666 "2015-08-31T14:40:44Z")

</div>

So I have a series of endpoints in Express that establish a connection to an Aerospike server, and then close it after they have responded with the appropriate data. Here is an example of an endpoint: app.get("/api/cont…

---

## [Aerospike Community Edition Crashing (AER-3780) \[Released\] \[Resolved\]](https://discuss.aerospike.com/t/aerospike-community-edition-crashing-aer-3780-released-resolved/1492)

<div class="topic-metadata">

**Author:** [@denisbetsi](https://discuss.aerospike.com/u/denisbetsi)\
**Replies:** 8\
**Last updated:** [August 1, 2015, 12:50am UTC](https://discuss.aerospike.com/t/aerospike-community-edition-crashing-aer-3780-released-resolved/1492 "2015-08-01T00:50:10Z")

</div>

Attempting to run UDF scan with node.js client, gets this error {"code":1,"message":"AEROSPIKE\_ERR\_SERVER","func":"as\_scan\_parse\_records","file":"src/main/aerospike/aerospike\_scan.c","line":104} The aerospike.log has t…

---

## [How to change write policy on node.js?](https://discuss.aerospike.com/t/how-to-change-write-policy-on-node-js/1532)

<div class="topic-metadata">

**Author:** [@fdnieves](https://discuss.aerospike.com/u/fdnieves)\
**Replies:** 3\
**Last updated:** [July 31, 2015, 10:05am UTC](https://discuss.aerospike.com/t/how-to-change-write-policy-on-node-js/1532 "2015-07-31T10:05:34Z")

</div>

When I write a record with an specific bin, all the other bins that were already on that document (namespace/set/key) are deleted. How can I make that writes only rewrite the bins pushed, and only delete bins if we put …

---

## [Deleted records get resurrected after a restart](https://discuss.aerospike.com/t/deleted-records-get-resurrected-after-a-restart/1510)

<div class="topic-metadata">

**Author:** [@denisbetsi](https://discuss.aerospike.com/u/denisbetsi)\
**Replies:** 2\
**Last updated:** [July 26, 2015, 5:43am UTC](https://discuss.aerospike.com/t/deleted-records-get-resurrected-after-a-restart/1510 "2015-07-26T05:43:07Z")

</div>

I am using node.js client. First I retrieve unique keys of all records in a table. I then loop through each record and issue var key = { ns: 'CRM;, set: 'visit', key: row.id }; cli…

---

## [What's up with AEROSPIKE\_ERR\_FAIL\_FORBIDDEN?](https://discuss.aerospike.com/t/whats-up-with-aerospike-err-fail-forbidden/1485)

<div class="topic-metadata">

**Author:** [@denisbetsi](https://discuss.aerospike.com/u/denisbetsi)\
**Replies:** 3\
**Last updated:** [July 21, 2015, 5:17am UTC](https://discuss.aerospike.com/t/whats-up-with-aerospike-err-fail-forbidden/1485 "2015-07-21T05:17:56Z")

</div>

I have this error using node.js client when attempting to PUT new records: {“code”:22,“message”:“AEROSPIKE\_ERR\_FAIL\_FORBIDDEN”,“func”:“as\_command\_parse\_header”,“file”:“src/main/aerospike/as\_command.c”,“line”:486} After …

---

## [NodeJS Client on Amazon AMI not installing](https://discuss.aerospike.com/t/nodejs-client-on-amazon-ami-not-installing/1498)

<div class="topic-metadata">

**Author:** [@rcritt](https://discuss.aerospike.com/u/rcritt)\
**Replies:** 1\
**Last updated:** [July 16, 2015, 6:39am UTC](https://discuss.aerospike.com/t/nodejs-client-on-amazon-ami-not-installing/1498 "2015-07-16T06:39:08Z")

</div>

We developed a small NodeJS application that uses the Aerospike client. On the Mac we were able to install version 1.0.42 of the driver without issue. However, when trying to install on the latest Amazon AMI, Amazon Li…

[Previous page](https://discuss.aerospike.com/c/client-libraries/node-js-client/13.md)

[Next page](https://discuss.aerospike.com/c/client-libraries/node-js-client/13.md?page=2)
