Question

3
Replies
1543
Views
Close popover
Rakesh Sahoo (RakeshS6765)
Infosys

Infosys
IN
RakeshS6765 Member since 2014 16 posts
Infosys
Posted: August 18, 2017
Last activity: October 16, 2018
Closed

getting java.lang.RuntimeException: java.net.UnknownHostException in REST Connector

Hi All,

I am trying to connect an Open source API to get Address by Postal Code through a REST Connector. I am able to see the result in web browser but while connecting from PEGA getting the below error. there is no authentication for this API.

Caught unhandled exception: java.lang.RuntimeException: java.net.UnknownHostException: This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server (api.postcodes.io)

Url: https://api.postcodes.io/postcodes/{PostalCode}

example: https://api.postcodes.io/postcodes/NE30 1DP

***Edited by Moderator Marissa to update categories***

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Data Integration
Moderation Team has archived post