Coder Social home page Coder Social logo

Comments (7)

frank06 avatar frank06 commented on August 12, 2024

You're right, it's critical. I ran into it as well and will be fixing this in the new branch. Hopefully ready this week or next one.

from riak-js.

frank06 avatar frank06 commented on August 12, 2024

Fixed in 0.3.0beta - you should get that in an err (note the changes in the API):

db.save(type, key, data, options, function(err, data, meta) {
  if (err) throw err; else console.dir(data)
})

from riak-js.

hoodoos avatar hoodoos commented on August 12, 2024

Where can I get this beta? Current being pulling is 0.2.3 i believe (HISTORY.md says so).
I noticed API changes in this version, but still i get:

GET /riak/clientinfo/testagent
Error: Error: ECONNREFUSED, Connection refused

and no callback being called.

from riak-js.

frank06 avatar frank06 commented on August 12, 2024

That is strange. How did you install?

The most accurate way to check for a version number is in the package.json. HISTORY.md does not have 0.3.0 as it hasn't yet been released (this is a beta).

What is the code you're using to do that GET, and if you do curl -i localhost:8098/riak/clientinfo/testagent you get your data back?

from riak-js.

hoodoos avatar hoodoos commented on August 12, 2024

I install by just pulling sources from git and adding directory with lib to NODE_PATH.
Yes, seems like i have 0.3.0beta according to package.json.

curl -i localhost:8098/riak/clientinfo/testagent
curl: (7) couldn't connect to host

return is fine, riak is currently down, but no callback being fired about that and my code just hangs with console output from last message.

Lib works fine when riak is up :)

from riak-js.

hoodoos avatar hoodoos commented on August 12, 2024

Ah I'm very sorry! It was my bug, callback is being fired.
I'm terribly sorry!

from riak-js.

frank06 avatar frank06 commented on August 12, 2024

Ok, no worries :)

from riak-js.

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.