Highlighted
Contributor.
Contributor.
1611 views

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=https://XXXXXX:8443/delegate/mntresttalend/transportationAsset/page?tsr=1492515446164",
  "Method=POST",
  "TargetFrame=",
  "Resource=0",
  "RecContentType=application/json",
  "Referer=https://XXXX:8443/group/guest/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 "https://XXXXX:8443/delegate/mntresttalend/transportationAsset/page?tsr=1492515446164

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 "https://XXXXXX:8443/delegate/mntresttalend/transportationAsset/page?tsr=1492515446164" (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 ?

0 Likes
2 Replies
Highlighted
Visitor.

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

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

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

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

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

 

0 Likes
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.