Any thoughts on why Autoresponder replaced js file introduces js errors?

1 posts, 0 answers
  1. K.W.
    K.W. avatar
    6 posts
    Member since:
    Mar 2015

    Posted 01 Nov 2017 Link to this post

    As the title suggests, any thoughts appreciated to run this down, something is right in front of me that I can no longer see, so appreciate any pointers,

    I'm replacing a requested .js file with a local file using Autoresponder.

    But, javascript errors started showing up (console error messages under devtools) when the Autoresponder rule was active and replacing the request with a local .js file, and disappeared when turned off and the original file served.

    In order to work out what was going on, I grabbed the contents of the original file, saved it locally, and used that to replace the .js requested by the page. But, still getting the same .js errors showing!

    Verified the local file was exactly the same contents as the served file, and the Autoresponder rule works, so, what is happening that causes the use of Autoresponder to cause replaced javascript to throw errors?

    ???  What the...... ?

    I've worked Autoresponder too many times to count, it works great, 

    And, this is just javascript, copied directly from the response from the server, which works perfectly fine (no console errors) when Autoresponder is turned off, but, when Autoresponder is turned on and replacing the requested .js file with a local copy of the same file, devtools console reports all kinds of errors (missing references, etc...,

    eg., 

    account.js:2

    Uncaught ReferenceError: fb is not defined
        at success (account.js:2)
        at Object.cb [as success] (logout.jsp?DPSLogout=true:389)
        at o (jquery.min.js:2)
        at Object.fireWith [as resolveWith] (jquery.min.js:2)
        at w (jquery.min.js:4)
        at XMLHttpRequest.d (jquery.min.js:4)

     

    Thanks for your help, 

    KWL

Back to Top