Error Code Portal
Node.jsNode.jsError code

ERR_TLS_INVALID_CONTEXT

tls invalid context

Code ERR_TLS_INVALID_CONTEXT · An issue reported by Node.js.

The context must be a SecureContext.

Troubleshooting and diagnostic links

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