-
Notifications
You must be signed in to change notification settings - Fork 85
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
cannot connect correctly with etcd on localhost #40
Comments
Hello, I'm not sure where the html is coming from, but i would guess from http://http.com, as it's trying to access I might add a protocol detector, would make sense to support both As for the proxy warning. If no host:port is given it should default to To avoid your company proxy you can try running node with:
|
So I tried without the prefix and still have the same issue. It is definitely a proxy issue as I have verified when I disable the proxy. but the |
You could also try to unset the env-variable.
Or possibly this:
|
But there must be a way to do it without unsetting the proxy, if I need to connect to another host through the proxy in the same Node app I can't if I unset that proxy |
Yeah, you need to get it avoid using the proxy for local requests.
seems to be the way to go based on googling, but if that doesn't work for you, then i'm a bit unsure how to proceed :/ I've confirmed that this works here:
|
maybe its not working for me because I am using older version of node (v0.10.33) ? |
Could be, not sure, I tested setting NO_PROXY on node v0.12.7 |
I have tried with the latest stable Node.js but still tries to go through the proxy. I do not have any issue with any other framework. for example the request framework on its own does not get this issue |
So I was able to get another module to work without turning off the proxy (nodejs-etcd])[https://www.npmjs.com/package/nodejs-etcd] , unfortunately its not as well maintained or documented as your module |
I've published a version under the beta tag, only thing it does is bump request library to latest version. There is a proxy related fix in the request changelog, I don't know, but it might help you out. Let me know if you try it and if it works :)
|
@stianeikeland Thank you that has resolved the Issue 👍 is there anyway I can help to move this from beta to release? |
Released as v4.1.0 :) |
my etcd instance is running locally and I can perform get and set using the cli
but when I use your module
Can you explain why my value is HTML (see below)
I also find that when I don't include hosts and just use
new Etcd()
I get an internal HTML page with references to proxy issues: "The requested website is blocked by [insert company name] Proxy due to potential malicious activity or other security reasons."The text was updated successfully, but these errors were encountered: