how to log bodyparser error
app.use(bodyParser.json())
app.use((err, req, res, next) => {
if (err) {
console.log('Invalid Request data', err)
res.status(400).send('Invalid Request data')
} else {
next()
}
})
how to log bodyparser error
app.use(bodyParser.json())
app.use((err, req, res, next) => {
if (err) {
console.log('Invalid Request data', err)
res.status(400).send('Invalid Request data')
} else {
next()
}
})
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us