Forum Discussion

nirmala18's avatar
nirmala18
Occasional Visitor
4 years ago

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

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

please suggest me solution

  • richie's avatar
    richie
    Community Hero
    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