Hello
I have a Function that sometimes fails when running in Architect, but in the tester and locally, it works fine... Customer Care is having a hard time helping me with it, as they say that the information they have about it is very limited. They simply say that there is an "Unhandled Exception"
I am no expert in Javascript/Node, so I am asking for help here. How a function like this could ever have unhandled exceptions?
module.exports.handler = async (event, context) => {
try {
return await mainLogic(event, context);
} catch (error) {
return {};
};
};
const mainLogic = async function (event, context) {
// My code's main logic goes here
};
All the logic is inside a try-catch clause. So any exception should be caught, and it should never "fail" (just return an empty object in those cases). Am I missing something?