|License Type||SaaS & On-Premise|
|Agent Mode||Assess & Protect|
|Main Product Category||Node.js Agent|
|Sub Category||Runtime Exception|
Log and console output contains error stating "could not rewrite <filename>".
Part of our instrumentation process involves rewriting source as it is loaded into the module cache. The agent may fail to rewrite some files for a number of reasons: unexpected syntax, weird character encodings, etc. When this happens, the agent will log its failure and load the original, unmodified source into the module cache. While we may have difficulty following dataflow through these files, everything else should work as normal.
If you are seeing these messages, please let us know via the Submit a request link below.