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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.