Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Address parameter and set key #45

Open
fisolima opened this issue Sep 27, 2015 · 0 comments
Open

Address parameter and set key #45

fisolima opened this issue Sep 27, 2015 · 0 comments

Comments

@fisolima
Copy link

Hi, it seems, on localhost, all the set functions give error if I declare the address with port integrated in the string

var EtcdModule = require('node-etcd');
var etcd = new EtcdModule("localhost:2379" );

// error 404 not found
console.log( etcd.setSync("mykey","mykey") );
etcd.set("mykey","mykey",console.log);

// works fine
etcd = new EtcdModule("localhost", 2379 );
console.log( etcd.setSync("mykey","mykey") );
etcd.set("mykey","mykey",console.log);

All the get functions work fine in both address declaration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant