Getting issue ERR_INVALID_ARG_VALUE
See original GitHub issueWhenever I try to call any API I get this error
TypeError [ERR_INVALID_ARG_VALUE]: The property 'options.family' must be one of: 0, 4, 6. Received false
2022-04-26T16:02:13.318271+00:00 app[web.1]: at lookup (node:dns:143:7)
2022-04-26T16:02:13.318271+00:00 app[web.1]: at node:net:1082:5
2022-04-26T16:02:13.318272+00:00 app[web.1]: at defaultTriggerAsyncIdScope (node:internal/async_hooks:463:18)
2022-04-26T16:02:13.318273+00:00 app[web.1]: at lookupAndConnect (node:net:1081:3)
2022-04-26T16:02:13.318273+00:00 app[web.1]: at Socket.connect (node:net:1019:5)
2022-04-26T16:02:13.318273+00:00 app[web.1]: at Object.connect (node:_tls_wrap:1660:13)
2022-04-26T16:02:13.318274+00:00 app[web.1]: at Agent.createConnection (node:https:142:22)
2022-04-26T16:02:13.318274+00:00 app[web.1]: at Agent.createSocket (node:_http_agent:343:26)
2022-04-26T16:02:13.318274+00:00 app[web.1]: at Agent.addRequest (node:_http_agent:294:10)
2022-04-26T16:02:13.318275+00:00 app[web.1]: at new ClientRequest (node:_http_client:311:16)
2022-04-26T16:02:13.318275+00:00 app[web.1]: at Object.request (node:https:352:10)
2022-04-26T16:02:13.318275+00:00 app[web.1]: at Object.<anonymous> (/app/node_modules/agent-base/patch-core.js:25:22)
2022-04-26T16:02:13.318276+00:00 app[web.1]: at Object.request (/app/node_modules/socks-proxy-agent/node_modules/agent-base/patch-core.js:23:20)
2022-04-26T16:02:13.318277+00:00 app[web.1]: at Request.start (/app/node_modules/request/request.js:751:32)
2022-04-26T16:02:13.318277+00:00 app[web.1]: at Request.end (/app/node_modules/request/request.js:1505:10)
2022-04-26T16:02:13.318278+00:00 app[web.1]: at end (/app/node_modules/request/request.js:564:14)
2022-04-26T16:02:13.318278+00:00 app[web.1]: at Immediate.<anonymous> (/app/node_modules/request/request.js:578:7)
2022-04-26T16:02:13.318278+00:00 app[web.1]: at process.processImmediate (node:internal/timers:471:21) {
2022-04-26T16:02:13.318279+00:00 app[web.1]: code: 'ERR_INVALID_ARG_VALUE'
2022-04-26T16:02:13.318281+00:00 app[web.1]: } TypeError [ERR_INVALID_ARG_VALUE]: The property 'options.family' must be one of: 0, 4, 6. Received false at 4/26/2022, 4:02:13 PM in prod
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:17
Top Results From Across the Web
The "path" argument must be of type string ... - Stack Overflow
In my case I was using const path = require( "path" ) and then using path to join a subdirectory like path.join( myDirectoryName...
Read more >The path argument must be of type string - Reactgo
In this tutorial, we are going to learn about how to fix the TypeError [ERR_INVALID_ARG_TYPE]: The “path” argument must be of type string....
Read more >Why I got TypeError [ERR_INVALID_ARG_TYPE]: The "path ...
When I try to upload my files to the server I get this error. My code on localhost works without problem, but when...
Read more >[Fix] TypeError [ERR_INVALID_ARG_TYPE]: The “path ...
In this story I'll go over three fixes you can try to get rid of this error. Photo by Elisa Ventur on Unsplash....
Read more >Null Arguments are invalid error - Appian Community
I am getting the following pop-up error while submitting a form. I have checked that all the values in null checks (also the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I found a better solution than downgrade. At the Binance object constructor, you can specify the property ‘family’ in the options object, with 0, 4 or 6, as mentioned in the error, referring to IPv4+6, IPv4 and IPv6, respectively. The option default is false, that is incompatible with Node 18’s dns lookup.
As suggested by @luiztools, it works. I use Node 18 and did modify the ‘family’ options to 4 which is IPV4(my internet provider support IPV4). You guys can try to change the number to 0, 4 or 6 Here is my sample code