title: Axios then, catch are not called
body: <p>In my React front end, I call Axios with post method successfully, in my Python Falcon backend parameters are received successfully and token is generated back,
  problem is the code in .then or even .catch are never called, here is my front end code:</p>
  
  <pre><code>async submit() {
    //var aluser = this.this.state.username;
    await axios({
      method: "post",
      url: "http://127.0.0.1:8000/Login",
      headers: {
        "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
      },
      params: {
        username: this.state.username,
        password: this.state.password
      }
    })
      .catch(error =&gt; {
        console.log(
          "here is the error on a post request from the python server  ",
          error
        );
      })
      .then(res =&gt; {
        console.log(res);
  
        sessionStorage.setItem("token", res.data[0]);
      });
  }
  </code></pre>
  
  <p>Note: the order of .then .catch was switched before, same result.</p>
  
  <p>Thanks in advance</p>