Failed to connect to localhost/

Hot problem!
This exception has a lot of traffic. You can help 12 users by writing a short tip.

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

Solutions on the web

via GitHub by jagan120
, 4 months ago
Failed to connect to
via GitHub by mansuu
, 4 months ago
Failed to connect to
via Stack Overflow by cmb28
, 10 months ago
Failed to connect to localhost/0:0:0:0:0:0:0:1:8080 Failed to connect to localhost/
at com.squareup.okhttp.internal.http.StreamAllocation.findConnection(
at com.squareup.okhttp.internal.http.StreamAllocation.findHealthyConnection(
at com.squareup.okhttp.internal.http.StreamAllocation.newStream(
at com.squareup.okhttp.internal.http.HttpEngine.connect(
at com.squareup.okhttp.internal.http.HttpEngine.sendRequest(
at com.squareup.okhttp.Call.getResponse(
at com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed(
at com.squareup.okhttp.Call.getResponseWithInterceptorChain(
at retrofit.client.OkClient.execute(
at retrofit.RestAdapter$RestHandler.invokeRequest(
at retrofit.RestAdapter$RestHandler.access$100(
at retrofit.RestAdapter$RestHandler$1.invoke(
at retrofit.RxSupport$
at java.util.concurrent.Executors$
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at retrofit.Platform$Base$2$

Users with the same issue

6 times, 1 year ago
10 times, 1 year ago
4 times, 1 year ago
4 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

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