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

Forced to manually append the protocol #54

Open
mattstyles opened this issue May 17, 2016 · 0 comments
Open

Forced to manually append the protocol #54

mattstyles opened this issue May 17, 2016 · 0 comments

Comments

@mattstyles
Copy link

Using node-etcd@beta although I've also been testing on node 5.11.1, I did see that travis is only testing against 4 so not sure if 5 is officially supported, although I dont think its an issue here anyway.

Small one,

const Etcd = require( 'node-etcd' )
const etcd = new Etcd( '10.1.5.1:2379' )

Setting up with just the ip throws an error

[Error: All servers returned error]
  errors: 
   [ { server: '10.1.5.1:2379',
       httperror: [Error: Invalid protocol: 10.1.5.1:],
       httpstatus: undefined,
       httpbody: undefined,
       response: undefined,
       timestamp: Tue May 17 2016 16:02:39 GMT+0000 (UTC) } ],
  retries: 0 }

Manually adding the protocol works just fine.

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