Question

Connect-Rest : Test Connectivity Failing with ConnectTimeoutException

Test Connectivity failing for Connect Rest with below error: Please help

com.pega.pegarules.pub.services.ConnectorException: Caught unhandled exception: java.lang.RuntimeException: org.apache.http.conn.ConnectTimeoutException: Connect to /aaa.bb.c.d:xxxx failed: connect timed out

Endpoint URL:

https://aaa.bb.c.d:xxxx/api/v1/abc

Comments

Keep up to date on this post and subscribe to comments

December 8, 2019 - 7:10am

First please make sure the same endpoint is accessible through a non-Pega rest client, e.g., Postman or Connect-SOAP, from the same machine pega server is running (curl command would do as well). If yes, then upload the entire error log and specify the pega version.

December 9, 2019 - 4:29am

Checked with curl command and see that the connectivity is not happening and going through proxy

Then I have unset the proxy using:

unset https_proxy

unset HTTPS_PROXY (this worked for me. Not sure why running command in lower case did not work)

We can check the proxy using: env | grep -i proxy

After this again checked the connectivity with curl command > Connectivity is success

After this from Pega also conenctivity is success