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

346
Views
Objeto: envío de prototipo nulo: '' - Node Express al analizar el valor del formulario con req.body

Tenga una entrada muy simple en un formulario para probar una ruta POST:

 <form method="POST" action="/user/onboarding" id="onboarding_form"> <div class="form-check"> <input class="form-check-input" id="industry" type="checkbox" value="FinTech"/> <label class="form-check-label" for="industry"> FinTech </label> </div> <button type="submit" name="submit"> Complete onboarding </button> </form>

Pero cuando intento analizar el resultado y acceder usando req.body.industry , veo [Object: null prototype] { submit: '' } en mi console.log

He seguido los pasos aquí y tengo:

 app.use(express.json()); app.use(express.urlencoded({ extended: false }));

por encima de mis rutas

¿Qué estoy haciendo mal?

about 4 years ago · Juan Pablo Isaza
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!