cancel
Showing results for 
Search instead for 
Did you mean: 

I am getting ERROR:org.apache.http.conn.HttpHostConnectException: Connection refused

nirmala18
Occasional Visitor

I am getting ERROR:org.apache.http.conn.HttpHostConnectException: Connection refused

I am getting ERROR:org.apache.http.conn.HttpHostConnectException: Connection refused

nirmala18_0-1612855411726.png

please suggest me solution

Tags (2)
1 REPLY 1
richie
Community Hero

Re: I am getting ERROR:org.apache.http.conn.HttpHostConnectException: Connection refused

Hey @nirmala18,

"Connection refused" occurs if the authentication/authorisation set on your request is incorrect.

So if "basic auth" is the auth type used, id confirm the username and password values as theyre likely to be wrong.

You need to confirm what authtype the endpoint youre trying to poke accepts and ensure the auth settings on your request has the correct config setup. Then the "connection refused" issue will be resolved.

Ta

Rich
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
New Here?
Join us and watch the welcome video:
Top Kudoed Authors