I recorded my scripts using JMeter proxy recorder. The JMeter scripts ran perfectly after I configured the Header Manager and the Authorization Manager. All the HTTP requests were responded perfectly. Only one of the HTTP request where I had performed an edit action in the application is giving unauthorized error. I am passing the token by correlation. Anybody has any suggestion on why is this happening and what is the solution?
Thread Name: Thread Group 1-1
Sample Start: 2018-04-27 12:03:47 IST
Load time: 72
Connect Time: 1
Latency: 72
Size in bytes: 497
Sent bytes:1539
Headers size in bytes: 434
Body size in bytes: 63
Sample Count: 1
Error Count: 1
Data type ("text"|"bin"|""): text
Response code: 401
Response message: Unauthorized
Response headers:
HTTP/1.0 401 Unauthorized
Date: Fri, 27 Apr 2018 06:33:47 GMT
Server: Apache/2.4.18 (Ubuntu)
Vary: Authorization
Cache-Control: no-cache, private
Access-Control-Allow-Methods: HEAD, GET, POST, PUT, PATCH, DELETE
Access-Control-Allow-Headers:
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: Location
Content-Length: 63
Content-Type: application/json
Via: HTTP/1.1 sophos.http.proxy:3128
Connection: close
HTTPSampleResult fields:
ContentType: application/json
DataEncoding: null
**Request:**
POST http://*********************************
POST data:
{"isDropdown":1}
[no cookies]
Request Headers:
Connection: keep-alive
Referer: http:// //Referer site//
Accept-Language: en-US,en;q=0.5
Origin: http:// //Origin site//
Content-Type: application/json;charset=utf-8
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101
Firefox/45.0
Accept: application/json, text/plain, */*
Authorization: Bearer //token//
Content-Length: 16
Host: *********
Response Data:
{"message":"You don't have permissions to perform this action"}