org.apache.http.conn.HttpHostConnectException: Connection to https://api.inaturalist.org refused


Samebug tips

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


9 months ago
Expert tip

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.


3 months ago
Expert tip

Solutions on the web

Solution icon of github
Connection to https://api.inaturalist.org refused

Solution icon of github
Connection to https://www.geocaching.com refused

Solution icon of googlegroups
via Google Groups by Unknown author, 1 year ago
Connection to https://accounts.google.com refused

Solution icon of googlegroups
via Google Groups by tamas....@thomsonreuters.com, 1 year ago
Connection to https://github.com refused

Solution icon of web
via JIRA by Ryan Coleman, 1 year ago
Connection to https://forgeapi.puppetlabs.com refused

Solution icon of web
via JIRA by Ken kato, 1 year ago
Connection to https://forgeapi.puppetlabs.com refused

Solution icon of stackoverflow
Connection to https://Testing.com:xxx refused

Solution icon of stackoverflow
Connection to https://checkout.teledit.com refused

Solution icon of web
via microsoft.com by Unknown author, 1 year ago
Connection to https://api.datamarket.azure.com refused

Solution icon of github
Connection to https://carelink.richert.nrw refused

Stack trace

org.apache.http.conn.HttpHostConnectException: Connection to https://api.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.post(INaturalistService.java:2521)
	at org.inaturalist.android.INaturalistService.postObservations(INaturalistService.java:1392)
	at org.inaturalist.android.INaturalistService.syncObservations(INaturalistService.java:798)
	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 /23.253.221.72 (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)
	... 15 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)
	... 20 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

38 times, 1 week ago
11 times, 1 month ago
2 times, 6 months ago
4 times, 11 months ago
40 times, 1 year ago
26 more bugmates