Hi Thanh,

That curl request looks good and I don't understand why it is failing.
Have you been able to post other data to your Usergrid installation?

How did you obtain and build Usergrid?

Dave

On Tue, Dec 1, 2015 at 11:40 AM Thành Vũ Trung <[email protected]>
wrote:

> Hi all,
> Why I could not create new user or new custom entity by POST request? I
> used to PUT method, It's ok.
> Example:
> + Request: curl -X POST
> https://localhost:8080/v2tmultimedia/sandbox/users?access_token=YWTt7E9sAJg8EeWh7dcfIHBYKgAAAVGCH_4DcQ5PXQVc2iunGEAOY0FSaqaI33A
> -d '{"username":"demo1","name":"Demo1","email":"[email protected]
> ","password":"Demo_123"}'
> + Response error:
> "error":"unrecognized_property","timestamp":1448987542574,"duration":1,"exception":"org.codehaus.jackson.map.exc.UnrecognizedPropertyException","error_description":"Unrecognized
> field \"username\" (Class com.sun.jersey.core.provider.EntityHolder), not
> marked as ignorable\n at [Source:
> org.apache.usergrid.rest.filters.MeteringFilter$InputStreamAdapter@7d584fe4;
> line: 1, column: 14] (through reference chain:
> com.sun.jersey.core.provider.EntityHolder[\"username\"])"}
>
>
> I deploy usergrid 1.0.2 on Ubuntu 14.04, jdk 8, tomcat 8.0.29
>
> Hope you can help me resolve this issue. Thank you very much.
> --
>
> *---------------------------------------------------------------------------------------------*
> *Thanh Vu*
>
> *Information Technology Engineer*
> *Mobile:* +84903298791
> *Skype:* v2t_nd |* Email:* maito:[email protected]
>
>

Reply via email to