title: Second axios post request does not send
body: <p>I am trying to make two calls with axios post. The first call works as expected, the second call does not send.</p>
  
  <p>I am calling the following function. The first call logs the url, body and response body. The second call only logs the url and body. It doesn't drop into the <code>.then</code> or <code>.catch</code>.</p>
  
  <p>Any ideas?</p>
  
  <pre><code>const sendRequest = req =&gt; {
    return new Promise((response, reject) =&gt; {
      console.log("sendRequest url ", req.url);
      console.log("sendRequest body", req.body);
  
      const instance = axios.create({
        timeout: 1000,
        headers: req.headers
      });
  
      instance
        .post(req.url, req.body)
        .then(body =&gt; {
          console.log("body ", body);
          response(body);
        })
        .catch(err =&gt; {
          if (err.response) {
            console.log("Error data ", err.response.data);
            console.log("Error status ", err.response.status);
            console.log("Error headers ", err.response.headers);
          } else if (err.request) {
            console.log("http.ClientRequest ", err.request);
          } else {
            console.log("Error ", err.message);
          }
          console.log("Error ", err);
          reject(err);
        });
    });
  };
  </code></pre>
  
  <p>I've tried several things, including duplicating the function - same problem. I've tried using axios and creating a new instance.</p>