© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Sandeep Panda
co-founder, Hashnode
Include body-parser middleware which parses the body and sets req.body property.
body-parser
req.body
Mohammad Bilal
Full Stack Developer
i included still problem package.json here "body-parser": "^1.15.2",
littlepsylo
Software engineering
Don't miss to use it with Express:
const app = Express() /* ... */ app.use(BodyParser.json()) app.use(BodyParser.urlencoded({ extended: true })) /* ... */
@mohammad_bilal As @littlepsylo said, you also need to register the middleware with Express.
Thanks for u r reply include that also console.log(req) i am getting. But req.body not working can u guide me how to debug