title: Node js Fetch send empty body
body: <p>I'm creating a rest api, I did everything right on the server, when I try to use fetch, always say "count" is not set, I try to give console.log (req.body) on the server and I always get {}</p>
  
  <pre class="lang-js prettyprint-override"><code>app.post("/api/stats/:id", async (req, res) =&gt; {
    let botId = req.params.id;
  
    console.log(req.body);
  
    let auth = req.headers.authorization;
  
    if (!auth)
      return res.json({
        success: "false",
        error: "Authorization header not found."
      });    
  
    let count = req.body.count ? req.body.count : req.body.server_count;
  
    if (!count) return res.json({ success: "false", error: "Count not found in body." });
  
    count = parseInt(count);
  
    if (!count) return res.json({ success: "false", error: "Count not integer." });
  
    const bot = client.fetchUser(`${botId}`);
  
    if (!bot) return res.json({ success: "false", error: "Bot not found." });
  
    // if (!bot.auth) return res.json({ "success": "false", "error": "Create a bot authorization  token." });
  
    //if (bot.auth !== auth) return res.json({ "success": "false", "error": "Incorrect  authorization token." });
    bot.servers = count;
  
    res.json({ success: "true", bot: bot });
  });
  </code></pre>
  
  <p>Client side -Node js code:</p>
  
  <pre class="lang-js prettyprint-override"><code>const body = { count: 1 };
  
  fetch("https://www.cloudlist.xyz/api/stats/64492636015388263", {
    method: "POST",
    headers: {
      Authorization: `MY AUTH`,
      "Content-Type": "application/json"
    },
    body: JSON.stringify({ body })
  })
    .then(res =&gt; res.json())
    .then(async response =&gt; {
      console.log(response);
    });
  </code></pre>
  
  <p>The errors that I get:</p>
  
  <p>client side</p>
  
  <p><a href="https://i.stack.imgur.com/2kVgQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2kVgQ.png" alt="client side"></a></p>
  
  <p>server side</p>
  
  <p><a href="https://i.stack.imgur.com/tWEHe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tWEHe.png" alt="server side"></a></p>