title: How to fix RequestError: Error: connect ETIMEDOUT while running Mocha JS/NodeJS test from behind proxy
body: <p>I am getting the below error while trying to run Mocha JS test case which runs npm request-promise to call a REST service. I was able to connect to the REST URI endpoint through ARC client bur it failed with below error while running through organization's proxy-</p>
  
  <pre><code>     RequestError: Error: connect ETIMEDOUT SERVER_IP:SERVER_PORT
    at new RequestError (&lt;Some_Path&gt;\errors.js:14:15)
    at Request.plumbing.callback (&lt;Some_Path&gt;\plumbing.js:87:29)
    at Request.RP$callback [as _callback] (&lt;Some_Path&gt;\plumbing.js:46:31)
    at self.callback (&lt;Some_Path&gt;\request.js:188:22)
    at Request.onRequestError (&lt;Some_Path&gt;\request\request.js:884:8)
    at TLSSocket.socketErrorListener (_http_client.js:309:9)
    at emitErrorNT (net.js:1277:8)
    at _combinedTickCallback (internal/process/next_tick.js:80:11)
    at process._tickCallback (internal/process/next_tick.js:104:9)
  </code></pre>