Giter Site home page Giter Site logo

Comments (9)

cstivers78 avatar cstivers78 commented on August 23, 2024

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.

GayathriKaliyamoorthy avatar GayathriKaliyamoorthy commented on August 23, 2024

We have fixed this and released the fix to npm, you can use the latest version available.

Thanks

from aerospike-client-nodejs.

 avatar commented on August 23, 2024

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.

pablonazareno avatar pablonazareno commented on August 23, 2024

I'm having the same issue.
I'm using verion 1.0.25.

Thanks

from aerospike-client-nodejs.

GayathriKaliyamoorthy avatar GayathriKaliyamoorthy commented on August 23, 2024

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.

pablonazareno avatar pablonazareno commented on August 23, 2024

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.

GayathriKaliyamoorthy avatar GayathriKaliyamoorthy commented on August 23, 2024

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.

iamontheinet avatar iamontheinet commented on August 23, 2024

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.

GayathriKaliyamoorthy avatar GayathriKaliyamoorthy commented on August 23, 2024

@pablonazareno Could you confirm if this works for you, so that we can close this issue?

Thanks.

from aerospike-client-nodejs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.