-
Notifications
You must be signed in to change notification settings - Fork 65
Description
Happens when trying to create invoice.
04:48:57 PM [ script:pefcl] [PEFCL] [events] [silly]: netPromise > pefcl:createOnlineInvoice > RequestObj
04:48:57 PM [ script:pefcl] [PEFCL] [events] [silly]: { source: 1, data: { amount: 100, message: 'Speeding', source: 8 } }
04:48:57 PM [ script:pefcl] [PEFCL] [invoice-service] [silly]: Creating invoice ..
04:48:57 PM [ script:pefcl] [PEFCL] [invoice-service] [silly]: Speeding
04:48:57 PM [ STDERR] (node:332944) UnhandledPromiseRejectionWarning: SequelizeValidationError: Validation error: Validation max on from failed
04:48:57 PM [ STDERR] at InstanceValidator._validate (@pefcl/src/dist/server.js:50745:17)
04:48:57 PM [ STDERR] at async InstanceValidator._validateAndRunHooks (@pefcl/src/dist/server.js:50755:11)
04:48:57 PM [ STDERR] at async InstanceValidator.validate (@pefcl/src/dist/server.js:50749:16)
04:48:57 PM [ STDERR] at async InvoiceModel.save (@pefcl/src/dist/server.js:53578:11)
04:48:57 PM [ STDERR] at async Function.create (@pefcl/src/dist/server.js:52554:16)
04:48:57 PM [ STDERR] at async InvoiceDB.createInvoice (@pefcl/src/dist/server.js:99041:16)
04:48:57 PM [ STDERR] at async InvoiceService.createInvoice (@pefcl/src/dist/server.js:108130:25)
04:48:57 PM [ STDERR] at async Object.createOnlineInvoice (@pefcl/src/dist/server.js:108269:22)
04:48:57 PM [ STDERR] (node:332944) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 20)