Question

4
Replies
2831
Views
Close popover
Harry Hu (HarryH57)
The Nielsen Company

The Nielsen Company
US
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?

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

Data Integration Java and Activities
Moderation Team has archived post,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.