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
connect ehostunreach 0.0.31.153:80 #1514
Comments
IP addresses can't start with 0. Thus the This issue should be closed. |
but the local ip does not begin with 0. As it is construction, the project is raised in the local address (localhost or 127.0.0.1) this message is not making sense because of this |
You'd need to find why the address is
|
Hi @carvalhoviniciusluiz , I encountered this problem today. By doing debug, I found some reason may cause this problem. It's about your system bash/zsh proxy settings export https_proxy=localhost:8888
export http_proxy=localhost:8888
var proxy = config.proxy;
if (!proxy) {
var proxyEnv = protocol.slice(0, -1) + '_proxy';
var proxyUrl = process.env[proxyEnv] || process.env[proxyEnv.toUpperCase()];
if (proxyUrl) {
var parsedProxyUrl = url.parse(proxyUrl);
proxy = {
host: parsedProxyUrl.hostname,
port: parsedProxyUrl.port
};
if (parsedProxyUrl.auth) {
var proxyUrlAuth = parsedProxyUrl.auth.split(':');
proxy.auth = {
username: proxyUrlAuth[0],
password: proxyUrlAuth[1]
};
}
}
} the result of get the wrong hostname Then your dns will find this hostname, as a result, it returns 0.0.xx.xxx, which throw errors. so just remove https_proxy and http_proxy and restart your terminal |
For the sake of simplicity, you can remove them in the following way: npm config delete http-proxy |
so just request http:// 0.0.0.0:1337/your/path |
This error is also fired when you write just the IP @ without the protocol. |
I've just add the |
Hi, I have a project with restify that sends data to an api with axios. When I start both apis locally the axios shows this message
I noticed that this post #1228 is similar to mine, but it's closed.
How do you solve this?
environment
os: macOS
node: v8.9.3
npm: 5.5.1
axios: 0.18.0
The text was updated successfully, but these errors were encountered: