Highlighted
Valued Contributor.
Valued Contributor.
200 views

I got internal server error 500

I made a script and when replay it I got internal server error 500 in (vuser_init) I put the script here The bold part in the script is part that the error appear on 

/* -------------------------------------------------------------------------------
Script Title :
Script Description :


Recorder Version : 911
------------------------------------------------------------------------------- */

vuser_init()
{

web_add_header("Upgrade-Insecure-Requests",
"1");

web_url("Default.aspx_3",
"URL=http://192.168.112.44/I50QC/Default.aspx",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t33.inf",
"Mode=HTML",
EXTRARES,
"Url=WebResource.axd?d=u2iwSZldrtxrfwkWNZZbghSBJGrLSYpN9zslHTpnJIyf5C36WcNlr3s3uy_jf6LajY7UFVQSpzuiPwdKttze3LTnrSg1&t=637110320437816177", "Referer=http://192.168.112.44/I50QC/Security/SignIn.aspx", ENDITEM,
"Url=ScriptResource.axd?d=2joTwmVDm_gN7TiWTYu1bS-M_rvZ4eh5VmFQqOfjwO4uQ9ogF46xGp4gD1jxfUhJhN8YndsvKvV8QQ9v_NVh_6rCDhuOTXe_-GFVUWb0xUGv5O18O87rBWDqay4w_hBeIkaBfvMtsUyd7zu7xgU2lFwAeok1&t=ffffffffe6d5a9ac", "Referer=http://192.168.112.44/I50QC/Security/SignIn.aspx", ENDITEM,
"Url=ScriptResource.axd?d=k3NflfjtfPU_5VPt9OyW2se8sJVympTbPCdEJc8HCEv1nCaaOM7Rsv4SjpkfFZUoyih-qNGckFXkgsTyS8qaJT5xQP50ex6zGxGf-Gk-4DzB49ZgPz9smpWEX9iNITd8vQv1wjN6yUebYGyqnLGYsz5x9jJ-ap9ccwvbbpsKg8BKzK0E0&t=ffffffffe6d5a9ac", "Referer=http://192.168.112.44/I50QC/Security/SignIn.aspx", ENDITEM,
"Url=WebResource.axd?d=QKmSK8_7LAoTrgJYM-UWvfLVCt-JtB7DyqC9VByjgBtXPEVo4Fkm8BGQmE0USIyxwIgioMAXKPg1KgC-KJmCm7jfLts1&t=637110320437816177", "Referer=http://192.168.112.44/I50QC/Security/SignIn.aspx", ENDITEM,
"Url=Security/js/Login-js.js", "Referer=http://192.168.112.44/I50QC/Security/SignIn.aspx", ENDITEM,
"Url=Security/js/DevelopersWork.js", "Referer=http://192.168.112.44/I50QC/Security/SignIn.aspx", ENDITEM,
"Url=Security/js/UserInterface.js", "Referer=http://192.168.112.44/I50QC/Security/SignIn.aspx", ENDITEM,
"Url=Security/js/CustomValidator.js", "Referer=http://192.168.112.44/I50QC/Security/SignIn.aspx", ENDITEM,
"Url=Security/js/bootstrap.min.js", "Referer=http://192.168.112.44/I50QC/Security/SignIn.aspx", ENDITEM,
"Url=Security/fonts/fontawesome-webfont.woff2?v=4.3.0", "Referer=http://192.168.112.44/I50QC/Security/css/icons.css", ENDITEM,
LAST);

web_url("HttpCombiner.ashx_4",
"URL=http://192.168.112.44/I50QC/HttpCombiner.ashx?s=AllJavaScriptRef&t=text/javascript&v=1073&l=",
"Resource=0",
"RecContentType=text/javascript",
"Referer=http://192.168.112.44/I50QC/Security/SignIn.aspx",
"Snapshot=t34.inf",
"Mode=HTML",
LAST);

web_url("powered-By.png_3",
"URL=http://192.168.112.44/I50QC/Security/images/powered-By.png",
"Resource=0",
"RecContentType=image/png",
"Referer=http://192.168.112.44/I50QC/Security/css/Login.css",
"Snapshot=t35.inf",
"Mode=HTML",
LAST);

lr_start_transaction("TR1_Login");

web_add_header("Upgrade-Insecure-Requests",
"1");

web_url("Default.aspx_4",
"URL=http://192.168.112.44/I50QC/Default.aspx",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.112.44/I50QC/Security/SignIn.aspx",
"Snapshot=t36.inf",
"Mode=HTML",
EXTRARES,
"Url=WebResource.axd?d=u2iwSZldrtxrfwkWNZZbghSBJGrLSYpN9zslHTpnJIyf5C36WcNlr3s3uy_jf6LajY7UFVQSpzuiPwdKttze3LTnrSg1&t=637110320437816177", ENDITEM,
"Url=ScriptResource.axd?d=2joTwmVDm_gN7TiWTYu1bS-M_rvZ4eh5VmFQqOfjwO4uQ9ogF46xGp4gD1jxfUhJhN8YndsvKvV8QQ9v_NVh_6rCDhuOTXe_-GFVUWb0xUGv5O18O87rBWDqay4w_hBeIkaBfvMtsUyd7zu7xgU2lFwAeok1&t=ffffffffe6d5a9ac", ENDITEM,
"Url=ScriptResource.axd?d=k3NflfjtfPU_5VPt9OyW2se8sJVympTbPCdEJc8HCEv1nCaaOM7Rsv4SjpkfFZUoyih-qNGckFXkgsTyS8qaJT5xQP50ex6zGxGf-Gk-4DzB49ZgPz9smpWEX9iNITd8vQv1wjN6yUebYGyqnLGYsz5x9jJ-ap9ccwvbbpsKg8BKzK0E0&t=ffffffffe6d5a9ac", ENDITEM,
"Url=Styles/BaseStyles/fonts/fontawesome-webfont.woff2?v=4.3.0", "Referer=http://192.168.112.44/I50QC/Styles/BaseStyles/css/icons.css", ENDITEM,
"Url=Styles/BaseStyles/fonts/oswald-light-webfont.woff2", "Referer=http://192.168.112.44/I50QC/Styles/BaseStyles/css/customized.css", ENDITEM,
"Url=Styles/BaseStyles/fonts/oswald-medium-webfont.woff2", "Referer=http://192.168.112.44/I50QC/Styles/BaseStyles/css/customized.css", ENDITEM,
"Url=Styles/BaseStyles/fonts/glyphicons-halflings-regular.woff2", "Referer=http://192.168.112.44/I50QC/Styles/BaseStyles/css/icons.css", ENDITEM,
"Url=Styles/BaseStyles/fonts/robotocondensed-regular-webfont.woff2", "Referer=http://192.168.112.44/I50QC/Styles/BaseStyles/css/customized.css", ENDITEM,
"Url=Styles/BaseStyles/fonts/roboto-medium-webfont.woff2", "Referer=http://192.168.112.44/I50QC/Styles/BaseStyles/css/customized.css", ENDITEM,
LAST);

web_url("HttpCombiner.ashx_5",
"URL=http://192.168.112.44/I50QC/HttpCombiner.ashx?s=AllJavaScriptRef&t=text/javascript&v=1073&l=1",
"Resource=0",
"RecContentType=text/javascript",
"Referer=http://192.168.112.44/I50QC/Default.aspx",
"Snapshot=t37.inf",
"Mode=HTML",
LAST);

web_url("DXR.axd_3",
"URL=http://192.168.112.44/I50QC/DXR.axd?r=1_187,1_101,1_180,1_98,1_172,1_170-Z4P9j",
"Resource=0",
"RecContentType=text/javascript",
"Referer=http://192.168.112.44/I50QC/Default.aspx",
"Snapshot=t38.inf",
"Mode=HTML",
LAST);

web_add_auto_header("Origin",
"http://192.168.112.44");

web_custom_request("GetLastVisits",
"URL=http://192.168.112.44/I50QC/Default.aspx/GetLastVisits",
"Method=POST",
"Resource=0",
"RecContentType=application/json",
"Referer=http://192.168.112.44/I50QC/Default.aspx",
"Snapshot=t39.inf",
"Mode=HTML",
"EncType=application/json; charset=UTF-8",
LAST);

web_custom_request("FillDashboardDDL",
"URL=http://192.168.112.44/I50QC/Default.aspx/FillDashboardDDL",
"Method=POST",
"Resource=0",
"RecContentType=application/json",
"Referer=http://192.168.112.44/I50QC/Default.aspx",
"Snapshot=t41.inf",
"Mode=HTML",
"EncType=application/json; charset=UTF-8",
LAST);

web_custom_request("GetOrganizations",
"URL=http://192.168.112.44/I50QC/Default.aspx/GetOrganizations",
"Method=POST",
"Resource=0",
"RecContentType=application/json",
"Referer=http://192.168.112.44/I50QC/Default.aspx",
"Snapshot=t42.inf",
"Mode=HTML",
"EncType=application/json; charset=UTF-8",
LAST);

web_custom_request("GetTreeContents",
"URL=http://192.168.112.44/I50QC/Default.aspx/GetTreeContents",
"Method=POST",
"Resource=0",
"RecContentType=application/json",
"Referer=http://192.168.112.44/I50QC/Default.aspx",
"Snapshot=t43.inf",
"Mode=HTML",
"EncType=application/json; charset=UTF-8",
LAST);

web_custom_request("getSessionTimeout",
"URL=http://192.168.112.44/I50QC/Default.aspx/getSessionTimeout",
"Method=POST",
"Resource=0",
"RecContentType=application/json",
"Referer=http://192.168.112.44/I50QC/Default.aspx",
"Snapshot=t44.inf",
"Mode=HTML",
"EncType=application/json; charset=UTF-8",
LAST);

web_custom_request("GetUserNotifications",
"URL=http://192.168.112.44/I50QC/Default.aspx/GetUserNotifications",
"Method=POST",
"Resource=0",
"RecContentType=application/json",
"Referer=http://192.168.112.44/I50QC/Default.aspx",
"Snapshot=t45.inf",
"Mode=HTML",
"EncType=application/json; charset=UTF-8",
LAST);

web_custom_request("GetLastActivity",
"URL=http://192.168.112.44/I50QC/Default.aspx/GetLastActivity",
"Method=POST",
"Resource=0",
"RecContentType=application/json",
"Referer=http://192.168.112.44/I50QC/Default.aspx",
"Snapshot=t46.inf",
"Mode=HTML",
"EncType=application/json; charset=UTF-8",
LAST);

web_revert_auto_header("Origin");

web_custom_request("negotiate_2",
"URL=http://192.168.112.44/I50QC/signalr/negotiate?name=142443&connectionData=%5B%7B%22name%22%3A%22notificationshub%22%7D%5D&clientProtocol=1.3&_=1587461115403",
"Method=GET",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.112.44/I50QC/Default.aspx",
"Snapshot=t47.inf",
"Mode=HTML",
"EncType=application/json; charset=UTF-8",
LAST);

web_add_auto_header("Origin",
"http://192.168.112.44");

web_custom_request("GetPanes",
"URL=http://192.168.112.44/I50QC/Default.aspx/GetPanes",
"Method=POST",
"Resource=0",
"RecContentType=application/json",
"Referer=http://192.168.112.44/I50QC/Default.aspx",
"Snapshot=t48.inf",
"Mode=HTML",
"EncType=application/json; charset=UTF-8",
LAST);

web_custom_request("GetUserPreferences",
"URL=http://192.168.112.44/I50QC/Default.aspx/GetUserPreferences",
"Method=POST",
"Resource=0",
"RecContentType=application/json",
"Referer=http://192.168.112.44/I50QC/Default.aspx",
"Snapshot=t49.inf",
"Mode=HTML",
"EncType=application/json; charset=UTF-8",
LAST);

web_custom_request("GetTasks",
"URL=http://192.168.112.44/I50QC/Default.aspx/GetTasks",
"Method=POST",
"Resource=0",
"RecContentType=application/json",
"Referer=http://192.168.112.44/I50QC/Default.aspx",
"Snapshot=t51.inf",
"Mode=HTML",
"EncType=application/json; charset=UTF-8",
LAST);

web_revert_auto_header("Origin");

web_url("Approve.png",
"URL=http://192.168.112.44/I50QC/Styles/BaseStyles/images/Approve.png",
"Resource=0",
"RecContentType=image/png",
"Referer=http://192.168.112.44/I50QC/Styles/BaseStyles.css",
"Snapshot=t54.inf",
"Mode=HTML",
LAST);

web_url("post.png",
"URL=http://192.168.112.44/I50QC/Styles/BaseStyles/images/post.png",
"Resource=0",
"RecContentType=image/png",
"Referer=http://192.168.112.44/I50QC/Styles/BaseStyles.css",
"Snapshot=t56.inf",
"Mode=HTML",
LAST);

web_url("settle.png",
"URL=http://192.168.112.44/I50QC/Styles/BaseStyles/images/settle.png",
"Resource=0",
"RecContentType=image/png",
"Referer=http://192.168.112.44/I50QC/Styles/BaseStyles.css",
"Snapshot=t57.inf",
"Mode=HTML",
LAST);

web_url("Decide.png",
"URL=http://192.168.112.44/I50QC/Styles/BaseStyles/images/Decide.png",
"Resource=0",
"RecContentType=image/png",
"Referer=http://192.168.112.44/I50QC/Styles/BaseStyles.css",
"Snapshot=t58.inf",
"Mode=HTML",
LAST);

lr_end_transaction("TR1_Login",LR_AUTO);

return 0;
}

