Error code

Node.js ERR_UNESCAPED_CHARACTERS

NODE.JSERR_UNESCAPED_CHARACTERS
Runtime Error Code· An error code from a programming runtime or package manager, like Node.js or npm.

What it means

A URL or path string contains characters that must be percent-encoded but were passed unescaped.

How to fix it

  1. Encode the URL with encodeURIComponent or encodeURI before passing it.
  2. Use the WHATWG URL API (new URL()) to build URLs safely.
  3. Check query string values for special characters before appending them to a URL.

Not affiliated with Node.js. Answer summarized from the manufacturer's manual linked above; consult that source for the authoritative procedure.