Comments (9)
Looks like a bug. It appears undefined may not be handled properly. We will try to get a fix out in the next day.
from aerospike-client-nodejs.
We have fixed this and released the fix to npm, you can use the latest version available.
Thanks
from aerospike-client-nodejs.
I confirm that this was fixed, thanks!
Federico | CTO
http://retargetly.com
On 19/11/2014, at 9:39, Gayathri [email protected] wrote:
We have fixed this and released the fix to npm, you can use the latest version available.
Thanks
—
Reply to this email directly or view it on GitHub.
from aerospike-client-nodejs.
I'm having the same issue.
I'm using verion 1.0.25.
Thanks
from aerospike-client-nodejs.
Hi
The latest release has the fix and we are not able to reproduce this inhouse. Could you give us the code snippet for us to dig deeper.
Thanks.
from aerospike-client-nodejs.
Hi
The process don't crush actually, but have some strange behaviour in stored data.
Try this code:
var aerospike = require('aerospike');
var client = aerospike.client(connectionSetting);
client.connect(function(response) {
if (response.code === aerospike.status.AEROSPIKE_OK) {
var digest = aerospike.key('test', 'test', 'title');
var value = {
header: {
banners: [],
apply_banner: "New Year!",
empty: undefined
}
};
client.put(digest, value, console.log);
} else {
console.error('SOMETHING IS WRONG');
}
});
Generate this output:
Jan 07 2015 14:27:29 GMT: ERROR(5679) [conversions.cc:515] [asval_from_jsobject] - Object passed is undefined
{ code: 0, message: null, func: null, file: null, line: null } { ns: 'test', set: 'test', key: 'title' }
And at Aerospike DB:
ascli get test test title
{"header": { }}
but Using AQL
gt;aql
Aerospike Query
Copyright 2013 Aerospike. All rights reserved.
aql> select * from test.test
Segmentation fault (core dumped)
Thanks
Pablo
from aerospike-client-nodejs.
Thanks for giving a detailed description for repro. I could reproduce the exact same issue.
We identified the problem and fixed this in nodejs Client API, and will be releasing to npm soon.
Thanks.
from aerospike-client-nodejs.
Hi Pablo,
The issue has been resolved as of 1.0.30.
Here's the output from running your code snippet:
ASCLI: ascli get test test title
Result: {"header": { "banners": [ ], "empty": null, "apply_banner": "New Year!" }}
AQL: select * from test.test
Result: {"banners":[], "empty":NIL, "apply_banner":"New Year!"}
Hope this helps.
Dash
from aerospike-client-nodejs.
@pablonazareno Could you confirm if this works for you, so that we can close this issue?
Thanks.
from aerospike-client-nodejs.
Related Issues (20)
- node alpine dockerfile example is not working with node:14.19.0-alpine3.15 HOT 1
- error: Linux distribution not supported: 'ubuntu22' HOT 2
- Typescript file missing in npm package? HOT 2
- aerospike-client-nodejs on MacOS builds successfully but doesn't work HOT 4
- Fix code scanning alert - Clear-text logging of sensitive information HOT 1
- Incompatibility between client version 5.0.2 and Ubuntu 18.04 HOT 1
- Docs: Broken "Client" doumentation HOT 1
- Version 5.1.1 breaks using Docker HOT 1
- Can't launch the library on macOS. HOT 3
- Error: Running aerospike client on Arm64(aarch) on MacOS HOT 7
- What is the latest version of Aerospike goes with Ubuntu 18.04 HOT 2
- error TS2304: Cannot find name 'Class' HOT 12
- Does aerospike-client-nodejs need python on runtime as well? HOT 1
- I cant install on windows 10 HOT 2
- Issue with using client.operate with policy exists: AS.policy.exists.CREATE HOT 1
- Serialized and blocking connection
- Unable to install aerospike with nexus3 HOT 16
- Unable to install v5.9.0 with yarn, published version requires "npm-run-all" HOT 3
- System's openssl version since static linking in v5.6.0 HOT 4
- Missing 'bool/AS_EXP_TYPE_BOOL' in exp bin type HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aerospike-client-nodejs.