Question

4
Replies
2799
Views
HarryH57 Member since 2016 11 posts
The Nielsen Company
Posted: October 1, 2016
Last activity: June 1, 2017
Closed

How to catch an unhandled exception when calling Connect REST in Activity?

When I call a Connect REST from an activity, if the called service has a wrong IP address (or domain name), I can see in the log file:

com.pega.pegarules.pub.services.ConnectorException: Caught unhandled exception: com.pega.apache.http.conn.HttpHostConnectException: Connection to http://XX.XX.XX.XX refused

Seems to be from Pega activity pyInvokeRESTConnector.

However, the activity will browser timeout. The entire designer studio freezes and cannot recover. The Jump in activity cannot catch the exception.

Any way to catch the exception and let the Activity continue?

Image removed.

***Updated by moderator: Marissa to remove proprietary information***

Data Integration Java and Activities Data Integration
Moderation Team has archived post
Share this page LinkedIn