Question

3
Replies
1595
Views
Rakesh Sahoo (RakeshS6765)
Infosys

Infosys
IN
RakeshS6765 Member since 2014 17 posts
Infosys
Posted: August 18, 2017
Last activity: October 16, 2018
Posted: 18 Aug 2017 8:36 EDT
Last activity: 16 Oct 2018 12:03 EDT
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, 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.