diff --git a/mediator/src/main/java/io/mosip/opencrvs/util/OpencrvsDataUtil.java b/mediator/src/main/java/io/mosip/opencrvs/util/OpencrvsDataUtil.java index bd49b8f..65f0706 100644 --- a/mediator/src/main/java/io/mosip/opencrvs/util/OpencrvsDataUtil.java +++ b/mediator/src/main/java/io/mosip/opencrvs/util/OpencrvsDataUtil.java @@ -284,8 +284,10 @@ public String getAddressLocationFromAddress(Map address, String public String fetchAddressValueFromId(String id){ try{ + String url = locationsUrl + "/" + id; + LOGGER.info("Calling location url endpoint - " + url); JSONObject json = new JSONObject( - new RestTemplate().getForObject(locationsUrl + "/" + id, String.class)); + new RestTemplate().getForObject(url, String.class)); return json.getString("name"); } catch(Exception e){ throw ErrorCode.ADDRESS_FETCHING_EXCEPTION.throwUnchecked(e);