Hello,
I am using CMDBuild Ready2use 2.3 (CMDBuild CORE 3.4.3)
When I try to gain a sessionId using the REST API whith the following request
curl -v -X POST https://hostname:443/cmdbuild/services/rest/v3/sessions?scope=service&returnId=true -H "Content-Type: application/json" -d '{"username": "username", "password": "password"}'
I get the following error message
{"success":false,"messages":[{"level":"ERROR","show_user":false,"message":"org.cmdbuild.utils.ws3.utils.Ws3Exception: error processing request =< ws3rest:post:sessions >, caused by: org.cmdbuild.utils.ws3.utils.Ws3Exception: error processing request with handler = Ws3RequestMethodHanlder{service=org.cmdbuild.service.rest.v3.endpoint.SessionsWs$$EnhancerBySpringCGLIB$$5b83b351, method=create}, caused by: org.cmdbuild.utils.ws3.utils.Ws3FrameworkException: error building method args for handler = Ws3RequestMethodHanlder{service=org.cmdbuild.service.rest.v3.endpoint.SessionsWs$$EnhancerBySpringCGLIB$$5b83b351, method=create}, caused by: java.lang.IllegalArgumentException: missing required payload content","_message_translation":"org.cmdbuild.utils.ws3.utils.Ws3Exception: error processing request =< ws3rest:post:sessions >, caused by: org.cmdbuild.utils.ws3.utils.Ws3Exception: error processing request with handler = Ws3RequestMethodHanlder{service=org.cmdbuild.service.rest.v3.endpoint.SessionsWs$$EnhancerBySpringCGLIB$$5b83b351, method=create}, caused by: org.cmdbuild.utils.ws3.utils.Ws3FrameworkException: error building method args for handler = Ws3RequestMethodHanlder{service=org.cmdbuild.service.rest.v3.endpoint.SessionsWs$$EnhancerBySpringCGLIB$$5b83b351, method=create}, caused by: java.lang.IllegalArgumentException: missing required payload content"}]}
What I am doing wrong ?
Thanks in advance for your responses and help.