0 Likes
5 Replies
Highlighted
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

Re: I got internal server error 500

500 is a internal error which always means that the data you sent is not in a format accepted by the server.

You may compare the snapshots of record and replay to see what's the difference.

 

0 Likes
Highlighted
Valued Contributor.
Valued Contributor.

Re: I got internal server error 500

I do compare the response body in recording and replay and it is different  from each other

2020-04-22_16-40-01.png

0 Likes
Highlighted
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

Re: I got internal server error 500

how about the request?

0 Likes
Highlighted
Valued Contributor.
Valued Contributor.

Re: I got internal server error 500

Recording Request row data
POST /I50QC/Default.aspx/GetTreeContents HTTP/1.1
Host: 192.168.112.44
Connection: keep-alive
Content-Length: 0
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36
Content-Type: application/json; charset=UTF-8
Accept: */*
Origin: http://192.168.112.44
Referer: http://192.168.112.44/I50QC/Default.aspx
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Cookie: ASP.NET_SessionId=z5xtyyfku4tfqqnk5kmihtww; UserID=142443; Username=

 

Replay Request row data
POST /I50QC/Default.aspx/GetTreeContents HTTP/1.1
Content-Type: application/json; charset=UTF-8
Referer: http://192.168.112.44/I50QC/Default.aspx
Origin: http://192.168.112.44
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Accept: */*
Connection: Keep-Alive
Host: 192.168.112.44
Cookie: ASP.NET_SessionId=thta0jmvxtd3ju4oub0q1vmz
Content-Length: 0

0 Likes
Highlighted
Valued Contributor.
Valued Contributor.

Re: I got internal server error 500

 

The request body part is disabled

2020-04-23_11-31-46.png

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.