Node.js UnhandledPromiseRejectionWarning even after catching it
问题 I'm using Node 7.2.1 with the new async/await feature. I'm also using the Native ES6 Promises with mongoose like this - const mongoose = require('mongoose'); mongoose.Promise = global.Promise; My code flow is like this - async function getFollowers(){ try { const followers = await User.getFollowersFromMongo(req.params.userId); res.send(followers); } catch (err) { winston.error('Printing Error = ', err); res.status(400).send({success: false, error: err}); } } UserSchema.statics