title: What is best practice for handling axios that sends back no request (no catch or no .then executes)?
body: <p>I've encountered situations where maybe because of a bad connection where there is no response from the api where it skips both the .then and .catch. What is the best practice for error handling in that case? I'd like to put up an alert if there is no response at all.</p>
  
  <pre><code>const getPic () =&gt; {
  axios({
          url:   '/users/avatar',
          method: 'GET',
          headers: {
            'Authorization': "Bearer " + token,
          },
          data: {avatar: avatarUrl},
          responseType: 'blob',
        }).then((response) =&gt; {
          log(response);
          let blob = URL.createObjectURL(response.data)
          localStorage.setItem('image', blob);
  
  }.catch(error) {
  console.log(error)
  }
  }
  </code></pre>