title: Why do I get an unhandled promise error when i dont have a promise set?
body: <p>I ran into an issue with an axios post request</p>
  <pre><code>const addOrder = (newOrder) =&gt; {
  axios
    .post(&quot;http://localhost:83/api/addorder&quot;, {
      newRow: newOrder,
      newRecID: orders[0].RecID + 1,
    })
    .then((response) =&gt; {
      console.log(response);
      getOrders();
    })
    .catch((err) =&gt; {
      console.log(&quot;Err&quot;, err);
    });
  </code></pre>
  <p>In my API the request handler is this:</p>
  <pre><code>app.post(&quot;/api/addorder&quot;, function (req, res) {
    const newData = req.body.newOrder;
    let newRecID = req.body.newRecID; 
  
    sql.connect(config, function (err) {
    if (err) {
        console.log(err);
        return;
      }
      var request = new sql.Request();
  
  request.query(
    `INSERT INTO dbo.Einkauf_Web_Bestellungen_DEV (RecID) VALUES (${newRecID})`,
  
    function (err, result) {
      if (err) {
        console.log(err);
      }
    }
  );
  
  
   });
    });
  </code></pre>
  <p>The SQL Query is executed and succesfully inserts the given value. But my react application crashes and spits out following error:</p>
  <p><a href="https://i.stack.imgur.com/H3ZdB.png" rel="nofollow noreferrer">Screenshot of the application console</a></p>