title: Getting connect ETIMEDOUT for Axios HTTP Get Request
body: <p>So I have an Azure Function that calls Microsoft Maps API and it works (sometimes). However at times it throws this error during the request. Please advise.</p>
  <p>My Code:</p>
  <pre><code>const options = 
  {
     host: 'atlas.microsoft.com', //added this later
     headers: { 'x-ms-client-id': client_id }
  }
  
  //url to get lat/long
  let url = 'https://atlas.microsoft.com/search/fuzzy/json?api-version=1.0&amp;subscription-key=' + subscription_key + '&amp;query=' + address + ' USA'
  
  //make req
  let res = await axios.get(url, options)
  </code></pre>
  <p>Response/Error:</p>
  <pre><code>{
  &quot;error&quot;: {
  &quot;message&quot;: &quot;connect ETIMEDOUT XX.XXX.XX.XX:XXX&quot;,
  &quot;name&quot;: &quot;Error&quot;,
  &quot;stack&quot;: &quot;Error: connect ETIMEDOUT XX.XXX.XX.XX:XXX\n    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16)&quot;,
  &quot;config&quot;: {
    &quot;url&quot;: &quot;https://atlas.microsoft.com/search/fuzzy/json?api-version=1.0&amp;subscription-key=myKey&amp;query=myQuery&quot;,
    &quot;method&quot;: &quot;get&quot;,
    &quot;headers&quot;: {
      &quot;Accept&quot;: &quot;application/json, text/plain, */*&quot;,
      &quot;x-ms-client-id&quot;: myClientID,
      &quot;User-Agent&quot;: &quot;axios/0.19.2&quot;
    },
    &quot;transformRequest&quot;: [
      null
    ],
    &quot;transformResponse&quot;: [
      null
    ],
    &quot;timeout&quot;: 0,
    &quot;xsrfCookieName&quot;: &quot;XSRF-TOKEN&quot;,
    &quot;xsrfHeaderName&quot;: &quot;X-XSRF-TOKEN&quot;,
    &quot;maxContentLength&quot;: -1,
    &quot;host&quot;: &quot;atlas.microsoft.com&quot;
  },
  &quot;code&quot;: &quot;ETIMEDOUT&quot;
    }
  }
  </code></pre>