Highlighted
Trusted Contributor.
Trusted Contributor.
777 views

Error -26625: HTTP Status-Code=406 (Not Acceptable) - Unsure how to resolve this

Please note that for the purpose of organizational security, I have masked sensitive data, including domains and IPs and anything else that might seem risky.

In Loadrunner VUGen, I am seeing the following error in Output:

Investigator.c(901): Error -26625: HTTP Status-Code=406 (Not Acceptable) for "https:///complaints/api/assignWorkItem"

Here is the Recording raw data:

POST /complaints/api/assignWorkItem HTTP/1.1
Host: <DOMAIN MASKED>
Connection: keep-alive
Content-Length: 222
Pragma: no-cache
Origin: https://<DOMAIN MASKED>
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3209.0 Safari/537.36
Content-Type: application/json
Access-Control-Allow-Origin: https://<DOMAIN MASKED>
Accept: application/json, text/plain, */*
Cache-Control: no-cache
Access-Control-Allow-Headers: accept, cache-control, origin, x-requested-with, x-file-name, content-type
Expires: -1
Referer: https://<DOMAIN MASKED>/complaints/
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
Cookie: rxVisitor=1539275596972629MIT97TQHCU4S9862V80PDF73E8L4H; JSESSIONID=0000DjjVJqHfOtlUmwLBbNYe-44:-1; BizflowUserID=; REMEMBERAUTOLOGIN=; rememberID=false; BFLOGINTYPE=BIZFLOWSECURITY; WIHSTYLE=Basic
{"sessionInfoXml":"<SESSIONINFO KEY=\"<KEY MASKED>\" USERID=\"0000000130\" SERVERID=\"0000001001\" IP=\"<IP MASKED>\" PORT=\"<PORT MASKED>\" DEPTID=\"9000000000\" USERTYPE=\"U\" />","processId":859,"participantId":"0000000130"}HTTP/1.1 200 OK
Date: Thu, 25 Oct 2018 15:15:24 GMT
X-Powered-By: Servlet/3.0
Keep-Alive: timeout=10
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: application/json;charset=UTF-8
Content-Language: en-US

true

 

Here is the Replay raw data:

POST /complaints/api/assignWorkItem HTTP/1.1
Content-Type: application/json
Referer: https://<DOMAIN MASKED>/complaints/
Accept: application/json, text/plain, */*
Access-Control-Allow-Headers: accept, cache-control, origin, x-requested-with, x-file-name, content-type
Access-Control-Allow-Origin: https://<DOMAIN MASKED>
Origin: https://<DOMAIN MASKED>
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3209.0 Safari/537.36
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Connection: Keep-Alive
Host: <DOMAIN MASKED>
Cookie: rxVisitor=1539275596972629MIT97TQHCU4S9862V80PDF73E8L4H; WIHSTYLE=Basic; BizflowUserID=; REMEMBERAUTOLOGIN=; rememberID=false; BFLOGINTYPE=BIZFLOWSECURITY; JSESSIONID=0000-6LJaE1jyksQhhpnFLvGntL:-1; USEROS=NT
Content-Length: 222

{"sessionInfoXml":"<SESSIONINFO KEY=\"<KEY MASKED>\" USERID=\"0000000140\" SERVERID=\"0000001001\" IP=\"<IP MASKED>\" PORT=\"<PORT MASKED>\" DEPTID=\"9000000000\" USERTYPE=\"U\" />","processId":859,"participantId":"0000000140"}HTTP/1.1 406 Not Acceptable
Date: Fri, 02 Nov 2018 18:21:56 GMT
X-Powered-By: Servlet/3.0
Keep-Alive: timeout=10
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: application/json;charset=UTF-8
Content-Language: en-US

false

 

I'm having a hard time figuring out what I am missing and am hoping someone here can take a look and help me resolve the error.

0 Likes
1 Reply
Highlighted
Outstanding Contributor.. Outstanding Contributor..
Outstanding Contributor..

Re: Error -26625: HTTP Status-Code=406 (Not Acceptable) - Unsure how to resolve this

Hi Jayblah, 

sorry, I'm not an expert on this issue and I've never find this evidence with LoadRunner, but I remember that "406 Not Acceptable" is due to a mismatch from request/response headers. 

Have you tried to call the request from a different software, like SoapUI for example, and see all the headers on the request format?

Lorenzo

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.