Hi Praharsh,
Hi tried replicating your issue on local as well as on the demo UI but had no
luck.I has used exactly your payload but things went fine, not sure why did you
face this issue.Could you please try again and let me know if the issue persist?
Regards,Nikhil
From: Praharsh Bisht <[email protected]>
To: [email protected]
Sent: Sunday, 14 May 2017 9:34 PM
Subject: Fwd: Cannot add address for client
Hi,
I am trying to add address for client in the add client screen, but it
gives a 500 INTERNAL SERVER ERROR.
Request : https://demo.openmf.org/fineract-provider/api/v1/clients?
POST /fineract-provider/api/v1/clients? HTTP/1.1 Host: demo.openmf.org
Connection: keep-alive Content-Length: 1088 Authorization: Basic
bWlmb3M6cGFzc3dvcmQ= Origin: https://demo.openmf.org User-Agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/57.0.2987.133 Safari/537.36 Content-Type:
application/json;charset=UTF-8 Accept: application/json, text/plain, */*
Fineract-Platform-TenantId: default Referer: https://demo.openmf.org/
Accept-Encoding <https://demo.openmf.org/Accept-Encoding>: gzip, deflate,
br Accept-Language: en-GB,en-US;q=0.8,en;q=0.6
*Request Payload: *
{"address":[{"addressTypeId":40,"street":"st","addressLine1":"a1","
addressLine2":"a2","postalCode":"213123"},{"addressTypeId":40,"street":"
st","addressLine1":"a1","addressLine2":"a2","city":"saasda","countryId":30,"
stateProvinceId":50,"postalCode":"213123","isActive":true},{"
addressTypeId":40,"street":"st","addressLine1":"a1","
addressLine2":"a2","city":"saasda","countryId":30,"stateProvinceId":50,"
postalCode":"213123","isActive":true},{"addressTypeId":40,"street":"
st","addressLine1":"a1","addressLine2":"a2","city":"saasda","countryId":30,"
stateProvinceId":50,"postalCode":"213123","isActive":true},{"
addressTypeId":40,"street":"st","addressLine1":"a1","
addressLine2":"a2","city":"saasda","countryId":30,"stateProvinceId":50,"
postalCode":"213123","isActive":true}],"officeId":105,"legalFormId":1,"
firstname":"person","lastname":"last","mobileNo":"234234234","genderId":22,"
clientClassificationId":109,"clientTypeId":31,"active":true,"locale":"en","dateFormat":"dd
MMMM yyyy","activationDate":"14 May 2017","submittedOnDate":"14 May
2017","savingsProductId":null,"externalId":"23312"}
Response : {"timestamp":1494768137369,"status":500,"error":"Internal Server
Error","exception":"java.lang.NullPointerException","message":null}
This is from UI request