Hi!
We have node.js app working as Gantt scheduler getting data and returning recalculated project changes.
With some data it throws exception which is not catched in try - catch block and app crashes.
This is error stack we get:
Uncaught TypeError TypeError: startDateIntervalIntersection.intersectionOf is not iterable
at calculateEffectiveEndDateConstraintInterval (node_modules/@bryntum/gantt/gantt.node.mjs:44471:58)
at calculateEffectiveConstraintInterval (node_modules/@bryntum/gantt/gantt.node.mjs:44575:40)
at doCalculateEffectiveEndDateInterval (node_modules/@bryntum/gantt/gantt.node.mjs:44607:26)
at onEmptyEffectiveInterval (node_modules/@bryntum/gantt/gantt.node.mjs:45850:142)
at onEmptyEffectiveInterval (node_modules/@bryntum/gantt/gantt.node.mjs:48546:29)
at calculateEndDate (node_modules/@bryntum/gantt/gantt.node.mjs:44719:41)
at continueCalculation (node_modules/@bryntum/gantt/gantt.node.mjs49)
at onReadIdentifier (node_modules/@bryntum/gantt/gantt.node.mjs26)
at calculateTransitionsStackGen (node_modules/@bryntum/gantt/gantt.node.mjs47)
at calculateTransitions (node_modules/@bryntum/gantt/gantt.node.mjs19)
at runGeneratorAsyncWithEffect (node_modules/@bryntum/gantt/gantt.node.mjs23)
gantt.node.mjs:44471
Process exited with code 1
Our code:
try {
...
const ganttProject = new GanttProject();
let project = ganttProject.init(projectData);
const result = await project.commitAsync();
if (result.rejectedWith) {
// there was a conflict during the scheduling
console.log(result);
} else {
...
}
} catch (err) {
console.error(err);
res.send({ success: false, message: err.message });
}
When we open same project in Gantt UI we get "Scheduling conflict" message. but no "rejectedWith" result in our service app.