Re: [Dhis2-devs] Error while creating a new user.

2016-12-29 Thread Sourabh Bhardwaj
I have recheck the payload again and now its working fine. Thanks for your time. On Thu, Dec 29, 2016 at 6:06 PM, Morten Olav Hansen wrote: > Hm that means something is wrong with your payload. Could you give the > full payload again? > > -- > Morten Olav Hansen > Senior Engineer, DHIS 2 > Unive

Re: [Dhis2-devs] Error while creating a new user.

2016-12-29 Thread Morten Olav Hansen
Hm that means something is wrong with your payload. Could you give the full payload again? -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Thu, Dec 29, 2016 at 1:04 PM, Sourabh Bhardwaj wrote: > Hi Morten, > > Thanks for the reply. I have tried as per y

Re: [Dhis2-devs] Error while creating a new user.

2016-12-29 Thread Sourabh Bhardwaj
Hi Morten, Thanks for the reply. I have tried as per your suggestion and now getting following error: Internal server error: 500 Can not deserialize instance of java.lang.String out of START_ARRAY token↵ at [Source: org.apache.catalina.connector.CoyoteInputStream@3b6c6ca3; line: 1, column: 22] (t

Re: [Dhis2-devs] Error while creating a new user.

2016-12-29 Thread Morten Olav Hansen
Hi Our user model is a bit weird at times (will try to fix for 226). As a workaround you should be able to get this working if you use /api/system/id to get a new uid, then add that to the main user model "id": "your-uid", then inside the userCredentials you would put "userInfo": {"id": "your-id"