Question

3
Replies
1471
Views
RakeshS6765 Member since 2014 15 posts
Infosys
Posted: 3 years ago
Last activity: 2 years 11 months ago
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
Share this page LinkedIn