When using the node-binance-api, namely the order book, this error appears. I don't know how to solve it. Experience is not enough...
TypeError [ERR_INVALID_ARG_VALUE]: The property 'options.family' must be one of: 0, 4, 6. Received false
at lookup (node:dns:143:7)
at node:net:1082:5
at defaultTriggerAsyncIdScope (node:internal/async_hooks:463:18)
at lookupAndConnect (node:net:1081:3)
at Socket.connect (node:net:1019:5)
at Object.connect (node:_tls_wrap:1660:13)
at Agent.createConnection (node:https:142:22)
at Agent.createSocket (node:_http_agent:343:26)
at Agent.addRequest (node:_http_agent:294:10)
at new ClientRequest (node:_http_client:311:16) {
code: 'ERR_INVALID_ARG_VALUE'
}
Node.js v18.0.0
On the previous version, node js was running, but also with an error. However, it worked.
(node:6424) [DEP0153] DeprecationWarning: Type coercion of dns.lookup options is deprecated
(Use `node --trace-deprecation ...` to show where the warning was created)