Answers for "why is my req.body empty"

4

why is my req.body empty

Make sure your middleware is ordered properly, and if you're using Postman 
setting the "Content-Type" header to "application/json" might help.
Posted by: Guest on April-07-2022
2

getting empty req.body

If testing the API using POSTMAN, ensure that 'Content-Length' header is active and set to <calculated when request is sent>.
Posted by: Guest on March-21-2021

Browse Popular Code Answers by Language