Testing API for POST method, got "Unknown error" in response

1.2k Views Asked by At

I am new to jmeter and I'm testing API for POST method. I put json request in Body & checked the response by using listener as view table tree it shows status as success but i checked in response it shows error message as:

{
  "response": {
    "code": 33113,
    "type": "Error",
    "message": "Unknown error"
  }
}

But when i tried same API in postman it shows correct success Response with output parameters.

I am passing parameters as :

{
    "accessToken" : "35abcs",
    "companyCode" : "abc73",
    "timestamp"   : "1-08-2014",
    "size"        : 10,
    "startIndex"  : 53587
}
1

There are 1 best solutions below

0
On

TRy adding the header with content type as json.