diff --git a/src/main/java/org/sunbird/digilocker/service/DigiLockerIntegrationServiceImpl.java b/src/main/java/org/sunbird/digilocker/service/DigiLockerIntegrationServiceImpl.java index 43971ef7d..726e44d6a 100644 --- a/src/main/java/org/sunbird/digilocker/service/DigiLockerIntegrationServiceImpl.java +++ b/src/main/java/org/sunbird/digilocker/service/DigiLockerIntegrationServiceImpl.java @@ -72,6 +72,7 @@ public PullURIResponse generateURIResponse(String digiLockerHmac, String request } catch (IOException e) { logger.error("Not able to process the request requestBody: " + requestBody, e); responseStatus.setStatus("0"); + response.getDocDetails().setDocContent("Document is not available."); return response; } CertificateAddInfoDTO certificateAddInfoDTO = new CertificateAddInfoDTO(); @@ -105,6 +106,7 @@ public PullURIResponse generateURIResponse(String digiLockerHmac, String request if ((CollectionUtils.isEmpty(userEnrollmentInfo)) || (CollectionUtils.isNotEmpty(userEnrollmentInfo) && userEnrollmentInfo.size() > 1)) { logger.error("Issue with getting the userEnrollment List" + userEnrollmentInfo); response.setResponseStatus(new ResponseStatus("0", dateFormat.format(new Date()), request.getTxn())); + response.getDocDetails().setDocContent("Document is not available."); return response; } else { URIResponseDocDetails docDetails = response.getDocDetails(); @@ -209,6 +211,7 @@ public PullDocResponse generateDocResponse(String digiLockerHmac, String request } catch (IOException e) { logger.error("Not able to process the request requestBody: " + requestBody, e); responseStatus.setStatus("0"); + response.getDocDetails().setDocContent("Document is not available."); return response; } CertificateAddInfoDTO certificateAddInfoDTO = new CertificateAddInfoDTO();