Web app. 4642-4981.
When a user logs out they are redirected to my logout.a5w page. In that page is the code you see below. This works most of the time. On occasion, however, the user will get a 500 error. Also below is the error from the log. So, what is going on here? Is there something I need to improve upon?
Error message from logs...
Mon Feb 5 10:03:30 2018
Thread: AppServerWorker8
Request URI: /logout.a5w
Script: " /logout.a5w"
Line: 19
xb = xb.user_tracker(pUser.userId,clientid,whatTask,whatPage,oldvalue,newValue)
Variable type mismatch: Cannot assign data of type 'C' to variable of type 'P'.
Execution Stack:
0#1 evaluate_shared_private(
0#39 OOhttpdServerClientMIME(ptemp,"AppServerMain")
0#2 A5WCallResult = evaluate_a5w_to_response(page_contents,Response,quote(" " + eval_settings.global.Request.ScriptName),eval_settings,EVALUATE_A5W_TIMEOUT,RequestBundle.RequestInfo.Filename.Path)
0#19 xb = xb.user_tracker(pUser.userId,clientid,whatTask,whatPage,oldvalue,newValue)
When a user logs out they are redirected to my logout.a5w page. In that page is the code you see below. This works most of the time. On occasion, however, the user will get a 500 error. Also below is the error from the log. So, what is going on here? Is there something I need to improve upon?
Code:
dim xb as p xb = require("user_tracker") dim pUser as p a5ws_logged_in_user_values(pUser) dim userid as c = pUser.userId dim clientid as c = session.__protected__clientid dim whatTask as c = "Logout. User: " + pUser.userId dim whatPage as c = "Logout Page" dim oldvalue as c = "N/A" dim newValue as c = "N/A" xb = xb.user_tracker(pUser.userId,clientid,whatTask,whatPage,oldvalue,newValue) a5ws_logoutuser() response.redirect("login.a5w")
Mon Feb 5 10:03:30 2018
Thread: AppServerWorker8
Request URI: /logout.a5w
Script: " /logout.a5w"
Line: 19
xb = xb.user_tracker(pUser.userId,clientid,whatTask,whatPage,oldvalue,newValue)
Variable type mismatch: Cannot assign data of type 'C' to variable of type 'P'.
Execution Stack:
0#1 evaluate_shared_private(
0#39 OOhttpdServerClientMIME(ptemp,"AppServerMain")
0#2 A5WCallResult = evaluate_a5w_to_response(page_contents,Response,quote(" " + eval_settings.global.Request.ScriptName),eval_settings,EVALUATE_A5W_TIMEOUT,RequestBundle.RequestInfo.Filename.Path)
0#19 xb = xb.user_tracker(pUser.userId,clientid,whatTask,whatPage,oldvalue,newValue)
Comment