loadrunnerhttp-status-code-406

Load runner throwing 406 Error while replaying script


While replaying the script I am getting below error message: Error -26625: HTTP Status-Code=406 (Not Acceptable) for "https://example.com" [MsgId: MERR-26625]

406 - Client browser does not accept the MIME type of the requested page.

The page you are looking for cannot be opened by your browser because it has a file name extension that your browser does not accept.

Getting this error at below call

web_custom_request("bootstrap",
                   "URL=https://<Domain Information>",
                   "Method=POST",
                   "Resource=0",
                   "RecContentType=application/json",
                   "Referer=https://<Domain Information>",
                   "Mode=HTTP",
                   "EncType=application/json;

Can you please suggest how can I overcome this error.


Solution

  • Have you considered that you may be missing a header in your request? Also a possibility, cookie mismanagement - Which could also be header related if you needed a cookie value in the header which was unhandled.