Loadrunner Json web_custom_request Error -26627: HTTP Status-Code=404 (Not Found)

I have recorded a script with following  web_custom_request

web_custom_request("page_6",
  "URL=">XXXXXX:8443/.../page
  "Method=POST",
  "TargetFrame=",
  "Resource=0",
  "RecContentType=application/json",
  "Referer=">XXXX:8443/.../mnt",
  "Snapshot=t212.inf",
  "Mode=HTML",
  "EncType=application/json;charset=utf-8",
  "Body={\"filters\":{\"filters\":[{\"property\":\"transportationAssetType.id\",\"filterParameters\":[{\"type\":\"eq\",\"values\":[\"7\"],\"group\":null,\"operator\":null}]}]},\"sort\":{\"sortParameters\":[]},\"pageNumber\":1,\"pageSize\":20}",
  LAST);

Request seems to be working fine in Jmeter but we are planning to use loadrunner and my script is failing with following error

 Error -26627: HTTP Status-Code=404 (Not Found) for "XXXXX:8443/.../page

I can following 2 warning as well before this error

vuser_end.c(24): web_custom_request("page_6") started   [MsgId: MMSG-26355]
vuser_end.c(24): Warning: The string '"type":"eq","values":["7"],"group":null,"operator":null' with parameter delimiters is not a parameter.
vuser_end.c(24): Warning: The string '"sortParameters":[]' with parameter delimiters is not a parameter.
vuser_end.c(24): t=162063ms: 289-byte response headers for "">XXXXXX:8443/.../page (RelFrameId=1, Internal ID=763)
vuser_end.c(24):     HTTP/1.1 404 Not Found\r\n
vuser_end.c(24):     Server: Apache-Coyote/1.1\r\n
vuser_end.c(24):     X-Content-Type-Options: nosniff\r\n
vuser_end.c(24):     X-Frame-Options: SAMEORIGIN\r\n
vuser_end.c(24):     X-XSS-Protection: 1\r\n
vuser_end.c(24):     Cache-Control: no-cache\r\n
vuser_end.c(24):     Expires: -1\r\n
vuser_end.c(24):     Pragma: no-cache\r\n
vuser_end.c(24):     Content-Type: text/html;charset=UTF-8\r\n
vuser_end.c(24):     Content-Length: 670\r\n
vuser_end.c(24):     Date: Tue, 18 Apr 2017 17:04:23 GMT\r\n

Any Suggestion to resolve this error ?

  • Hi ,

     

    I also facing the same issue. But i got response 200 and records/policies are not saving. Did anyone got a solution for this

  • Hi,

    I am able to see few values are not dynamically handled.

    Is below values are changine when recording 2nd time with different users?

    1)tsr=1492515446164(13 digit timestamp which can be handled using web_save_timestamp_param)

    2)eq\",\"values\":[\"7(Please check whether Eq value is dynamic or not by recording with different user as the whole json is thrown as warning means something is sent wrongly which is showing 404)

    3)Page number and Page Size.( Its better to correlate the page numbers to make the script robust)

    Regards,

    Raghul M