Giter Site home page Giter Site logo

Comments (6)

GayathriKaliyamoorthy avatar GayathriKaliyamoorthy commented on August 23, 2024

Hi @mattapperson

As I understand the problem to be, Aerospike nodejs client logs some error, which makes the negative test case for connecting to aerospike fail in Mocha framework.

In this case,
You can either supress the error/warning by setting the appropriate log-level.
Or you can redirect the error logs to a different file. Here is the link to the documentation to set log level and redirect the logs to a specific file while creating a client object. https://github.com/aerospike/aerospike-client-nodejs/blob/master/docs/configuration.md. Please let me know, in case you need some more information or perhaps you could share your mocha test case if that's possible.

Thanks
Gayathri

from aerospike-client-nodejs.

mattapperson avatar mattapperson commented on August 23, 2024

I have logging set to off, error still persists.

Here is the error that gets output:

Connection fails:  { code: -1,
  message: 'Failed to seed cluster',
  func: 'as_cluster_seed_nodes',
  file: 'src/main/aerospike/as_cluster.c',
  line: 260 }

from aerospike-client-nodejs.

GayathriKaliyamoorthy avatar GayathriKaliyamoorthy commented on August 23, 2024

Hi,

Setting the log level turns off the error logging, it does not stop the nodejs driver from returning the error object to caller. The error message you are seeing is the error object returned by Aerospike Nodejs Driver to caller in case of failure. This error object is always returned which contains the status of the operation.

Thanks

from aerospike-client-nodejs.

mattapperson avatar mattapperson commented on August 23, 2024

Nope, this is not something being returned through the API, it is printed to the console regardless of log level.

from aerospike-client-nodejs.

GayathriKaliyamoorthy avatar GayathriKaliyamoorthy commented on August 23, 2024

Hi,

Could you please share the code snippet that always prints this error on console ?

Thanks

from aerospike-client-nodejs.

GayathriKaliyamoorthy avatar GayathriKaliyamoorthy commented on August 23, 2024

Closing due to lack of activity for a prolonged period.

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.