org.apache.http.conn.HttpHostConnectException

Connection to https://www.inaturalist.org refused

Samebug tips2

The system selects automatically a group owner. The owner is always 192.168.49.1, and maybe it's trying to connect to itself. If you want to select an owner yourself, you can change the value of ownerIntent, more on this here: https://goo.gl/DGEh7K


rafaelrafael

If you're using Retrofit, check if the page you're trying to access doesn't redirect you somewhere else, as it seems to this exception.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web144

  • via GitHub by ChadHartman
    ,
  • Stack trace

    • org.apache.http.conn.HttpHostConnectException: Connection to https://www.inaturalist.org refused at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:183) at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164) at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:360) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:670) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:509) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487) at org.inaturalist.android.INaturalistService.request(INaturalistService.java:2625) at org.inaturalist.android.INaturalistService.get(INaturalistService.java:2530) at org.inaturalist.android.INaturalistService.getJoinedProjects(INaturalistService.java:2212) at org.inaturalist.android.INaturalistService.saveJoinedProjects(INaturalistService.java:1033) at org.inaturalist.android.INaturalistService.syncObservations(INaturalistService.java:801) at org.inaturalist.android.INaturalistService.onHandleIntent(INaturalistService.java:758) at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:157) at android.os.HandlerThread.run(HandlerThread.java:61) Caused by: java.net.ConnectException: failed to connect to /166.78.84.170 (port 443): connect failed: EHOSTUNREACH (No route to host) at libcore.io.IoBridge.connect(IoBridge.java:114) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:192) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:460) at java.net.Socket.connect(Socket.java:833) at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:119) at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:144) ... 16 more Caused by: libcore.io.ErrnoException: connect failed: EHOSTUNREACH (No route to host) at libcore.io.Posix.connect(Native Method) at libcore.io.BlockGuardOs.connect(BlockGuardOs.java:85) at libcore.io.IoBridge.connectErrno(IoBridge.java:127) at libcore.io.IoBridge.connect(IoBridge.java:112) ... 21 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Indri YunitaIndri Yunita
    2 times, last one
    iridiciridic
    4 times, last one
    ajinkya_wajinkya_w
    40 times, last one
    jkjk
    12 times, last one
    joni1408joni1408
    30 times, last one
    24 more bugmates