Error Code Portal
Node.jsNode.jsError code

ERR_INVALID_PROTOCOL

invalid protocol

Code ERR_INVALID_PROTOCOL · An issue reported by Node.js.

An invalid options.protocol was passed to http.request().

Troubleshooting and diagnostic links

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