Questions tagged [httphostconnectexception]
7 questions
7
votes
1 answer
HttpHostConnectException when initializing WireMock HTTP server
I'm trying to test my code that has an underlying GET call to an HTTP server.
I am trying to use WireMock, and base on the "Getting Started" I have the following code:
@Rule
public WireMockRule wireMockRule =
new…

summerbulb
- 5,709
- 8
- 37
- 83
2
votes
0 answers
Connection refused when using µTorrent web api programmatically through localhost
I'm trying to use the web api of µTorrent from my localhost with java. This works but sometimes I get an error in this method.
public String[] connectToWebAPI()
{
String guid = null;
String token = null;
String[] tokenAndGuid = new…

user2257668
- 21
- 1
1
vote
0 answers
Error in http connection org.apache.http.conn.HttpHostConnectException: Connection to refused
I have implemented one Android application, which contains remote connection.
My code is as follow: I am testing my app in my mobile device but I am getting error like:
Error in http connection org.apache.http.conn.HttpHostConnectException:…

Kirti Umrigar
- 57
- 11
0
votes
1 answer
org.apache.http.conn.HttpHostConnectException with jMeter
I'm getting this org.apache.http.conn.HttpHostConnectException exception in my jMeter script which I'm unable to debug.
Test server is successfully able to connect to my application urls (https://apac1.onesourcetax.com and…

singh2005
- 1,251
- 12
- 19
0
votes
1 answer
HttpHostConnectException + NullPointerException
I'm trying to get data from mySQL database on my machine. When i rum the app on the emulator i get a HttpHostConnectException (i have tested my address in a browser and tried 10.0.2.2 with and without the port number) then the app crashes with…

Joshua
- 1
- 4
0
votes
1 answer
gradle Project, org.apache.http.conn.HttpHostConnectException: connection refused error for https
I have a project which post the rest request and read back the response. with http the function is working fine. But when I use https, I am getting connection refused error. gradle is the build tool here and I added gradle.properties under…

K V
- 95
- 9
0
votes
2 answers
Frequent HttphostConnectException
I uploaded my app recently to Google Playstore. I used Error Reporter to track the crashes. App is working fine but very frequently I get HttpHostConnectException. Before making every web-call, I checked for Internet Connection. Are there any other…

Seshu Vinay
- 13,560
- 9
- 60
- 109