Error Code Portal
Node.jsNode.jsError code

ERR_SOCKET_BAD_TYPE

socket bad type

Code ERR_SOCKET_BAD_TYPE · An issue reported by Node.js.

An API function expecting a socket type (udp4 or udp6) received an invalid value.

Troubleshooting and diagnostic links

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