question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

connect ehostunreach 0.0.31.153:80

See original GitHub issue

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

{ Error: connect EHOSTUNREACH 0.0.31.153:80 - Local (192.168.2.112:64676)
    at Object._errnoException (util.js:1024:11)
    at _exceptionWithHostPort (util.js:1046:20)
    at internalConnect (net.js:971:16)
    at GetAddrInfoReqWrap.emitLookup [as callback] (net.js:1106:7)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:97:10)
  code: 'EHOSTUNREACH',
  errno: 'EHOSTUNREACH',
  syscall: 'connect',
  address: '0.0.31.153',
  port: 80

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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8

github_iconTop GitHub Comments

12reactions
yeycommented, Nov 21, 2018

so just request http:// 0.0.0.0:1337/your/path then url will be right

8reactions
Kabil-Boutoucommented, May 10, 2019

This error is also fired when you write just the IP @ without the protocol. Even with 127.0.0.1 you should add http://. Hope that was helpful .

Read more comments on GitHub >

github_iconTop Results From Across the Web

axios request get connect EHOSTUNREACH Error. response ...
I believe this is because Axios by default assumes that you're using the same domian that it is installed on using a relative...
Read more >
Help for "Error: connect EHOSTUNREACH" - Reddit
The connection failed because the underlying protocol software could not find a route to the designated target. Double check your ip-address and ...
Read more >
connect EHOSTUNREACH when sending requests to my fly.io ...
Hi. I have a NodeJS app hosted on fly.io. The app consists of two sub-apps. One is a websocket server listening on port...
Read more >
mzabriskie/axios - Gitter
Error: connect EHOSTUNREACH 0.0.11.184:80 - Local (192.168.1.110:49855) service-ca | at Object._errnoException (util.js:1024:11) service-ca | at ...
Read more >
how use app service - Microsoft Q&A
And I keep getting SSH CONNECTION CLOSE-Error: connect EHOSTUNREACH ... ECONNREFUSED 172.16.1.2:2222Error: connect EHOSTUNREACH 172.16.1.2:2222 Happen.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found