Skip to main content

Support Article

pyInvokeRESTConnector ignores proxy settings



User wants to use proxy (configured as command line parameters to JVM) to access REST Service using HTTPS. 

Step 11 of pyInvokeRESTConnector has sort of support for proxy settings, but step 12 where the actual connection is made ignores these settings. 

User also tried to use the code for BUG-140473, but the code itself only works for HTTP proxy settings per code review. 

Error Messages

Caused by: XXXXXXXX: unknown error
at Method)
at com.pega.apache.http.impl.conn.DefaultClientConnectionOperator.resolveHostname(
at com.pega.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(
at com.pega.apache.http.impl.client.DefaultRequestDirector.tryConnect(
at com.pega.apache.http.impl.client.DefaultRequestDirector.execute(
at com.pega.apache.http.impl.client.AbstractHttpClient.execute(
at com.pega.apache.http.impl.client.AbstractHttpClient.execute(
at com.pegarules.generated.activity.ra_action_pyinvokerestconnector_a547c6f3a0124a96e75a5034030f8e52.step12_circum0(
... 82 more

Steps to Reproduce

1. Create Connect REST rule and then text with proxy settings passed as command line arguments. 
2. Observe using TCPmon (or any other traffic monitoring tool) that PRPC still will try to use direct connection and will fail at step 12. 

Root Cause

A defect in Pegasystems’ code or rules as pyInvokeRESTConnector ignores proxy settings.


Apply HFix-30397.


Suggest Edit

Published January 5, 2017 - Updated October 8, 2020

Did you find this content helpful?

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Ready to crush complexity?

Experience the benefits of Pega Community when you log in.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us