title: POSTMAN not sending anything in the body in POST requests
body: <p>I am trying to test the /login API via POSTMAN (via FE it works fine) but it doesn't
  show anything in the body part even though I am sending body data.</p>
  <p><a href="https://i.stack.imgur.com/0lPpw.png" rel="noreferrer"><img src="https://i.stack.imgur.com/0lPpw.png" alt="enter image description here" /></a></p>
  <p>but when printing the request from the BE, the body is empty...</p>
  <pre><code>  ....
    body: {},
    ....
  </code></pre>
  <p>unlike when using FE:</p>
  <pre><code>  ....
    body: {data: { username: 'admin', password: 'admin' }},
    ....
  </code></pre>
  <p>Any idea what's going on? If anything else is needed to be provided - pls let me know</p>
  <p>I know it's going through because the server responds with 500 and the message</p>
  <p><code>TypeError: Cannot read property 'username' of undefined</code></p>
  <p>The weird part is, that the data I am sending, are nowhere to be found in the request object at all :(</p>
  <p>EDIT:</p>
  <p>This is how I call it from the FE:</p>
  <p><code>return axios.post('login',  { data: user })</code></p>
  <p>and the user is:</p>
  <pre><code>user: {
    username: 'admin',
    password: 'admin'
  }
  </code></pre>
  <p>So the format should be right</p>
  <pre><code>data: { 
      username: 'admin', 
      password: 'admin'
  }
  </code></pre>
  <p>Because that's how I access it on the BE side</p>
  <p><code>req.body.data.username</code></p>
  <p>EDIT2:</p>
  <p>The ultra-super-rare-weird part is, that JEST is working fine :)</p>
  <pre><code>const creds = {
        data: {
              username: 'admin',
              password: 'admin'
              }
      }
  
      return request(app)
        .post(&quot;/api/v1/login&quot;)
        .send(creds)
        .expect(200)
        .then(res =&gt; {
          expect(res.body).toMatchSnapshot()
        })
  </code></pre>
  <p>and this test passes .... f**k me guys.. what's going on?</p>