DAB-Co / jam-server

Server of jam app.
0 stars 0 forks source link

Unexpected behavior on setTimeout #116

Closed atillaturkmen closed 2 years ago

atillaturkmen commented 2 years ago

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

DBC201 commented 2 years ago

image this works, probably gmt calculations are wrong

atillaturkmen commented 2 years ago

https://github.com/DAB-Co/jam-server/pull/117