-
-
Notifications
You must be signed in to change notification settings - Fork 33.9k
Description
TypeError: Cannot read property 'indexOf' of undefined
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:82:51)
here's the relevant line in node.js lib (https://github.com/nodejs/node/blob/master/lib/dns.js#L82)
I have a bot running that polls an sftp server for the existence of a file that is uploaded daily. It connects to socketio so that it can make posts to our main app.
It has suddenly not been working properly for the last 3 days. We have made no changes to the relevant code for a couple of weeks and the stack trace is incredibly unhelpful as it doesn't show what initiated it.
This seems to be happening before the request to the sftp server is made because I would be getting more feedback/logs. The bot successfully connects to our socket server as well, so I'm at a loss for where DNS is even being hit.
connect to socket io --> poll sftp server --> grab file when ready
is all that is happening, so it seems something is happening in the nodejs blackbox between step one and two...
any ideas?