You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you make sure that you can connect to the same host and port combination using other tools, e.g. nc? If so, can you try to attach strace to node and share the output?
Can you make sure that you can connect to the same host and port combination using other tools, e.g. nc
I got this error after the same code executed successfully hundreds of thousands of times. (Sure I can connect with other tools.)
I probably should have mentioned in the problem description that this is a sporadic error. In fact this is the first time I saw this error after the same code executed about half a million times without error. (I earlier observed two other errors as well (once each): EAI_AGAIN and ENOTFOUND. But these are "operational" errors, whereas EINVAL smells a software bug.)
I'm getting this using Linux Subsystem for Windows (WSL).
After many https:// outgoing requests, and only when doing hundreds or thousands of them in a short period (but not concurrently, and even with artificially added 100ms pause between requests), the above starts to happen, exactly as described by the author of the bug.
The connectivity is cut down both ways (the listening server is also cut off from listening along with all existing connections; which has nothing to do with the client functionality, which is also cut off).
Other apps running alongside (some Linux native ones and another NodeJS app) are unaffected, but cannot talk to this one that is showing the above behaviour.
If you are not familiar with WSL, it is worth mentioning it does not have the Linux kernel, but an ABI compatible layer, so it could be that NodeJS is not at fault. Just leaving this here, maybe it will help rule out the OS as a culprit after more evidence.
Activity
addaleax commentedon Jun 3, 2017
Can you make sure that you can connect to the same host and port combination using other tools, e.g.
nc? If so, can you try to attachstraceto node and share the output?gireeshpunathil commentedon Jun 3, 2017
I guess the end-point is an HTTPS one - assumption based on the port number.
bnoordhuis commentedon Jun 3, 2017
Can you post your code? Are you using the localAddress or localPort options?
pdkovacs commentedon Jun 3, 2017
I got this error after the same code executed successfully hundreds of thousands of times. (Sure I can connect with other tools.)
I probably should have mentioned in the problem description that this is a sporadic error. In fact this is the first time I saw this error after the same code executed about half a million times without error. (I earlier observed two other errors as well (once each):
EAI_AGAINandENOTFOUND. But these are "operational" errors, whereasEINVALsmells a software bug.)https://github.com/pdkovacs/noip-updater/blob/master/src/backend/MyPublicIpChecker.ts#L33
The request options used in this case were:
Probably not (not explicitly at least). See above.
pdkovacs commentedon Jun 3, 2017
I will, if the error re-occurs at least once more. ;-)
gireeshpunathil commentedon Mar 30, 2018
closing due to inactivity, please re-open with requested data, if still outstanding
oxygen commentedon Oct 4, 2018
I'm getting this using Linux Subsystem for Windows (WSL).
After many https:// outgoing requests, and only when doing hundreds or thousands of them in a short period (but not concurrently, and even with artificially added 100ms pause between requests), the above starts to happen, exactly as described by the author of the bug.
The connectivity is cut down both ways (the listening server is also cut off from listening along with all existing connections; which has nothing to do with the client functionality, which is also cut off).
Other apps running alongside (some Linux native ones and another NodeJS app) are unaffected, but cannot talk to this one that is showing the above behaviour.
If you are not familiar with WSL, it is worth mentioning it does not have the Linux kernel, but an ABI compatible layer, so it could be that NodeJS is not at fault. Just leaving this here, maybe it will help rule out the OS as a culprit after more evidence.