SFDX Error While pushing the code to Salesforce Org “Error: connect ETIMEDOUT”
I am getting the below error while either pushing or retrieving the code from Salesforce to VS code and vice versa. I have no proxy anything in my system.
I have also tested on 4 Machines and 3 different OS ( Window, MAC, Linux ) and the error is the same.
ERROR running deploy:apex: connect ETIMEDOUT Error: connect ETIMEDOUT at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1146:16) { e rrno: -4039, code: 'ETIMEDOUT', syscall: 'connect', address: 'x.x.x.x', port: 443 }
Is anyone also facing the same issue? I am working on this since morning and now have no clue what to do. Why getting an error: connect ETIMEDOUT”? Please Guide how do I fix Etimedout error.
This is caused when your request response is not received in a given time(by timeout request module option). Basically, to catch that error first, you need to register a handler on error, so the unhandled error won't be thrown anymore: out. on('error', function (err) { /* handle errors here */ })
You can fix this error by:
put the proxy host in the host parameter.
put the proxy port in the port parameter.
put the full destination URL in the path parameter