8

A few days ago this started appearing in my Google Apps Script Web App Consoles:

Uncaught (in promise) ReferenceError: currentURL is not defined at then.catch.e (content_script_bundle.js:13)

What might this be?

1
  • It is just a bunch of minified script. – webstermath Nov 28 '18 at 23:24
16

content_script_bundle.js is likely a script within a Chrome Extension. Ghostery has such a js file. Basically, it has caught an error of some kind

window.console.error("Could not run content script", e, currentURL()) 

Unfortunately, the line in the script that pushes the error to the console itself has a minor bug whereby currentURL has not been defined so it squawks.

Just turn off Ghostery or whatever and the error will disappear. Although, you can just ignore it. Easiest though is to right-click the console message and select "Hide messages from content_script_bundle.js" if it's bothering you. If it is Ghostery then mark your site as trusted as noted in the comment below. Probably the best solution.

This is a screenshot from Chrome Inspector.

enter image description here

1
  • 3
    You can mark your site as trusted in Ghostery and the error disappears – besthost Dec 13 '18 at 11:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.