|License Type||SaaS & On-Premises|
|Agent Mode||Assess & Protect|
|Main Product Category||Node.js Agent|
|Sub Category||Runtime Exception|
Log and console output contains a warning stating
could not rewrite
Part of the Node.js 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, unusual character encodings, etc. When this happens, the agent will log its failure and load the original, unmodified source into the module cache. While the agent 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.