Question

I am getting the following error when i am trying to connect to a url https://jazz.net on worklight 5.0.6..

Procedure invocation error. Runtime: Http request failed: org.apache.http.conn.HttpHostConnectException: Connection to https://jazz.net refused

This is the response I am getting in log:

{"responseID":"6","errors":["Runtime: Http request failed: org.apache.http.conn.HttpHostConnectException: Connection to https://jazz.net refused"],"isSuccessful":false,"warnings":[],"info":[]}*/

Here is the adapter xml code:

  <connectivity>
    <connectionPolicy xsi:type="http:HTTPConnectionPolicyType">
        <protocol>https</protocol>
        <domain>jazz.net</domain>
</connectionPolicy>
    <loadConstraints maxConcurrentConnectionsPerNode="2" />
</connectivity>
Was it helpful?

Solution

You need to also add a child-element port with the value 443.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top