Error Code Portal
Node.jsNode.jsError code

ERR_INVALID_STATE

invalid state

Code ERR_INVALID_STATE · An issue reported by Node.js.

Indicates that an operation cannot be completed due to an invalid state. For instance, an object may have already been destroyed, or may be performing another operation.

Troubleshooting and diagnostic links

First check that the document's product, version, and environment match your situation.