Question
Connect-REST via Proxy
Hi,
We are trying to connect to a REST service via Proxy but encountering below exception,
com.pega.pegarules.pub.services.ConnectorException: Caught unhandled exception: java.net.UnknownHostException
Note:
1) The host and port are enabled in proxy and can be verified via curl -v -x <proxy name>:<proxy port> <End point URL>.
2) We are on 7.21.
3) No JVM arguments are added (https.proxyHost and https.proxyPort). We are creating the proxy page dynamically and passing it to ServicesUtilities • pxApplyHTTPProxyConfiguration--(Object,boolean,ClipboardPage)
Any help is appreciated!
-Aqib
Please add the DNS proxy server name in server host file and try to connect to the rest service.
as pyInvokeRest will pick the proxy from server host file.
Thank,