Usually this issue is due to the order of the middleware being configured. The app.use(bodyParser.text()) has to be configured before the routes are declared.
I've created a glitch project to demonstrate how the code could be implemented.
Good luck 🤞 with getting the issue sorted.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.