Request Body:
aadhaar
:
“1234567890”
dayOfBirth
:
“9”
districtCode
:
“507”
email
:
“test@gmail.com”
firstName
:
“Sai”
gender
:
“M”
healthId
:
“kchaitanya.234”
lastName
:
“Chaitanya”
middleName
:
“”
mobile
:
“mobile no. removed from here”
mode
:
“MOBILE”
monthOfBirth
:
“5”
name
:
“Sai Chaitanya”
password
:
“test#12345”
pincode
:
“500001”
restrictions
:
“NA”
stateCode
:
“36”
subdistrictCode
:
“NA”
villageCode
:
“NA”
wardCode
:
“NA”
yearOfBirth
:
“1998”
Response Body:
2023-09-06 06:06:49.340 ERROR 6417 — [nio-9001-exec-3] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.web.client.HttpClientErrorException$UnprocessableEntity: 422 : “{“code”:“HIS-422”,“message”:“Unable to process the current request due to incorrect data entered.”,“details”:[{“message”:“Please enter a valid District.”,“code”:“HIS-1025”,“attribute”:null}]}”] with root cause
org.springframework.web.client.HttpClientErrorException$UnprocessableEntity: 422 : “{“code”:“HIS-422”,“message”:“Unable to process the current request due to incorrect data entered.”,“details”:[{“message”:“Please enter a valid District.”,“code”:“HIS-1025”,“attribute”:null}]}”
at org.springframework.web.client.HttpClientErrorException.create(HttpClientErrorException.java:141) ~[spring-web-5.3.24.jar!/:5.3.24]
Can you pls check and let us know how to resolve this.