Skip to content
JS
Node.js error

ERR_INVALID_THIS

A Node.js API function was called with an incompatible this value. const urlSearchParams = new URLSearchParams('foo=bar&baz=new'); const buf = Buffer.alloc(1); urlSearchParams.has.call(buf, 'foo'); // Throws a TypeError with code 'ERR_INVALID_THIS'

Reference entryNode.jsFetched

Node.js documentation lists the code ERR_INVALID_THIS without the printed message text.

Category
Node.js error codes
Severity
error
Runtime
node
or press Cmd/Ctrl + Enter. The text is only sent to this site to match it.
Source: Node.js documentation. Data fetched 2026-09-25T01:43:12.379Z.