Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

335
Views
Why bodyParser.json() is not working?

I am building an app with Node JS and Express.

In my app I use the following,

// middlewares
app.use(bodyParser.urlencoded({ extended: true }))
app.use(bodyParser.json())
app.use(express.static('../web'))
app.use(morgan('dev'))

above all the app.get(), app.post().

My app goes well when I use Postman. It correctly fetches the data from the back end. But when I am using Google Chrome web browser, the req.body in app.get/post() is not working. It shows {}. That's why I am not able to fetch the data from the db. Front end Angular JS is used.

Request Payload is something like below,enter image description here

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!