Here the error means it cannot parse the json data sent through the body of the request, to handle this you need to add a line to help the server parse the data.
app.use(express.json());