I don't know why this errors kept coming. I searched for all possible solutions on the internet still I didn't find any. Here is my node function for API call.
exports.GetEmployeeConfirmationList = function (req, res) {
var request = dbConn.request();
request.execute(storedProcedures.GetEmployeeConfirmationList).then(function (response) {
res.status(200).send({
success: true,
data: response.recordset
});
}).catch(function (err) {
res.status(200).send({
success: false,
message: err.message
});
});
};
How to overcome this problem? Thanks in advance.