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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

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

,
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.

Solutions on the web

via Stack Overflow by ranjith
, 2 years ago
Connection to http://192.168.1.1:8080 refused
via Stack Overflow by timestron
, 1 year ago
Connection to http://192.168.1.135:9000 refused
via Stack Overflow by Hassy
, 2 years ago
Connection to <a href="http://127.0.0.1" rel="nofollow">http://127.0.0.1</a> refused
via GitHub by kueda
, 9 months ago
Connection to https://www.inaturalist.org refused
via xda-developers.com by Unknown author, 1 year ago
via Stack Overflow by Dexter
, 2 years ago
Connection to <a href="http://api.twitter.com" rel="nofollow">http://api.twitter.com</a> refused
org.apache.http.conn.HttpHostConnectException: Connection to https://www.inaturalist.org refused
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)
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)
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.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)

Users with the same issue

2 times, 2 months ago
Once, 1 year ago
4 times, 1 year ago
2 times, 7 months ago
12 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.