Hi Anupam,
Error seems to be in parsing the request.
I assume you are trying to invoke api via curl.
You can try below format once:
curl -X POST
https://reqbin.com/echo/post/json -H "Content-Type: application/json" -H 'Postman-Token:ca6268dd-7324-4909-b521-d3aa7a658d70' -H 'cache-control:no-cache' -d "{\"username\":\"xxx\",\"password\":\"xxx\"}"
Thanks
------------------------------
Regards,
Vaibhav Jain
Capgemini
------------------------------
Original Message:
Sent: 10-14-2020 08:39 AM
From: Anupam D
Subject: 400 Bad Request error for ACL/authenticate invoke api
Hi Team,
Request:
curl -X POST \
https://xxx.xx:8443/api/Dcm/ACL/authenticate \
-H 'Content-Type: application/json' \
-H 'Postman-Token: ca6268dd-7324-4909-b521-d3aa7a658d70' \
-H 'cache-control: no-cache' \
-d '{
"username": "xxx",
"password": "xxx"
}'
Seeing 400 Bad Request for ACL Lisa invoke API and error getting is as follows:
Error:
{
"id": 1010,
"message": "Failed to parse JSON. Please check. Cannot deserialize instance of `java.util.ArrayList` out of VALUE_STRING token\n at [Source: (org.eclipse.jetty.server.HttpInputOverHTTP); line: 2, column: 17] (through reference chain: com.sun.jersey.api.representation.Form[\"username\"])"
}
Regards,
Anupam