{"code":"ENETUNREACH","errno":"ENETUNREACH","level":"error","message":"Error launching Telegram bot: request to https://api.telegram.org/bot7498026249:[REDACTED]/getMe failed, reason: connect ENETUNREACH 2001:67c:4e8:f004::9:443 - Local (:::0)","stack":"FetchError: request to https://api.telegram.org/bot7498026249:[REDACTED]/getMe failed, reason: connect ENETUNREACH 2001:67c:4e8:f004::9:443 - Local (:::0)\n at ClientRequest. (/app/node_modules/node-fetch/lib/index.js:1501:11)\n at ClientRequest.emit (node:events:524:28)\n at emitErrorEvent (node:_http_client:101:11)\n at TLSSocket.socketErrorListener (node:_http_client:504:5)\n at TLSSocket.emit (node:events:524:28)\n at emitErrorNT (node:internal/streams/destroy:169:8)\n at emitErrorCloseNT (node:internal/streams/destroy:128:3)\n at process.processTicksAndRejections (node:internal/process/task_queues:82:21)","timestamp":"2025-05-22T10:08:06.855Z","type":"system"} {"level":"error","message":"Error: undefined","timestamp":"2025-05-22T10:13:14.109Z"} {"level":"error","message":"Error: undefined","timestamp":"2025-05-22T10:13:32.259Z"} {"level":"error","message":"Error: undefined","timestamp":"2025-05-22T10:15:50.550Z"} {"level":"error","message":"Error: undefined","timestamp":"2025-05-22T10:17:16.194Z"} {"code":"42703","file":"parse_relation.c","hint":"Perhaps you meant to reference the column \"user_identities.created_at\".","length":183,"level":"error","line":"3729","message":"[IdentityService] Error finding wallet identity for user 1: column \"updated_at\" does not exist","name":"error","position":"43","routine":"errorMissingColumn","severity":"ERROR","stack":"error: column \"updated_at\" does not exist\n at /app/node_modules/pg-pool/index.js:45:11\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async IdentityService.findIdentity (/app/services/identity-service.js:258:22)\n at async /app/routes/auth.js:368:32","timestamp":"2025-05-22T10:23:20.333Z"} {"level":"error","message":"Error launching Telegram bot: 404: Not Found","on":{"method":"getMe","payload":{}},"response":{"description":"Not Found","error_code":404,"ok":false},"stack":"Error: 404: Not Found\n at Telegram.callApi (/app/node_modules/telegraf/lib/core/network/client.js:315:19)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Telegraf.launch (/app/node_modules/telegraf/lib/telegraf.js:188:78)\n at async getBot (/app/services/telegramBot.js:255:5)\n at async initServices (/app/server.js:35:7)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T10:28:07.421Z"} {"code":"ENETUNREACH","level":"error","message":"[getUserTokenBalances] Ошибка получения баланса для HB3A (0xdCe769b847a0a697239777D0B1C7dd33b6012ba0) в сети arbitrum:","stack":"AggregateError [ENETUNREACH]: \n at internalConnectMultiple (node:net:1122:18)\n at internalConnectMultiple (node:net:1190:5)\n at internalConnectMultiple (node:net:1190:5)\n at defaultTriggerAsyncIdScope (node:internal/async_hooks:464:18)\n at GetAddrInfoReqWrap.emitLookup [as callback] (node:net:1526:7)\n at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:132:8)","timestamp":"2025-05-22T10:31:59.871Z"} {"code":"ENETUNREACH","errno":"ENETUNREACH","level":"error","message":"Error launching Telegram bot: request to https://api.telegram.org/bot7498026249:[REDACTED]/getMe failed, reason: connect ENETUNREACH 2001:67c:4e8:f004::9:443 - Local (:::0)","stack":"FetchError: request to https://api.telegram.org/bot7498026249:[REDACTED]/getMe failed, reason: connect ENETUNREACH 2001:67c:4e8:f004::9:443 - Local (:::0)\n at ClientRequest. (/app/node_modules/node-fetch/lib/index.js:1501:11)\n at ClientRequest.emit (node:events:524:28)\n at emitErrorEvent (node:_http_client:101:11)\n at TLSSocket.socketErrorListener (node:_http_client:504:5)\n at TLSSocket.emit (node:events:524:28)\n at emitErrorNT (node:internal/streams/destroy:169:8)\n at emitErrorCloseNT (node:internal/streams/destroy:128:3)\n at process.processTicksAndRejections (node:internal/process/task_queues:82:21)","timestamp":"2025-05-22T10:35:13.309Z","type":"system"} {"code":"ENETUNREACH","level":"error","message":"[getUserTokenBalances] Ошибка получения баланса для HB3A (0xdCe769b847a0a697239777D0B1C7dd33b6012ba0) в сети arbitrum:","stack":"AggregateError [ENETUNREACH]: \n at internalConnectMultiple (node:net:1122:18)\n at internalConnectMultiple (node:net:1190:5)\n at internalConnectMultiple (node:net:1190:5)\n at defaultTriggerAsyncIdScope (node:internal/async_hooks:464:18)\n at GetAddrInfoReqWrap.emitLookup [as callback] (node:net:1526:7)\n at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:132:8)","timestamp":"2025-05-22T11:10:09.263Z"} {"code":"ECONNREFUSED","level":"error","message":"Error launching Telegram bot:","stack":"AggregateError [ECONNREFUSED]: \n at /app/node_modules/pg-pool/index.js:45:11\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async getTelegramSettings (/app/services/telegramBot.js:13:20)\n at async getBot (/app/services/telegramBot.js:22:22)\n at async initServices (/app/server.js:35:7)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T11:18:06.450Z"} {"code":"ECONNREFUSED","level":"error","message":"Error launching Telegram bot:","stack":"AggregateError [ECONNREFUSED]: \n at /app/node_modules/pg-pool/index.js:45:11\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async getTelegramSettings (/app/services/telegramBot.js:13:20)\n at async getBot (/app/services/telegramBot.js:22:22)\n at async initServices (/app/server.js:35:7)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T11:19:03.150Z"} {"code":"ECONNREFUSED","level":"error","message":"Error launching Telegram bot:","stack":"AggregateError [ECONNREFUSED]: \n at /app/node_modules/pg-pool/index.js:45:11\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async getTelegramSettings (/app/services/telegramBot.js:13:20)\n at async getBot (/app/services/telegramBot.js:22:22)\n at async initServices (/app/server.js:35:7)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T11:19:22.997Z"} {"code":"ECONNREFUSED","level":"error","message":"Error launching Telegram bot:","stack":"AggregateError [ECONNREFUSED]: \n at /app/node_modules/pg-pool/index.js:45:11\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async getTelegramSettings (/app/services/telegramBot.js:13:20)\n at async getBot (/app/services/telegramBot.js:22:22)\n at async initServices (/app/server.js:35:7)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T11:32:50.019Z"} {"code":"ECONNREFUSED","level":"error","message":"Error launching Telegram bot:","stack":"AggregateError [ECONNREFUSED]: \n at /app/node_modules/pg-pool/index.js:45:11\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async getTelegramSettings (/app/services/telegramBot.js:13:20)\n at async getBot (/app/services/telegramBot.js:22:22)\n at async initServices (/app/server.js:35:7)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T11:36:54.404Z"} {"code":"ECONNREFUSED","level":"error","message":"Error launching Telegram bot:","stack":"AggregateError [ECONNREFUSED]: \n at /app/node_modules/pg-pool/index.js:45:11\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async getTelegramSettings (/app/services/telegramBot.js:13:20)\n at async getBot (/app/services/telegramBot.js:22:22)\n at async initServices (/app/server.js:35:7)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T11:38:37.130Z"} {"code":"ECONNREFUSED","level":"error","message":"Error launching Telegram bot:","stack":"AggregateError [ECONNREFUSED]: \n at /app/node_modules/pg-pool/index.js:45:11\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async getTelegramSettings (/app/services/telegramBot.js:13:20)\n at async getBot (/app/services/telegramBot.js:22:22)\n at async initServices (/app/server.js:35:7)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T11:40:58.680Z"} {"code":"ECONNREFUSED","level":"error","message":"Error launching Telegram bot:","stack":"AggregateError [ECONNREFUSED]: \n at /app/node_modules/pg-pool/index.js:45:11\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async getTelegramSettings (/app/services/telegramBot.js:13:20)\n at async getBot (/app/services/telegramBot.js:22:22)\n at async initServices (/app/server.js:35:7)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T11:42:31.758Z"} {"code":"ECONNREFUSED","level":"error","message":"Error launching Telegram bot:","stack":"AggregateError [ECONNREFUSED]: \n at /app/node_modules/pg-pool/index.js:45:11\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async getTelegramSettings (/app/services/telegramBot.js:13:20)\n at async getBot (/app/services/telegramBot.js:22:22)\n at async initServices (/app/server.js:35:7)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T11:42:36.298Z"} {"code":"ECONNREFUSED","level":"error","message":"Error launching Telegram bot:","stack":"AggregateError [ECONNREFUSED]: \n at /app/node_modules/pg-pool/index.js:45:11\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async getTelegramSettings (/app/services/telegramBot.js:13:20)\n at async getBot (/app/services/telegramBot.js:22:22)\n at async initServices (/app/server.js:35:7)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T11:42:57.653Z"} {"code":"ECONNREFUSED","level":"error","message":"Error launching Telegram bot:","stack":"AggregateError [ECONNREFUSED]: \n at /app/node_modules/pg-pool/index.js:45:11\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async getTelegramSettings (/app/services/telegramBot.js:13:20)\n at async getBot (/app/services/telegramBot.js:22:22)\n at async initServices (/app/server.js:35:7)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T11:46:50.798Z"} {"code":"ECONNREFUSED","level":"error","message":"Error launching Telegram bot:","stack":"AggregateError [ECONNREFUSED]: \n at /app/node_modules/pg-pool/index.js:45:11\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async getTelegramSettings (/app/services/telegramBot.js:13:20)\n at async getBot (/app/services/telegramBot.js:22:22)\n at async initServices (/app/server.js:35:7)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T11:46:54.659Z"} {"code":"ECONNREFUSED","level":"error","message":"Error launching Telegram bot:","stack":"AggregateError [ECONNREFUSED]: \n at /app/node_modules/pg-pool/index.js:45:11\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async getTelegramSettings (/app/services/telegramBot.js:13:20)\n at async getBot (/app/services/telegramBot.js:22:22)\n at async initServices (/app/server.js:35:7)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T11:48:11.768Z"} {"level":"error","message":"Error launching Telegram bot: db.query is not a function","stack":"TypeError: db.query is not a function\n at getTelegramSettings (/app/services/telegramBot.js:13:29)\n at getBot (/app/services/telegramBot.js:22:28)\n at initServices (/app/server.js:35:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T11:56:56.984Z"} {"level":"error","message":"Error launching Telegram bot: db.query is not a function","stack":"TypeError: db.query is not a function\n at getTelegramSettings (/app/services/telegramBot.js:13:29)\n at getBot (/app/services/telegramBot.js:22:28)\n at initServices (/app/server.js:35:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T11:57:50.382Z"} {"level":"error","message":"Unhandled Rejection: pool.query is not a function","stack":"TypeError: pool.query is not a function\n at /app/app.js:92:31\n at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)\n at trim_prefix (/app/node_modules/express/lib/router/index.js:328:13)\n at /app/node_modules/express/lib/router/index.js:286:9\n at Function.process_params (/app/node_modules/express/lib/router/index.js:346:12)\n at next (/app/node_modules/express/lib/router/index.js:280:10)\n at /app/node_modules/express-session/index.js:514:7\n at /app/node_modules/connect-pg-simple/index.js:370:18\n at process.processTicksAndRejections (node:internal/process/task_queues:82:21)","timestamp":"2025-05-22T11:57:55.063Z"} {"level":"error","message":"Unhandled Rejection: pool.query is not a function","stack":"TypeError: pool.query is not a function\n at /app/app.js:92:31\n at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)\n at trim_prefix (/app/node_modules/express/lib/router/index.js:328:13)\n at /app/node_modules/express/lib/router/index.js:286:9\n at Function.process_params (/app/node_modules/express/lib/router/index.js:346:12)\n at next (/app/node_modules/express/lib/router/index.js:280:10)\n at /app/node_modules/express-session/index.js:514:7\n at /app/node_modules/connect-pg-simple/index.js:370:18\n at process.processTicksAndRejections (node:internal/process/task_queues:82:21)","timestamp":"2025-05-22T11:57:59.985Z"} {"level":"error","message":"Unhandled Rejection: pool.query is not a function","stack":"TypeError: pool.query is not a function\n at /app/app.js:92:31\n at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)\n at trim_prefix (/app/node_modules/express/lib/router/index.js:328:13)\n at /app/node_modules/express/lib/router/index.js:286:9\n at Function.process_params (/app/node_modules/express/lib/router/index.js:346:12)\n at next (/app/node_modules/express/lib/router/index.js:280:10)\n at /app/node_modules/express-session/index.js:514:7\n at /app/node_modules/connect-pg-simple/index.js:370:18\n at process.processTicksAndRejections (node:internal/process/task_queues:82:21)","timestamp":"2025-05-22T11:58:14.446Z"} {"level":"error","message":"Unhandled Rejection: pool.query is not a function","stack":"TypeError: pool.query is not a function\n at /app/app.js:92:31\n at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)\n at trim_prefix (/app/node_modules/express/lib/router/index.js:328:13)\n at /app/node_modules/express/lib/router/index.js:286:9\n at Function.process_params (/app/node_modules/express/lib/router/index.js:346:12)\n at next (/app/node_modules/express/lib/router/index.js:280:10)\n at /app/node_modules/express-session/index.js:514:7\n at /app/node_modules/connect-pg-simple/index.js:370:18\n at process.processTicksAndRejections (node:internal/process/task_queues:82:21)","timestamp":"2025-05-22T11:58:14.448Z"} {"level":"error","message":"Unhandled Rejection: pool.query is not a function","stack":"TypeError: pool.query is not a function\n at /app/app.js:92:31\n at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)\n at trim_prefix (/app/node_modules/express/lib/router/index.js:328:13)\n at /app/node_modules/express/lib/router/index.js:286:9\n at Function.process_params (/app/node_modules/express/lib/router/index.js:346:12)\n at next (/app/node_modules/express/lib/router/index.js:280:10)\n at /app/node_modules/express-session/index.js:514:7\n at /app/node_modules/connect-pg-simple/index.js:370:18\n at process.processTicksAndRejections (node:internal/process/task_queues:82:21)","timestamp":"2025-05-22T11:58:14.453Z"} {"level":"error","message":"Unhandled Rejection: pool.query is not a function","stack":"TypeError: pool.query is not a function\n at /app/app.js:92:31\n at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)\n at trim_prefix (/app/node_modules/express/lib/router/index.js:328:13)\n at /app/node_modules/express/lib/router/index.js:286:9\n at Function.process_params (/app/node_modules/express/lib/router/index.js:346:12)\n at next (/app/node_modules/express/lib/router/index.js:280:10)\n at /app/node_modules/express-session/index.js:514:7\n at /app/node_modules/connect-pg-simple/index.js:370:18\n at process.processTicksAndRejections (node:internal/process/task_queues:82:21)","timestamp":"2025-05-22T11:58:14.455Z"} {"level":"error","message":"Error launching Telegram bot: db.query is not a function","stack":"TypeError: db.query is not a function\n at getTelegramSettings (/app/services/telegramBot.js:13:29)\n at getBot (/app/services/telegramBot.js:22:28)\n at initServices (/app/server.js:35:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T11:59:41.974Z"} {"level":"error","message":"Error launching Telegram bot: db.query is not a function","stack":"TypeError: db.query is not a function\n at getTelegramSettings (/app/services/telegramBot.js:13:29)\n at getBot (/app/services/telegramBot.js:22:28)\n at initServices (/app/server.js:35:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T11:59:50.126Z"} {"level":"error","message":"Error launching Telegram bot: db.query is not a function","stack":"TypeError: db.query is not a function\n at getTelegramSettings (/app/services/telegramBot.js:13:29)\n at getBot (/app/services/telegramBot.js:22:28)\n at initServices (/app/server.js:35:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T11:59:55.851Z"} {"level":"error","message":"Error launching Telegram bot: db.query is not a function","stack":"TypeError: db.query is not a function\n at getTelegramSettings (/app/services/telegramBot.js:13:29)\n at getBot (/app/services/telegramBot.js:22:28)\n at initServices (/app/server.js:35:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T11:59:59.406Z"} {"level":"error","message":"Error launching Telegram bot: db.query is not a function","stack":"TypeError: db.query is not a function\n at getTelegramSettings (/app/services/telegramBot.js:13:29)\n at getBot (/app/services/telegramBot.js:22:28)\n at initServices (/app/server.js:35:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T12:00:04.949Z"} {"level":"error","message":"Error launching Telegram bot: db.query is not a function","stack":"TypeError: db.query is not a function\n at getTelegramSettings (/app/services/telegramBot.js:13:29)\n at getBot (/app/services/telegramBot.js:22:28)\n at initServices (/app/server.js:35:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T12:00:14.518Z"} {"level":"error","message":"Error launching Telegram bot: db.query is not a function","stack":"TypeError: db.query is not a function\n at getTelegramSettings (/app/services/telegramBot.js:13:29)\n at getBot (/app/services/telegramBot.js:22:28)\n at initServices (/app/server.js:35:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T12:00:15.678Z"} {"level":"error","message":"Error launching Telegram bot: db.query is not a function","stack":"TypeError: db.query is not a function\n at getTelegramSettings (/app/services/telegramBot.js:13:29)\n at getBot (/app/services/telegramBot.js:22:28)\n at initServices (/app/server.js:35:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T12:00:21.533Z"} {"level":"error","message":"Error launching Telegram bot: db.query is not a function","stack":"TypeError: db.query is not a function\n at getTelegramSettings (/app/services/telegramBot.js:13:29)\n at getBot (/app/services/telegramBot.js:22:28)\n at initServices (/app/server.js:35:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T12:00:25.358Z"} {"level":"error","message":"Error launching Telegram bot: db.query is not a function","stack":"TypeError: db.query is not a function\n at getTelegramSettings (/app/services/telegramBot.js:13:29)\n at getBot (/app/services/telegramBot.js:22:28)\n at initServices (/app/server.js:35:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T12:00:31.705Z"} {"level":"error","message":"Error launching Telegram bot: db.query is not a function","stack":"TypeError: db.query is not a function\n at getTelegramSettings (/app/services/telegramBot.js:13:29)\n at getBot (/app/services/telegramBot.js:22:28)\n at initServices (/app/server.js:35:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T12:00:37.432Z"} {"level":"error","message":"Error launching Telegram bot: db.query is not a function","stack":"TypeError: db.query is not a function\n at getTelegramSettings (/app/services/telegramBot.js:13:29)\n at getBot (/app/services/telegramBot.js:22:28)\n at initServices (/app/server.js:35:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T12:00:43.163Z"} {"level":"error","message":"Error launching Telegram bot: db.query is not a function","stack":"TypeError: db.query is not a function\n at getTelegramSettings (/app/services/telegramBot.js:13:29)\n at getBot (/app/services/telegramBot.js:22:28)\n at initServices (/app/server.js:35:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T12:00:49.163Z"} {"level":"error","message":"Error launching Telegram bot: db.query is not a function","stack":"TypeError: db.query is not a function\n at getTelegramSettings (/app/services/telegramBot.js:13:29)\n at getBot (/app/services/telegramBot.js:22:28)\n at initServices (/app/server.js:35:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T12:00:53.058Z"} {"level":"error","message":"Error launching Telegram bot: db.query is not a function","stack":"TypeError: db.query is not a function\n at getTelegramSettings (/app/services/telegramBot.js:13:29)\n at getBot (/app/services/telegramBot.js:22:28)\n at initServices (/app/server.js:35:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T12:00:59.835Z"} {"level":"error","message":"Error launching Telegram bot: db.query is not a function","stack":"TypeError: db.query is not a function\n at getTelegramSettings (/app/services/telegramBot.js:13:29)\n at getBot (/app/services/telegramBot.js:22:28)\n at initServices (/app/server.js:35:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T12:01:05.271Z"} {"level":"error","message":"Error launching Telegram bot: db.query is not a function","stack":"TypeError: db.query is not a function\n at getTelegramSettings (/app/services/telegramBot.js:13:29)\n at getBot (/app/services/telegramBot.js:22:28)\n at initServices (/app/server.js:35:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T12:01:14.525Z"} {"level":"error","message":"Error launching Telegram bot: db.query is not a function","stack":"TypeError: db.query is not a function\n at getTelegramSettings (/app/services/telegramBot.js:13:29)\n at getBot (/app/services/telegramBot.js:22:28)\n at initServices (/app/server.js:35:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T12:01:20.428Z"} {"level":"error","message":"Error launching Telegram bot: db.query is not a function","stack":"TypeError: db.query is not a function\n at getTelegramSettings (/app/services/telegramBot.js:13:29)\n at getBot (/app/services/telegramBot.js:22:28)\n at initServices (/app/server.js:35:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T12:06:13.986Z"} {"level":"error","message":"Error launching Telegram bot: db.query is not a function","stack":"TypeError: db.query is not a function\n at getTelegramSettings (/app/services/telegramBot.js:13:29)\n at getBot (/app/services/telegramBot.js:22:28)\n at initServices (/app/server.js:35:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T12:06:24.753Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:06:25.236Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:06:25.273Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:06:25.297Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:06:25.315Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:06:25.339Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:06:25.481Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:06:25.500Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:06:25.520Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:06:25.541Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:06:25.571Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:06:25.608Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:06:25.627Z"} {"level":"error","message":"Error fetching message history for user 1: db.query is not a function","stack":"TypeError: db.query is not a function\n at /app/routes/chat.js:446:36\n at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)\n at next (/app/node_modules/express/lib/router/route.js:149:13)\n at requireAuth (/app/middleware/auth.js:30:14)\n at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)\n at next (/app/node_modules/express/lib/router/route.js:149:13)\n at Route.dispatch (/app/node_modules/express/lib/router/route.js:119:3)\n at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)\n at /app/node_modules/express/lib/router/index.js:284:15\n at Function.process_params (/app/node_modules/express/lib/router/index.js:346:12)","timestamp":"2025-05-22T12:06:26.935Z"} {"level":"error","message":"Error fetching message history for user 1: db.query is not a function","stack":"TypeError: db.query is not a function\n at /app/routes/chat.js:484:29\n at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)\n at next (/app/node_modules/express/lib/router/route.js:149:13)\n at requireAuth (/app/middleware/auth.js:30:14)\n at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)\n at next (/app/node_modules/express/lib/router/route.js:149:13)\n at Route.dispatch (/app/node_modules/express/lib/router/route.js:119:3)\n at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)\n at /app/node_modules/express/lib/router/index.js:284:15\n at Function.process_params (/app/node_modules/express/lib/router/index.js:346:12)","timestamp":"2025-05-22T12:06:26.953Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:07:08.210Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:07:08.230Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:07:08.270Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:07:08.291Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:07:08.311Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:07:08.332Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:07:08.392Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:07:08.427Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:07:08.452Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:07:08.478Z"} {"level":"error","message":"Error getting db settings: db.query is not a function","stack":"TypeError: db.query is not a function\n at /app/routes/identities.js:214:31\n at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)\n at next (/app/node_modules/express/lib/router/route.js:149:13)\n at requireAuth (/app/middleware/auth.js:30:14)\n at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)\n at next (/app/node_modules/express/lib/router/route.js:149:13)\n at Route.dispatch (/app/node_modules/express/lib/router/route.js:119:3)\n at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)\n at /app/node_modules/express/lib/router/index.js:284:15\n at Function.process_params (/app/node_modules/express/lib/router/index.js:346:12)","timestamp":"2025-05-22T12:07:09.967Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:07:09.975Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:07:09.991Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:07:10.008Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:07:10.028Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:07:10.049Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:07:10.064Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:07:10.082Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:07:10.100Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:07:10.122Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:07:10.140Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:12.203Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:12.218Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:12.235Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:12.250Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:12.270Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:12.292Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:12.312Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:12.332Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:12.352Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:12.372Z"} {"level":"error","message":"Error fetching message history for user 1: db.query is not a function","stack":"TypeError: db.query is not a function\n at /app/routes/chat.js:446:36\n at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)\n at next (/app/node_modules/express/lib/router/route.js:149:13)\n at requireAuth (/app/middleware/auth.js:30:14)\n at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)\n at next (/app/node_modules/express/lib/router/route.js:149:13)\n at Route.dispatch (/app/node_modules/express/lib/router/route.js:119:3)\n at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)\n at /app/node_modules/express/lib/router/index.js:284:15\n at Function.process_params (/app/node_modules/express/lib/router/index.js:346:12)","timestamp":"2025-05-22T12:08:13.852Z"} {"level":"error","message":"Error fetching message history for user 1: db.query is not a function","stack":"TypeError: db.query is not a function\n at /app/routes/chat.js:484:29\n at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)\n at next (/app/node_modules/express/lib/router/route.js:149:13)\n at requireAuth (/app/middleware/auth.js:30:14)\n at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)\n at next (/app/node_modules/express/lib/router/route.js:149:13)\n at Route.dispatch (/app/node_modules/express/lib/router/route.js:119:3)\n at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)\n at /app/node_modules/express/lib/router/index.js:284:15\n at Function.process_params (/app/node_modules/express/lib/router/index.js:346:12)","timestamp":"2025-05-22T12:08:13.866Z"} {"level":"error","message":"Error launching Telegram bot: db.query is not a function","stack":"TypeError: db.query is not a function\n at getTelegramSettings (/app/services/telegramBot.js:13:29)\n at getBot (/app/services/telegramBot.js:22:28)\n at initServices (/app/server.js:35:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T12:08:25.906Z"} {"level":"error","message":"Error launching Telegram bot: db.query is not a function","stack":"TypeError: db.query is not a function\n at getTelegramSettings (/app/services/telegramBot.js:13:29)\n at getBot (/app/services/telegramBot.js:22:28)\n at initServices (/app/server.js:35:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T12:08:33.657Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:40.758Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:40.808Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:40.835Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:40.852Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:40.884Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:40.930Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:40.957Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:40.992Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:41.120Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:41.139Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:41.165Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:41.185Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:45.085Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:45.104Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:45.141Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:45.159Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:45.178Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:45.205Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:45.229Z"} {"level":"error","message":"Error launching Telegram bot: db.query is not a function","stack":"TypeError: db.query is not a function\n at getTelegramSettings (/app/services/telegramBot.js:13:29)\n at getBot (/app/services/telegramBot.js:22:28)\n at initServices (/app/server.js:35:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T12:08:43.966Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:49.896Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:49.925Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:49.951Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:49.976Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:49.996Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:50.015Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:50.034Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:50.052Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:50.073Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:50.098Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:53.175Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:53.192Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:53.218Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:53.241Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:53.276Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:53.290Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:53.315Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:53.353Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:53.392Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:53.420Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:55.343Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:55.360Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:55.379Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:55.401Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:55.423Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:55.444Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:55.463Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:55.486Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:55.506Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:08:55.529Z"} {"level":"error","message":"Error launching Telegram bot: db.query is not a function","stack":"TypeError: db.query is not a function\n at getTelegramSettings (/app/services/telegramBot.js:13:29)\n at getBot (/app/services/telegramBot.js:22:28)\n at initServices (/app/server.js:35:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T12:08:58.944Z"} {"level":"error","message":"Error launching Telegram bot: db.query is not a function","stack":"TypeError: db.query is not a function\n at getTelegramSettings (/app/services/telegramBot.js:13:29)\n at getBot (/app/services/telegramBot.js:22:28)\n at initServices (/app/server.js:35:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T12:09:07.901Z"} {"level":"error","message":"Error launching Telegram bot: db.query is not a function","stack":"TypeError: db.query is not a function\n at getTelegramSettings (/app/services/telegramBot.js:13:29)\n at getBot (/app/services/telegramBot.js:22:28)\n at initServices (/app/server.js:35:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T12:09:12.663Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:09:29.544Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:09:29.566Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:09:29.595Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:09:29.624Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:09:29.647Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:09:29.673Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:09:29.708Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:09:29.742Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:09:29.849Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:09:29.870Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:09:29.892Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:09:29.916Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:09:38.914Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:09:38.936Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:09:38.958Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:09:38.977Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:09:38.998Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:09:39.015Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:09:39.032Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:09:39.056Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:09:39.075Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:09:39.093Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:09:41.700Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:09:41.716Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:09:41.741Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:09:41.763Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:09:41.782Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:09:41.797Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:09:41.817Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:09:41.833Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:09:41.854Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:09:41.878Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:09:43.724Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:09:43.740Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:09:43.765Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:09:43.791Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:09:43.813Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:09:43.832Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:09:43.851Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:09:43.874Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:09:43.909Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:09:43.929Z"} {"level":"error","message":"Error launching Telegram bot: db.query is not a function","stack":"TypeError: db.query is not a function\n at getTelegramSettings (/app/services/telegramBot.js:13:29)\n at getBot (/app/services/telegramBot.js:22:28)\n at initServices (/app/server.js:35:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T12:09:59.700Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:13:10.780Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:13:10.856Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:13:10.875Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:13:10.954Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:13:11.045Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:13:11.067Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:13:11.082Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:13:11.102Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:13:11.120Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:13:11.138Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:13:11.155Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:13:11.176Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:13:13.779Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:13:13.810Z"} {"code":"ENETUNREACH","level":"error","message":"[getUserTokenBalances] Ошибка получения баланса для HB3A (0x351f59de4fedbdf7601f5592b93db3b9330c1c1d) в сети polygon:","stack":"AggregateError [ENETUNREACH]: \n at internalConnectMultiple (node:net:1122:18)\n at internalConnectMultiple (node:net:1190:5)\n at internalConnectMultiple (node:net:1190:5)\n at defaultTriggerAsyncIdScope (node:internal/async_hooks:464:18)\n at GetAddrInfoReqWrap.emitLookup [as callback] (node:net:1526:7)\n at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:132:8)","timestamp":"2025-05-22T12:13:16.145Z"} {"code":"ENETUNREACH","level":"error","message":"[getUserTokenBalances] Ошибка получения баланса для HB3A (0xdCe769b847a0a697239777D0B1C7dd33b6012ba0) в сети arbitrum:","stack":"AggregateError [ENETUNREACH]: \n at internalConnectMultiple (node:net:1122:18)\n at internalConnectMultiple (node:net:1190:5)\n at internalConnectMultiple (node:net:1190:5)\n at defaultTriggerAsyncIdScope (node:internal/async_hooks:464:18)\n at GetAddrInfoReqWrap.emitLookup [as callback] (node:net:1526:7)\n at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:132:8)","timestamp":"2025-05-22T12:13:16.233Z"} {"level":"error","message":"[getLinkedWallet] Error fetching linked wallet for userId 1: db.query is not a function","stack":"TypeError: db.query is not a function\n at AuthService.getLinkedWallet (/app/services/auth-service.js:366:31)\n at AuthService.handleEmailVerification (/app/services/auth-service.js:817:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/routes/auth.js:359:24","timestamp":"2025-05-22T12:13:42.185Z"} {"level":"error","message":"[handleEmailVerification] Error checking admin role: db.query is not a function","stack":"TypeError: db.query is not a function\n at AuthService.handleEmailVerification (/app/services/auth-service.js:833:40)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/routes/auth.js:359:24","timestamp":"2025-05-22T12:13:42.186Z"} {"level":"error","message":"Error fetching current user role after role check error: db.query is not a function","stack":"TypeError: db.query is not a function\n at AuthService.handleEmailVerification (/app/services/auth-service.js:842:40)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/routes/auth.js:359:24","timestamp":"2025-05-22T12:13:42.187Z"} {"code":"42703","file":"parse_relation.c","hint":"Perhaps you meant to reference the column \"user_identities.created_at\".","length":183,"level":"error","line":"3729","message":"[IdentityService] Error finding wallet identity for user 1: column \"updated_at\" does not exist","name":"error","position":"43","routine":"errorMissingColumn","severity":"ERROR","stack":"error: column \"updated_at\" does not exist\n at /app/node_modules/pg-pool/index.js:45:11\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async IdentityService.findIdentity (/app/services/identity-service.js:258:22)\n at async /app/routes/auth.js:368:32","timestamp":"2025-05-22T12:13:42.191Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:13:57.723Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:13:57.800Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:13:57.817Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:13:57.843Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:13:57.863Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:13:57.882Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:13:57.921Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:13:57.942Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:13:57.960Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:13:57.983Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:13:57.998Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:13:58.016Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:15:11.547Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:15:11.575Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:21:07.817Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:21:08.276Z"} {"level":"error","message":"Error updating user role: db.query is not a function","stack":"TypeError: db.query is not a function\n at AuthService.checkAdminTokens (/app/services/auth-service.js:558:39)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async requireAdmin (/app/middleware/auth.js:107:23)","timestamp":"2025-05-22T12:21:11.015Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:21:27.439Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:21:27.468Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:24:21.976Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:24:22.037Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:24:22.079Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:24:22.094Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:24:22.109Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:24:22.122Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:24:22.138Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:24:22.151Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:24:22.166Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:24:22.183Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:24:22.199Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:24:22.216Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:25:21.981Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:25:22.010Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:26:01.494Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:26:01.529Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:28:33.564Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:28:33.592Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:34:40.368Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:34:40.409Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:34:55.750Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:34:55.791Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:35:11.297Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:35:11.349Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:35:11.375Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:35:11.394Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:35:11.410Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:35:11.428Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:35:11.447Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:35:11.465Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:35:11.482Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:35:11.496Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:35:11.522Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T12:35:11.540Z"} {"level":"error","message":"Error launching Telegram bot: db.query is not a function","stack":"TypeError: db.query is not a function\n at getTelegramSettings (/app/services/telegramBot.js:13:29)\n at getBot (/app/services/telegramBot.js:22:28)\n at initServices (/app/server.js:35:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T12:48:43.958Z"} {"level":"error","message":"Error launching Telegram bot: db.query is not a function","stack":"TypeError: db.query is not a function\n at getTelegramSettings (/app/services/telegramBot.js:13:29)\n at getBot (/app/services/telegramBot.js:22:28)\n at initServices (/app/server.js:35:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T12:51:53.499Z"} {"level":"error","message":"Error launching Telegram bot: db.query is not a function","stack":"TypeError: db.query is not a function\n at getTelegramSettings (/app/services/telegramBot.js:13:29)\n at getBot (/app/services/telegramBot.js:22:28)\n at initServices (/app/server.js:35:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T12:53:28.746Z"} {"level":"error","message":"Error launching Telegram bot: db.query is not a function","stack":"TypeError: db.query is not a function\n at getTelegramSettings (/app/services/telegramBot.js:13:29)\n at getBot (/app/services/telegramBot.js:22:28)\n at initServices (/app/server.js:35:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T12:53:30.967Z"} {"level":"error","message":"Error launching Telegram bot: db.query is not a function","stack":"TypeError: db.query is not a function\n at getTelegramSettings (/app/services/telegramBot.js:13:29)\n at getBot (/app/services/telegramBot.js:22:28)\n at initServices (/app/server.js:35:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T12:53:58.243Z"} {"level":"error","message":"Error launching Telegram bot: db.query is not a function","stack":"TypeError: db.query is not a function\n at getTelegramSettings (/app/services/telegramBot.js:13:29)\n at getBot (/app/services/telegramBot.js:22:28)\n at initServices (/app/server.js:35:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T12:54:01.602Z"} {"level":"error","message":"Error launching Telegram bot: db.query is not a function","stack":"TypeError: db.query is not a function\n at getTelegramSettings (/app/services/telegramBot.js:13:29)\n at getBot (/app/services/telegramBot.js:22:28)\n at initServices (/app/server.js:35:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T13:12:59.556Z"} {"level":"error","message":"Error: undefined","timestamp":"2025-05-22T13:13:15.709Z"} {"level":"error","message":"Error launching Telegram bot: db.query is not a function","stack":"TypeError: db.query is not a function\n at getTelegramSettings (/app/services/telegramBot.js:13:29)\n at getBot (/app/services/telegramBot.js:22:28)\n at initServices (/app/server.js:35:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Server. (/app/server.js:98:5)","timestamp":"2025-05-22T13:13:55.154Z"} {"code":"ENETUNREACH","errno":"ENETUNREACH","level":"error","message":"Error launching Telegram bot: request to https://api.telegram.org/bot7498026249:[REDACTED]/getMe failed, reason: connect ENETUNREACH 2001:67c:4e8:f004::9:443 - Local (:::0)","stack":"FetchError: request to https://api.telegram.org/bot7498026249:[REDACTED]/getMe failed, reason: connect ENETUNREACH 2001:67c:4e8:f004::9:443 - Local (:::0)\n at ClientRequest. (/app/node_modules/node-fetch/lib/index.js:1501:11)\n at ClientRequest.emit (node:events:524:28)\n at emitErrorEvent (node:_http_client:101:11)\n at TLSSocket.socketErrorListener (node:_http_client:504:5)\n at TLSSocket.emit (node:events:524:28)\n at emitErrorNT (node:internal/streams/destroy:169:8)\n at emitErrorCloseNT (node:internal/streams/destroy:128:3)\n at process.processTicksAndRejections (node:internal/process/task_queues:82:21)","timestamp":"2025-05-22T13:16:36.804Z","type":"system"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T13:17:36.366Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T13:17:36.462Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T13:17:36.627Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T13:17:36.653Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T13:17:36.675Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T13:17:36.696Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T13:17:36.718Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T13:17:36.859Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T13:17:36.890Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T13:17:36.922Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T13:17:36.950Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T13:17:36.977Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T13:18:39.257Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T13:18:39.303Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T13:21:07.268Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T13:21:07.326Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T13:21:18.209Z"} {"level":"error","message":"[session/check] Error fetching identities: db.query is not a function","timestamp":"2025-05-22T13:21:18.274Z"}