Error Code Portal
Node.jsNode.jsError code

ERR_CRYPTO_INVALID_STATE

crypto invalid state

Code ERR_CRYPTO_INVALID_STATE · An issue reported by Node.js.

A crypto method was used on an object that was in an invalid state. For instance, calling cipher.getAuthTag() before calling cipher.final().

Troubleshooting and diagnostic links

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