reportportal / agent-js-postman

Agent to integrate Postman (based on Newman collection runner) with ReportPortal.
https://www.npmjs.com/package/@reportportal/newman-reporter-agent-js-postman
Apache License 2.0
17 stars 8 forks source link

Cannot deserialize instance of `java.lang.String` out of START_ARRAY token: Jackson error #80

Open MithunDavid opened 2 years ago

MithunDavid commented 2 years ago

newmam agent is throwing below exception for nested for complex json

\Error: Request failed with status code 400: {"errorCode":4001,"message":"Incorrect Request. Invalid JSON input: Cannot deserialize instance of java.lang.String out of START_ARRAY token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of java.lang.String out of START_ARRAY token\n at [Source: (PushbackInputStream); line: 1, column: 192] (through reference chain: com.epam.ta.reportportal.ws.model.StartTestItemRQ[\"parameters\"]->java.util.ArrayList[0]->com.epam.ta.reportportal.ws.model.ParameterResource[\"value\"])"} at /usr/local/lib/node_modules/@reportportal/newman-reporter-agent-js-postman/node_modules/@reportportal/client-javascript/lib/rest.js:36:23

json sample:

[ { "requests": [ { "name": "GetOfficerDetailsByID", "data": [ { "officerID": "5306", "officerNum": "AHD10" }, { "officerID": "5182", "officerNum": "A B81" }, { "officerID": "5304", "officerNum": "AHC00" } ] }, { "name": "ObligorSearchByTIN", "data": [ { "TIN_Number": "202317056", "obligorNum": "3378406459" }, { "TIN_Number": "221611620", "obligorNum": "3378405568" }, { "TIN_Number": "382219512", "obligorNum": "3378485578" }, { "TIN_Number": "271001069", "obligorNum": "3378476544" } ] }, { "name": "GetAllProcessCenters", "data": [ { "processCenterName1": "ALL", "processCenterName2": "East", "processCenterName3": "West" } ] } ] } ]

tranvannhatnam97 commented 3 weeks ago

Guys, fix this bug, pls. Do some thing.