# Postman not being able to send body for post requests

**URL:** <https://community.postman.com/t/postman-not-being-able-to-send-body-for-post-requests/34249>\
**Category:** Help Hub\
**Created:** [April 5, 2022, 8:01pm UTC](https://community.postman.com/t/postman-not-being-able-to-send-body-for-post-requests/34249 "2022-04-05T20:01:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tendinitis](https://avatars.discourse-cdn.com/v4/letter/t/a87d85/32.png) [@tendinitis](https://community.postman.com/u/tendinitis)\
**Post date:** [April 5, 2022, 8:01pm UTC](https://community.postman.com/t/postman-not-being-able-to-send-body-for-post-requests/34249/1 "2022-04-05T20:01:28Z")

</div>

I am making a simple register login auth and was wanting to try postman to test it (basically make a POST request to create a new user on mongodb). The problem arose when I logged `req.body` and saw that it was blank. Postman was not sending the right request to the localhost.

I tried the most basic example which too wasnt working:

```auto
app.post('/', (req, res) => {
  return res.status(200).json(req.body)
})

```

the corresponding postman request:

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/5/b/5ba5e7ccdd41c4726a34a52cc31107e34ec05641.png)

The body is set to x-www-form-urlencoded and to be sure here is `server.js`:

```auto
app.use(
  bodyParser.urlencoded({
    extended: true
  })
);
app.use(bodyParser.json());
// DB Config
const db = require("./config/keys").mongoURI;
// Connect to MongoDB
mongoose
  .connect(
    db,
    { useNewUrlParser: true }
  )
  .then(() => console.log("MongoDB successfully connected"))
  .catch(err => console.log(err));

// Passport middleware
app.use(passport.initialize());
// Passport config
require("./config/passport")(passport);
// Routes
app.use("/api/users", users);

const port = process.env.PORT || 3000;
app.listen(port, () => console.log(`Server up and running on port ${port}`));

app.post('/', (req, res) => {
  return res.status(200).json(req.body)
})

```

The problem seems to be very minute but I don’t know what to do

---

<div class="post-metadata">

**Author:** ![bpricilla](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/bpricilla/32/6511_2.png) [@bpricilla](https://community.postman.com/u/bpricilla)\
**Post date:** [April 7, 2022, 4:33am UTC](https://community.postman.com/t/postman-not-being-able-to-send-body-for-post-requests/34249/2 "2022-04-07T04:33:13Z")

</div>

@tendinitis Welcome to the community 🥳

Please check if the “[Echo APIs](https://learning.postman.com/docs/developer/echo-api/)” are helpful in debugging.
