exceljs (GitHub - exceljs/exceljs: Excel Workbook Manager · GitHub) is working fine in local development app function (creating workbook, adding/editing worksheet, export as buffer).
When it is deployed, and this app function api is called from workflow, the following error message returned:
{"error":{"code":540,"message":"Execution crashed","details":{"logs":"","type":"UNCAUGHT_EXCEPTION","message":"Uncaught error"}}}
Created a separate app function to isolate and test the exceljs library, the similar error message returned as above.
Code block for reference:
import ExcelJS from "exceljs";
const workbook = new ExcelJS.Workbook();
export default async function (payload: unknown = undefined) {
return "Hello world";
}
What is the possible cause for the crashing message above? which it works well in local development but not in production.
Thank you.