{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:44:58"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:44:59"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:44:59"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:44:59"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:44:59"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:44:59"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:45:00"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:45:00"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:45:00"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:45:00"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:45:00"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:45:01"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:45:01"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:45:01"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:45:01"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:45:01"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:45:01"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:45:01"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:45:02"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:45:02"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:45:02"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:45:02"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:45:02"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:45:22"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:45:22"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:45:23"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:45:23"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:45:23"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:45:23"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:45:23"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:45:23"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:45:23"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:45:23"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:45:23"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:45:23"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:45:23"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:45:23"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:45:23"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:45:23"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:45:23"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:45:24"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:45:24"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:45:24"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:45:24"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:45:24"}
{"level":"error","message":"[CORS] Origin http://localhost:3000 not allowed by CORS policy.","timestamp":"2025-10-15 08:45:24"}
{"error":{"name":"SequelizeEagerLoadingError"},"level":"error","message":"[Debug HTML] Error generating HTML for invoice 91 invoicedetails is associated to invoice using an alias. You've included an alias (invoicedetail), but it does not match the alias(es) defined in your association (invoiceDetails).","stack":"SequelizeEagerLoadingError: invoicedetails is associated to invoice using an alias. You've included an alias (invoicedetail), but it does not match the alias(es) defined in your association (invoiceDetails).\n    at invoice._getIncludedAssociation (E:\\dev\\nodejs\\invoiceGenerate\\node_modules\\.pnpm\\sequelize@6.37.3_mysql2@3.11.2\\node_modules\\sequelize\\lib\\model.js:574:15)\n    at invoice._validateIncludedElement (E:\\dev\\nodejs\\invoiceGenerate\\node_modules\\.pnpm\\sequelize@6.37.3_mysql2@3.11.2\\node_modules\\sequelize\\lib\\model.js:502:53)\n    at E:\\dev\\nodejs\\invoiceGenerate\\node_modules\\.pnpm\\sequelize@6.37.3_mysql2@3.11.2\\node_modules\\sequelize\\lib\\model.js:421:37\n    at Array.map (<anonymous>)\n    at invoice._validateIncludedElements (E:\\dev\\nodejs\\invoiceGenerate\\node_modules\\.pnpm\\sequelize@6.37.3_mysql2@3.11.2\\node_modules\\sequelize\\lib\\model.js:417:39)\n    at invoice.findAll (E:\\dev\\nodejs\\invoiceGenerate\\node_modules\\.pnpm\\sequelize@6.37.3_mysql2@3.11.2\\node_modules\\sequelize\\lib\\model.js:1124:12)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async invoice.findOne (E:\\dev\\nodejs\\invoiceGenerate\\node_modules\\.pnpm\\sequelize@6.37.3_mysql2@3.11.2\\node_modules\\sequelize\\lib\\model.js:1240:12)\n    at async debugInvoiceHtml (E:\\dev\\nodejs\\invoiceGenerate\\controllers\\invoiceController.js:219:25)","timestamp":"2025-10-15 10:51:53"}
{"error":{"name":"SequelizeEagerLoadingError"},"level":"error","message":"[Debug HTML] Error generating HTML for invoice 90 invoicedetails is associated to invoice using an alias. You've included an alias (invoicedetail), but it does not match the alias(es) defined in your association (invoiceDetails).","stack":"SequelizeEagerLoadingError: invoicedetails is associated to invoice using an alias. You've included an alias (invoicedetail), but it does not match the alias(es) defined in your association (invoiceDetails).\n    at invoice._getIncludedAssociation (E:\\dev\\nodejs\\invoiceGenerate\\node_modules\\.pnpm\\sequelize@6.37.3_mysql2@3.11.2\\node_modules\\sequelize\\lib\\model.js:574:15)\n    at invoice._validateIncludedElement (E:\\dev\\nodejs\\invoiceGenerate\\node_modules\\.pnpm\\sequelize@6.37.3_mysql2@3.11.2\\node_modules\\sequelize\\lib\\model.js:502:53)\n    at E:\\dev\\nodejs\\invoiceGenerate\\node_modules\\.pnpm\\sequelize@6.37.3_mysql2@3.11.2\\node_modules\\sequelize\\lib\\model.js:421:37\n    at Array.map (<anonymous>)\n    at invoice._validateIncludedElements (E:\\dev\\nodejs\\invoiceGenerate\\node_modules\\.pnpm\\sequelize@6.37.3_mysql2@3.11.2\\node_modules\\sequelize\\lib\\model.js:417:39)\n    at invoice.findAll (E:\\dev\\nodejs\\invoiceGenerate\\node_modules\\.pnpm\\sequelize@6.37.3_mysql2@3.11.2\\node_modules\\sequelize\\lib\\model.js:1124:12)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async invoice.findOne (E:\\dev\\nodejs\\invoiceGenerate\\node_modules\\.pnpm\\sequelize@6.37.3_mysql2@3.11.2\\node_modules\\sequelize\\lib\\model.js:1240:12)\n    at async debugInvoiceHtml (E:\\dev\\nodejs\\invoiceGenerate\\controllers\\invoiceController.js:219:25)","timestamp":"2025-10-15 10:52:04"}
{"error":{"path":"E:\\dev\\nodejs\\invoiceGenerate\\views\\invoice.ejs"},"level":"error","message":"[Debug HTML] Error generating HTML for invoice 91 E:\\dev\\nodejs\\invoiceGenerate\\views\\invoice.ejs:117\n    115|                 </td>\r\n    116|                 <td style=\"text-align: right;\">\r\n >> 117|                     <% if(inv_status == 'Paid') { %>\r\n    118|                         <span class=\"paid-label\">Paid</span>\r\n    119|                     <% } else { %>\r\n    120|                         <span class=\"paid-label\" style=\"color: red !important;\">UnPaid</span>\r\n\ninv_status is not defined","stack":"ReferenceError: E:\\dev\\nodejs\\invoiceGenerate\\views\\invoice.ejs:117\n    115|                 </td>\r\n    116|                 <td style=\"text-align: right;\">\r\n >> 117|                     <% if(inv_status == 'Paid') { %>\r\n    118|                         <span class=\"paid-label\">Paid</span>\r\n    119|                     <% } else { %>\r\n    120|                         <span class=\"paid-label\" style=\"color: red !important;\">UnPaid</span>\r\n\ninv_status is not defined\n    at eval (eval at compile (E:\\dev\\nodejs\\invoiceGenerate\\node_modules\\.pnpm\\ejs@2.6.2\\node_modules\\ejs\\lib\\ejs.js:633:12), <anonymous>:14:8)\n    at returnedFn (E:\\dev\\nodejs\\invoiceGenerate\\node_modules\\.pnpm\\ejs@2.6.2\\node_modules\\ejs\\lib\\ejs.js:668:17)\n    at E:\\dev\\nodejs\\invoiceGenerate\\node_modules\\.pnpm\\ejs@2.6.2\\node_modules\\ejs\\lib\\ejs.js:240:40\n    at new Promise (<anonymous>)\n    at tryHandleCache (E:\\dev\\nodejs\\invoiceGenerate\\node_modules\\.pnpm\\ejs@2.6.2\\node_modules\\ejs\\lib\\ejs.js:238:14)\n    at exports.renderFile (E:\\dev\\nodejs\\invoiceGenerate\\node_modules\\.pnpm\\ejs@2.6.2\\node_modules\\ejs\\lib\\ejs.js:485:10)\n    at debugInvoiceHtml (E:\\dev\\nodejs\\invoiceGenerate\\controllers\\invoiceController.js:249:39)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-10-15 10:53:11"}
{"error":{"path":"E:\\dev\\nodejs\\invoiceGenerate\\views\\invoice.ejs"},"level":"error","message":"[Debug HTML] Error generating HTML for invoice 91 E:\\dev\\nodejs\\invoiceGenerate\\views\\invoice.ejs:117\n    115|                 </td>\r\n    116|                 <td style=\"text-align: right;\">\r\n >> 117|                     <% if(inv_status == 'Paid') { %>\r\n    118|                         <span class=\"paid-label\">Paid</span>\r\n    119|                     <% } else { %>\r\n    120|                         <span class=\"paid-label\" style=\"color: red !important;\">UnPaid</span>\r\n\ninv_status is not defined","stack":"ReferenceError: E:\\dev\\nodejs\\invoiceGenerate\\views\\invoice.ejs:117\n    115|                 </td>\r\n    116|                 <td style=\"text-align: right;\">\r\n >> 117|                     <% if(inv_status == 'Paid') { %>\r\n    118|                         <span class=\"paid-label\">Paid</span>\r\n    119|                     <% } else { %>\r\n    120|                         <span class=\"paid-label\" style=\"color: red !important;\">UnPaid</span>\r\n\ninv_status is not defined\n    at eval (eval at compile (E:\\dev\\nodejs\\invoiceGenerate\\node_modules\\.pnpm\\ejs@2.6.2\\node_modules\\ejs\\lib\\ejs.js:633:12), <anonymous>:14:8)\n    at returnedFn (E:\\dev\\nodejs\\invoiceGenerate\\node_modules\\.pnpm\\ejs@2.6.2\\node_modules\\ejs\\lib\\ejs.js:668:17)\n    at E:\\dev\\nodejs\\invoiceGenerate\\node_modules\\.pnpm\\ejs@2.6.2\\node_modules\\ejs\\lib\\ejs.js:240:40\n    at new Promise (<anonymous>)\n    at tryHandleCache (E:\\dev\\nodejs\\invoiceGenerate\\node_modules\\.pnpm\\ejs@2.6.2\\node_modules\\ejs\\lib\\ejs.js:238:14)\n    at exports.renderFile (E:\\dev\\nodejs\\invoiceGenerate\\node_modules\\.pnpm\\ejs@2.6.2\\node_modules\\ejs\\lib\\ejs.js:485:10)\n    at debugInvoiceHtml (E:\\dev\\nodejs\\invoiceGenerate\\controllers\\invoiceController.js:249:39)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-10-15 10:53:15"}
{"error":{},"level":"error","message":"[Debug HTML] Error generating HTML for invoice 91 moment is not defined","stack":"ReferenceError: moment is not defined\n    at formatInvoiceResponse (E:\\dev\\nodejs\\invoiceGenerate\\controllers\\invoiceController.js:223:23)\n    at debugInvoiceHtml (E:\\dev\\nodejs\\invoiceGenerate\\controllers\\invoiceController.js:282:31)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-10-15 10:55:12"}
{"error":{},"level":"error","message":"[Debug HTML] Error generating HTML for invoice 91 moment is not defined","stack":"ReferenceError: moment is not defined\n    at formatInvoiceResponse (E:\\dev\\nodejs\\invoiceGenerate\\controllers\\invoiceController.js:223:23)\n    at debugInvoiceHtml (E:\\dev\\nodejs\\invoiceGenerate\\controllers\\invoiceController.js:282:31)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-10-15 10:55:16"}
{"error":{"code":"ERR_INVALID_ARG_TYPE"},"level":"error","message":"[Debug HTML] Error generating HTML for invoice 91 The \"path\" argument must be of type string or an instance of Buffer or URL. Received an instance of Object","stack":"TypeError [ERR_INVALID_ARG_TYPE]: The \"path\" argument must be of type string or an instance of Buffer or URL. Received an instance of Object\n    at Object.openSync (node:fs:572:10)\n    at Object.readFileSync [as fileLoader] (node:fs:453:35)\n    at fileLoader (E:\\dev\\nodejs\\invoiceGenerate\\node_modules\\.pnpm\\ejs@2.6.2\\node_modules\\ejs\\lib\\ejs.js:273:18)\n    at handleCache (E:\\dev\\nodejs\\invoiceGenerate\\node_modules\\.pnpm\\ejs@2.6.2\\node_modules\\ejs\\lib\\ejs.js:213:16)\n    at E:\\dev\\nodejs\\invoiceGenerate\\node_modules\\.pnpm\\ejs@2.6.2\\node_modules\\ejs\\lib\\ejs.js:240:20\n    at new Promise (<anonymous>)\n    at tryHandleCache (E:\\dev\\nodejs\\invoiceGenerate\\node_modules\\.pnpm\\ejs@2.6.2\\node_modules\\ejs\\lib\\ejs.js:238:14)\n    at exports.renderFile (E:\\dev\\nodejs\\invoiceGenerate\\node_modules\\.pnpm\\ejs@2.6.2\\node_modules\\ejs\\lib\\ejs.js:485:10)\n    at debugInvoiceHtml (E:\\dev\\nodejs\\invoiceGenerate\\controllers\\invoiceController.js:303:39)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-10-15 10:55:55"}
{"error":{"code":"ERR_INVALID_ARG_TYPE"},"level":"error","message":"[Debug HTML] Error generating HTML for invoice 91 The \"path\" argument must be of type string or an instance of Buffer or URL. Received an instance of Object","stack":"TypeError [ERR_INVALID_ARG_TYPE]: The \"path\" argument must be of type string or an instance of Buffer or URL. Received an instance of Object\n    at Object.openSync (node:fs:572:10)\n    at Object.readFileSync [as fileLoader] (node:fs:453:35)\n    at fileLoader (E:\\dev\\nodejs\\invoiceGenerate\\node_modules\\.pnpm\\ejs@2.6.2\\node_modules\\ejs\\lib\\ejs.js:273:18)\n    at handleCache (E:\\dev\\nodejs\\invoiceGenerate\\node_modules\\.pnpm\\ejs@2.6.2\\node_modules\\ejs\\lib\\ejs.js:213:16)\n    at E:\\dev\\nodejs\\invoiceGenerate\\node_modules\\.pnpm\\ejs@2.6.2\\node_modules\\ejs\\lib\\ejs.js:240:20\n    at new Promise (<anonymous>)\n    at tryHandleCache (E:\\dev\\nodejs\\invoiceGenerate\\node_modules\\.pnpm\\ejs@2.6.2\\node_modules\\ejs\\lib\\ejs.js:238:14)\n    at exports.renderFile (E:\\dev\\nodejs\\invoiceGenerate\\node_modules\\.pnpm\\ejs@2.6.2\\node_modules\\ejs\\lib\\ejs.js:485:10)\n    at debugInvoiceHtml (E:\\dev\\nodejs\\invoiceGenerate\\controllers\\invoiceController.js:303:39)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-10-15 10:56:01"}
{"error":{},"level":"error","message":"[Debug HTML] Error generating HTML for invoice 91 path is not defined","stack":"ReferenceError: path is not defined\n    at debugInvoiceHtml (E:\\dev\\nodejs\\invoiceGenerate\\controllers\\invoiceController.js:288:30)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-10-15 10:58:41"}
{"error":{},"level":"error","message":"[Debug HTML] Error generating HTML for invoice 91 path is not defined","stack":"ReferenceError: path is not defined\n    at debugInvoiceHtml (E:\\dev\\nodejs\\invoiceGenerate\\controllers\\invoiceController.js:288:30)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-10-15 10:58:45"}
{"error":{},"level":"error","message":"[Debug HTML] Error generating HTML for invoice 91 ejs is not defined","stack":"ReferenceError: ejs is not defined\n    at debugInvoiceHtml (E:\\dev\\nodejs\\invoiceGenerate\\controllers\\invoiceController.js:290:29)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-10-15 11:00:15"}
{"error":{},"level":"error","message":"[Debug HTML] Error generating HTML for invoice 91 puppeteer is not defined","stack":"ReferenceError: puppeteer is not defined\n    at debugInvoiceHtml (E:\\dev\\nodejs\\invoiceGenerate\\controllers\\invoiceController.js:296:9)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-10-15 11:02:19"}
