Kentico automation steps not rendering

Luke Hook asked on August 14, 2018 16:56

Hi,

I am unable to access the email marketing automation 'Steps' section within the CMS. This issue isn't apparent on our development environments but only on live. It is showing errors in the console that seem to be related to looking for JS resources via the login.aspx page.

logon.aspx?ReturnUrl=%2fCMSModules%2fWorkflows%2fControls%2fScripts%2fjquery.jsPlumb-1.3.3-all.js:3 Uncaught SyntaxError: Unexpected token < logon.aspx?ReturnUrl=%2fCMSModules%2fWorkflows%2fControls%2fScripts%2fGraph.js:3 Uncaught SyntaxError: Unexpected token < logon.aspx?ReturnUrl=%2fCMSModules%2fWorkflows%2fControls%2fScripts%2fHandlers.js:3 Uncaught SyntaxError: Unexpected token < logon.aspx?ReturnUrl=%2fCMSModules%2fWorkflows%2fControls%2fScripts%2fAbstractNode.js:3 Uncaught SyntaxError: Unexpected token < logon.aspx?ReturnUrl=%2fCMSModules%2fWorkflows%2fControls%2fScripts%2fStandardNode.js:3 Uncaught SyntaxError: Unexpected token < logon.aspx?ReturnUrl=%2fCMSModules%2fWorkflows%2fControls%2fScripts%2fActionNode.js:3 Uncaught SyntaxError: Unexpected token < logon.aspx?ReturnUrl=%2fCMSModules%2fWorkflows%2fControls%2fScripts%2fConditionNode.js:3 Uncaught SyntaxError: Unexpected token < logon.aspx?ReturnUrl=%2fCMSModules%2fWorkflows%2fControls%2fScripts%2fMultichoiceNode.js:3 Uncaught SyntaxError: Unexpected token < logon.aspx?ReturnUrl=%2fCMSModules%2fWorkflows%2fControls%2fScripts%2fUserchoiceNode.js:3 Uncaught SyntaxError: Unexpected token < Tab_Steps.aspx?processid=213&objectid=213:698 Uncaught ReferenceError: graphControlHandler is not defined at Tab_Steps.aspx?processid=213&objectid=213:698 (anonymous) @ Tab_Steps.aspx?processid=213&objectid=213:698 Tab_Steps.aspx?processid=213&objectid=213:798 Uncaught ReferenceError: JsPlumbGraph is not defined at Tab_Steps.aspx?processid=213&objectid=213:798 (anonymous) @ Tab_Steps.aspx?processid=213&objectid=213:798 Tab_Steps.aspx?processid=213&objectid=213:811 Uncaught ReferenceError: JsPlumbGraphWrapper is not defined at Tab_Steps.aspx?processid=213&objectid=213:811 (anonymous) @ Tab_Steps.aspx?processid=213&objectid=213:811

Recent Answers


Luke Hook answered on August 20, 2018 17:24 (last edited on August 20, 2018 17:25)

On further investigation this seems to be possibly related to CSRF issues. In a load balanced environment would calling the automation web service that loads cause CSRF issues if machine switches between request.

I tried disabling CSRF protection but this didn't seem to fix the issue. The error I am seeing in the error logs is as follows. Message: The CSRF hidden field value didn't match the CSRF cookie value.

Exception type: CMS.Protection.Web.UI.CsrfException Stack trace: at CMS.Protection.Web.UI.CsrfProtection.ValidateCsrfTokens(Byte[] cookieToken, Byte[] hiddenFieldToken) at CMS.Protection.Web.UI.CsrfProtection.OnPostMapRequestHandlerExecute(Object sender, EventArgs eventArgs) at CMS.Base.AbstractHandler.CallEventHandler[TArgs](EventHandler 1 h, TArgs e) at CMS.Base.AbstractHandler.Raise[TArgs](String partName, List 1 list, TArgs e, Boolean important) at CMS.Base.SimpleHandler 2.RaiseExecute(TArgs e) at CMS.Base.SimpleHandler 2.RaiseExecute(TArgs e) at CMS.Base.SimpleHandler 2.StartEvent(TArgs e) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.