DAB-Co/jam-server

Unexpected behavior on setTimeout

Closed this issue · 2 comments

Server crashes on setTimeout execution. Below are the logs of the crash:

/home/sysadmin/servers/jam-server/node_modules/@dab-co/jam-sqlite/databaseUtils/databaseWrapper.js:54 return this.prepare(sql).run(params); ^ SqliteError: user1_id cant equal to user2_id at DatabaseWrapper.run_query (/home/sysadmin/servers/jam-server/node_modules/@dab-co/jam-sqlite/databaseUtils/databaseWrapper.js:54:34) at UserConnectionsUtils.addConnection (/home/sysadmin/servers/jam-server/node_modules/@dab-co/jam-sqlite/tableUtils/userConnectionsUtils.js:24:30) at UserConnectionsUtils.dump (/home/sysadmin/servers/jam-server/node_modules/@dab-co/jam-sqlite/tableUtils/userConnectionsUtils.js:195:26) at AlgorithmEntryPoint._dump_data (/home/sysadmin/servers/jam-server/utils/algorithmEntryPoint.js:426:49) at AlgorithmEntryPoint._match_users (/home/sysadmin/servers/jam-server/utils/algorithmEntryPoint.js:324:14) at AlgorithmEntryPoint.run (/home/sysadmin/servers/jam-server/utils/algorithmEntryPoint.js:541:14) at processTicksAndRejections (node:internal/process/task_queues:96:5) { code: 'SQLITE_CONSTRAINT_TRIGGER' }
error is irrelevant

image
this works, probably gmt calculations are wrong