ваше сообщение коммита

This commit is contained in:
2025-05-28 14:23:38 +03:00
parent 1d6797fe1b
commit 093e599847
9 changed files with 221 additions and 6949 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,436 +1,9 @@
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:00.009Z"} {"level":"error","message":"[EmailBot] IMAP connection error: Timed out while authenticating with server","timestamp":"2025-05-28T11:19:59.653Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:00.062Z"} {"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-05-28T11:19:59.654Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:00.067Z"} {"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-05-28T11:19:59.654Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:00.105Z"} {"code":"EPROTOCOL","command":"CONN","level":"error","message":"Error sending email: Invalid greeting. response=421 4.7.0 smtp.hostland.ru Error: too many connections from 5.139.232.220: 421 4.7.0 smtp.hostland.ru Error: too many connections from 5.139.232.220","response":"421 4.7.0 smtp.hostland.ru Error: too many connections from 5.139.232.220","responseCode":421,"stack":"Error: Invalid greeting. response=421 4.7.0 smtp.hostland.ru Error: too many connections from 5.139.232.220: 421 4.7.0 smtp.hostland.ru Error: too many connections from 5.139.232.220\n at SMTPConnection._actionGreeting (/app/node_modules/nodemailer/lib/smtp-connection/index.js:1251:27)\n at SMTPConnection._processResponse (/app/node_modules/nodemailer/lib/smtp-connection/index.js:993:20)\n at SMTPConnection._onData (/app/node_modules/nodemailer/lib/smtp-connection/index.js:774:14)\n at SMTPConnection._onSocketData (/app/node_modules/nodemailer/lib/smtp-connection/index.js:195:44)\n at TLSSocket.emit (node:events:524:28)\n at addChunk (node:internal/streams/readable:561:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n at Readable.push (node:internal/streams/readable:392:5)\n at TLSWrap.onStreamRead (node:internal/stream_base_commons:191:23)","timestamp":"2025-05-28T11:22:09.742Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:00.108Z"} {"code":"EPROTOCOL","command":"CONN","level":"error","message":"Error processing incoming email: Invalid greeting. response=421 4.7.0 smtp.hostland.ru Error: too many connections from 5.139.232.220: 421 4.7.0 smtp.hostland.ru Error: too many connections from 5.139.232.220","response":"421 4.7.0 smtp.hostland.ru Error: too many connections from 5.139.232.220","responseCode":421,"stack":"Error: Invalid greeting. response=421 4.7.0 smtp.hostland.ru Error: too many connections from 5.139.232.220: 421 4.7.0 smtp.hostland.ru Error: too many connections from 5.139.232.220\n at SMTPConnection._actionGreeting (/app/node_modules/nodemailer/lib/smtp-connection/index.js:1251:27)\n at SMTPConnection._processResponse (/app/node_modules/nodemailer/lib/smtp-connection/index.js:993:20)\n at SMTPConnection._onData (/app/node_modules/nodemailer/lib/smtp-connection/index.js:774:14)\n at SMTPConnection._onSocketData (/app/node_modules/nodemailer/lib/smtp-connection/index.js:195:44)\n at TLSSocket.emit (node:events:524:28)\n at addChunk (node:internal/streams/readable:561:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n at Readable.push (node:internal/streams/readable:392:5)\n at TLSWrap.onStreamRead (node:internal/stream_base_commons:191:23)","timestamp":"2025-05-28T11:22:09.743Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:00.130Z"} {"code":"EPROTOCOL","command":"CONN","level":"error","message":"Error sending email: Invalid greeting. response=421 4.7.0 smtp.hostland.ru Error: too many connections from 5.139.232.220: 421 4.7.0 smtp.hostland.ru Error: too many connections from 5.139.232.220","response":"421 4.7.0 smtp.hostland.ru Error: too many connections from 5.139.232.220","responseCode":421,"stack":"Error: Invalid greeting. response=421 4.7.0 smtp.hostland.ru Error: too many connections from 5.139.232.220: 421 4.7.0 smtp.hostland.ru Error: too many connections from 5.139.232.220\n at SMTPConnection._actionGreeting (/app/node_modules/nodemailer/lib/smtp-connection/index.js:1251:27)\n at SMTPConnection._processResponse (/app/node_modules/nodemailer/lib/smtp-connection/index.js:993:20)\n at SMTPConnection._onData (/app/node_modules/nodemailer/lib/smtp-connection/index.js:774:14)\n at SMTPConnection._onSocketData (/app/node_modules/nodemailer/lib/smtp-connection/index.js:195:44)\n at TLSSocket.emit (node:events:524:28)\n at addChunk (node:internal/streams/readable:561:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n at Readable.push (node:internal/streams/readable:392:5)\n at TLSWrap.onStreamRead (node:internal/stream_base_commons:191:23)","timestamp":"2025-05-28T11:22:51.094Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:00.163Z"} {"code":"EPROTOCOL","command":"CONN","level":"error","message":"Error processing incoming email: Invalid greeting. response=421 4.7.0 smtp.hostland.ru Error: too many connections from 5.139.232.220: 421 4.7.0 smtp.hostland.ru Error: too many connections from 5.139.232.220","response":"421 4.7.0 smtp.hostland.ru Error: too many connections from 5.139.232.220","responseCode":421,"stack":"Error: Invalid greeting. response=421 4.7.0 smtp.hostland.ru Error: too many connections from 5.139.232.220: 421 4.7.0 smtp.hostland.ru Error: too many connections from 5.139.232.220\n at SMTPConnection._actionGreeting (/app/node_modules/nodemailer/lib/smtp-connection/index.js:1251:27)\n at SMTPConnection._processResponse (/app/node_modules/nodemailer/lib/smtp-connection/index.js:993:20)\n at SMTPConnection._onData (/app/node_modules/nodemailer/lib/smtp-connection/index.js:774:14)\n at SMTPConnection._onSocketData (/app/node_modules/nodemailer/lib/smtp-connection/index.js:195:44)\n at TLSSocket.emit (node:events:524:28)\n at addChunk (node:internal/streams/readable:561:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n at Readable.push (node:internal/streams/readable:392:5)\n at TLSWrap.onStreamRead (node:internal/stream_base_commons:191:23)","timestamp":"2025-05-28T11:22:51.094Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:00.187Z"} {"code":"EPROTOCOL","command":"CONN","level":"error","message":"Error sending email: Invalid greeting. response=421 4.7.0 smtp.hostland.ru Error: too many connections from 5.139.232.220: 421 4.7.0 smtp.hostland.ru Error: too many connections from 5.139.232.220","response":"421 4.7.0 smtp.hostland.ru Error: too many connections from 5.139.232.220","responseCode":421,"stack":"Error: Invalid greeting. response=421 4.7.0 smtp.hostland.ru Error: too many connections from 5.139.232.220: 421 4.7.0 smtp.hostland.ru Error: too many connections from 5.139.232.220\n at SMTPConnection._actionGreeting (/app/node_modules/nodemailer/lib/smtp-connection/index.js:1251:27)\n at SMTPConnection._processResponse (/app/node_modules/nodemailer/lib/smtp-connection/index.js:993:20)\n at SMTPConnection._onData (/app/node_modules/nodemailer/lib/smtp-connection/index.js:774:14)\n at SMTPConnection._onSocketData (/app/node_modules/nodemailer/lib/smtp-connection/index.js:195:44)\n at TLSSocket.emit (node:events:524:28)\n at addChunk (node:internal/streams/readable:561:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n at Readable.push (node:internal/streams/readable:392:5)\n at TLSWrap.onStreamRead (node:internal/stream_base_commons:191:23)","timestamp":"2025-05-28T11:23:00.237Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:00.201Z"} {"code":"EPROTOCOL","command":"CONN","level":"error","message":"Error processing incoming email: Invalid greeting. response=421 4.7.0 smtp.hostland.ru Error: too many connections from 5.139.232.220: 421 4.7.0 smtp.hostland.ru Error: too many connections from 5.139.232.220","response":"421 4.7.0 smtp.hostland.ru Error: too many connections from 5.139.232.220","responseCode":421,"stack":"Error: Invalid greeting. response=421 4.7.0 smtp.hostland.ru Error: too many connections from 5.139.232.220: 421 4.7.0 smtp.hostland.ru Error: too many connections from 5.139.232.220\n at SMTPConnection._actionGreeting (/app/node_modules/nodemailer/lib/smtp-connection/index.js:1251:27)\n at SMTPConnection._processResponse (/app/node_modules/nodemailer/lib/smtp-connection/index.js:993:20)\n at SMTPConnection._onData (/app/node_modules/nodemailer/lib/smtp-connection/index.js:774:14)\n at SMTPConnection._onSocketData (/app/node_modules/nodemailer/lib/smtp-connection/index.js:195:44)\n at TLSSocket.emit (node:events:524:28)\n at addChunk (node:internal/streams/readable:561:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n at Readable.push (node:internal/streams/readable:392:5)\n at TLSWrap.onStreamRead (node:internal/stream_base_commons:191:23)","timestamp":"2025-05-28T11:23:00.237Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:00.211Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:00.225Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:00.249Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:00.260Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:00.266Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:00.271Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:00.289Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:00.310Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:00.320Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:00.370Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:05.117Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:07.792Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:07.847Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:08.182Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:08.781Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:09.862Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:09.888Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:10.022Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:14.099Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:14.135Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:14.146Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:14.150Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:14.163Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:14.185Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:14.204Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:14.208Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:14.212Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:14.218Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:14.221Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:14.231Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:14.241Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:14.304Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:14.307Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:14.336Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:14.352Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:15.364Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:15.385Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:15.407Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:15.424Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:15.426Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:15.432Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:15.436Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:15.450Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:15.457Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:15.491Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:15.493Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:15.502Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:15.515Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:15.521Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:15.548Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:15.551Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:15.884Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:15.909Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:15.915Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:15.953Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:15.957Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:15.970Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:15.989Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:16.010Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:16.032Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:16.083Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:16.085Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:16.097Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:16.099Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:17.987Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:18.013Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:19.268Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:21.494Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:21.540Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:21.970Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:22.969Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:22.972Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:22.974Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:22.985Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:22.989Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:22.996Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:23.012Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.005Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.026Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.034Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.067Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.085Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.087Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.089Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.121Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.122Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.124Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.129Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.132Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.134Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.140Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.141Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.143Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.150Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.151Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.153Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.156Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.158Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.159Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.163Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.165Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.166Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.171Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.173Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.177Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.183Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.185Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.187Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.192Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.194Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.196Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.200Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.202Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.203Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.208Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.210Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.212Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.216Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.218Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.220Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.222Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.224Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.227Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.230Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.232Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.233Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.235Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.237Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.239Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.241Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.242Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.244Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.250Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.251Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.253Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.254Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.255Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.258Z"}
{"code":"23505","constraint":"user_identities_provider_provider_id_key","detail":"Key (provider, provider_id)=(email, mailer-daemon@googlemail.com) already exists.","file":"nbtinsert.c","length":303,"level":"error","line":"666","message":"[IdentityService] Error saving identity email:mailer-daemon@googlemail.com for user 46: duplicate key value violates unique constraint \"user_identities_provider_provider_id_key\"","name":"error","routine":"_bt_check_unique","schema":"public","severity":"ERROR","stack":"error: duplicate key value violates unique constraint \"user_identities_provider_provider_id_key\"\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.saveIdentity (/app/services/identity-service.js:120:9)\n at async IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:540:7)\n at async /app/services/emailBot.js:135:48","table":"user_identities","timestamp":"2025-05-23T17:55:25.356Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.358Z"}
{"code":"23505","constraint":"user_identities_provider_provider_id_key","detail":"Key (provider, provider_id)=(email, mailer-daemon@googlemail.com) already exists.","file":"nbtinsert.c","length":303,"level":"error","line":"666","message":"[IdentityService] Error saving identity email:mailer-daemon@googlemail.com for user 47: duplicate key value violates unique constraint \"user_identities_provider_provider_id_key\"","name":"error","routine":"_bt_check_unique","schema":"public","severity":"ERROR","stack":"error: duplicate key value violates unique constraint \"user_identities_provider_provider_id_key\"\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.saveIdentity (/app/services/identity-service.js:120:9)\n at async IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:540:7)\n at async /app/services/emailBot.js:135:48","table":"user_identities","timestamp":"2025-05-23T17:55:25.360Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.361Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.365Z"}
{"code":"23505","constraint":"user_identities_provider_provider_id_key","detail":"Key (provider, provider_id)=(email, mailer-daemon@googlemail.com) already exists.","file":"nbtinsert.c","length":303,"level":"error","line":"666","message":"[IdentityService] Error saving identity email:mailer-daemon@googlemail.com for user 48: duplicate key value violates unique constraint \"user_identities_provider_provider_id_key\"","name":"error","routine":"_bt_check_unique","schema":"public","severity":"ERROR","stack":"error: duplicate key value violates unique constraint \"user_identities_provider_provider_id_key\"\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.saveIdentity (/app/services/identity-service.js:120:9)\n at async IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:540:7)\n at async /app/services/emailBot.js:135:48","table":"user_identities","timestamp":"2025-05-23T17:55:25.367Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.368Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.370Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.371Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.372Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.376Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.379Z"}
{"code":"23505","constraint":"user_identities_provider_provider_id_key","detail":"Key (provider, provider_id)=(email, mailer-daemon@googlemail.com) already exists.","file":"nbtinsert.c","length":303,"level":"error","line":"666","message":"[IdentityService] Error saving identity email:mailer-daemon@googlemail.com for user 52: duplicate key value violates unique constraint \"user_identities_provider_provider_id_key\"","name":"error","routine":"_bt_check_unique","schema":"public","severity":"ERROR","stack":"error: duplicate key value violates unique constraint \"user_identities_provider_provider_id_key\"\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.saveIdentity (/app/services/identity-service.js:120:9)\n at async IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:540:7)\n at async /app/services/emailBot.js:135:48","table":"user_identities","timestamp":"2025-05-23T17:55:25.381Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.382Z"}
{"code":"23505","constraint":"user_identities_provider_provider_id_key","detail":"Key (provider, provider_id)=(email, mailer-daemon@googlemail.com) already exists.","file":"nbtinsert.c","length":303,"level":"error","line":"666","message":"[IdentityService] Error saving identity email:mailer-daemon@googlemail.com for user 51: duplicate key value violates unique constraint \"user_identities_provider_provider_id_key\"","name":"error","routine":"_bt_check_unique","schema":"public","severity":"ERROR","stack":"error: duplicate key value violates unique constraint \"user_identities_provider_provider_id_key\"\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.saveIdentity (/app/services/identity-service.js:120:9)\n at async IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:540:7)\n at async /app/services/emailBot.js:135:48","table":"user_identities","timestamp":"2025-05-23T17:55:25.383Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.384Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.406Z"}
{"code":"23505","constraint":"user_identities_provider_provider_id_key","detail":"Key (provider, provider_id)=(email, mailer-daemon@googlemail.com) already exists.","file":"nbtinsert.c","length":303,"level":"error","line":"666","message":"[IdentityService] Error saving identity email:mailer-daemon@googlemail.com for user 49: duplicate key value violates unique constraint \"user_identities_provider_provider_id_key\"","name":"error","routine":"_bt_check_unique","schema":"public","severity":"ERROR","stack":"error: duplicate key value violates unique constraint \"user_identities_provider_provider_id_key\"\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.saveIdentity (/app/services/identity-service.js:120:9)\n at async IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:540:7)\n at async /app/services/emailBot.js:135:48","table":"user_identities","timestamp":"2025-05-23T17:55:25.408Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.409Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.410Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.429Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.430Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.432Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.433Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.434Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.436Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.447Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.481Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.494Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.518Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:25.525Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:28.483Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:29.623Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:40.561Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:40.597Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:40.630Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:41.091Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:44.996Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:45.012Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:45.042Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:45.089Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:45.095Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:45.143Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:45.150Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:45.197Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:45.281Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:45.305Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:47.603Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:47.611Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:47.688Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:47.792Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:47.796Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:47.814Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:47.821Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:47.864Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:47.874Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:47.907Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:47.923Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:47.934Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:48.015Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:48.067Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:48.115Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:48.126Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:48.144Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:48.147Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:48.197Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:48.226Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:48.283Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:48.331Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:48.382Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:48.413Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:48.445Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:48.448Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:48.453Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:48.484Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:48.489Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:48.504Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:48.509Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:48.533Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:48.586Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:48.589Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:48.603Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:48.620Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:48.651Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:48.715Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:48.723Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:48.751Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:48.793Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:48.855Z"}
{"code":"23505","constraint":"user_identities_provider_provider_id_key","detail":"Key (provider, provider_id)=(email, security@getgitguardian.com) already exists.","file":"nbtinsert.c","length":302,"level":"error","line":"666","message":"[IdentityService] Error saving identity email:security@getgitguardian.com for user 75: duplicate key value violates unique constraint \"user_identities_provider_provider_id_key\"","name":"error","routine":"_bt_check_unique","schema":"public","severity":"ERROR","stack":"error: duplicate key value violates unique constraint \"user_identities_provider_provider_id_key\"\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.saveIdentity (/app/services/identity-service.js:120:9)\n at async IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:540:7)\n at async /app/services/emailBot.js:135:48","table":"user_identities","timestamp":"2025-05-23T17:55:48.858Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:48.859Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:48.904Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:48.937Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:48.944Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:48.967Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:49.015Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:49.034Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:49.046Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:49.064Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:49.072Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:49.087Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:49.112Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:49.125Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:49.148Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:49.150Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:49.167Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:49.178Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:49.189Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:49.203Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:49.213Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:49.224Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:49.234Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:49.270Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:49.285Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:51.122Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:51.169Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:51.190Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:51.243Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:51.255Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:51.272Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:51.303Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:51.365Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:51.372Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:51.377Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:51.454Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:51.476Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:51.480Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:55.103Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:55.116Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:55.122Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:55.173Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:55.178Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:55.184Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:55.190Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:55.204Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:55.221Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:55.227Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:55.236Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:55.249Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:55.279Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:55.286Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:55.298Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:55.304Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:55.337Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:55.350Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:55.363Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:55.404Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:55.444Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:55.495Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:55.610Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:55.616Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:55.634Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:55.636Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:55.658Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:55.661Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:55.685Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:55.700Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:55.741Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:55.784Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:55.821Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:55.832Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:55.915Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:55.920Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:55.954Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:55.960Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:55.968Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:55.976Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:55.979Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:55:55.982Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:56:49.633Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:56:49.659Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:56:49.666Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:56:49.709Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:56:49.801Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:56:49.826Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:56:49.859Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:56:49.907Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:56:49.923Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:56:49.940Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:56:49.953Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:56:49.956Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:56:49.979Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:56:49.986Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:56:49.993Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:56:50.011Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:56:50.031Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:56:56.515Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:56:56.534Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:56:56.543Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:56:56.548Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:56:56.556Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:56:56.561Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:56:56.571Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:56:56.590Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:56:56.596Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:56:56.603Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:56:56.631Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:56:56.639Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:56:56.646Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:56:56.721Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:56:56.769Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:56:56.809Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:56:56.820Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:56:56.905Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:56:56.924Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:56:58.812Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:00.885Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:00.916Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:01.188Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:01.470Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:01.785Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:02.827Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:02.971Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:04.933Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:04.965Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:04.970Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:04.980Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:04.982Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:04.988Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:05.019Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:05.029Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:05.054Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:05.065Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:05.071Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:05.080Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:05.099Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:05.109Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:05.110Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:05.118Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:05.126Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:05.140Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:05.156Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:05.218Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:05.224Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:05.241Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:05.287Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:05.299Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:05.306Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:05.315Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:05.343Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:05.385Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:05.387Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:05.404Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:05.429Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:05.442Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:05.454Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:05.511Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:05.531Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:06.607Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:06.626Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:06.636Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:06.658Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:06.667Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:06.705Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:06.716Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:06.738Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:06.771Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:07.223Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:07.261Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:07.264Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:10.441Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:10.481Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:10.503Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:10.517Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:10.559Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:10.573Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:10.583Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:10.601Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:10.610Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:10.627Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:10.638Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:10.644Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:10.669Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:10.678Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:10.712Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:10.716Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:10.735Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:10.750Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:10.799Z"}
{"level":"error","message":"Error processing incoming email: authService.getLinkedWallet is not a function","stack":"TypeError: authService.getLinkedWallet is not a function\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:545:38)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T17:57:13.921Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-05-23T17:57:20.695Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-05-23T17:57:43.426Z"}
{"level":"error","message":"Error processing incoming email: authService is not defined","stack":"ReferenceError: authService is not defined\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:548:23)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T18:05:23.511Z"}
{"level":"error","message":"Error processing incoming email: authService is not defined","stack":"ReferenceError: authService is not defined\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:548:23)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T18:05:23.515Z"}
{"level":"error","message":"Error processing incoming email: authService is not defined","stack":"ReferenceError: authService is not defined\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:548:23)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T18:05:48.771Z"}
{"level":"error","message":"Error processing incoming email: authService is not defined","stack":"ReferenceError: authService is not defined\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:548:23)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js:135:48","timestamp":"2025-05-23T18:05:48.772Z"}
{"level":"error","message":"Error processing incoming email: authService is not defined","stack":"ReferenceError: authService is not defined\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:548:23)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js.bak:135:48","timestamp":"2025-05-23T18:19:32.171Z"}
{"level":"error","message":"Error processing incoming email: authService is not defined","stack":"ReferenceError: authService is not defined\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:548:23)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/emailBot.js.bak:135:48","timestamp":"2025-05-23T18:19:32.174Z"}
{"level":"error","message":"[TelegramBot] Ошибка при обработке сообщения: authService is not defined","stack":"ReferenceError: authService is not defined\n at IdentityService.findOrCreateUserWithRole (/app/services/identity-service.js:548:23)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/services/telegramBot.js:264:34\n at async execute (/app/node_modules/telegraf/lib/composer.js:518:17)\n at async /app/node_modules/telegraf/lib/composer.js:519:21\n at async execute (/app/node_modules/telegraf/lib/composer.js:518:17)\n at async /app/node_modules/telegraf/lib/composer.js:519:21\n at async execute (/app/node_modules/telegraf/lib/composer.js:518:17)\n at async /app/node_modules/telegraf/lib/composer.js:519:21\n at async execute (/app/node_modules/telegraf/lib/composer.js:518:17)","timestamp":"2025-05-23T18:35:15.245Z"}

View File

@@ -40,8 +40,8 @@ async function initServices() {
// Запуск email-бота // Запуск email-бота
console.log('Создаём экземпляр EmailBotService'); console.log('Создаём экземпляр EmailBotService');
// const emailBot = new EmailBotService(); const emailBot = new EmailBotService();
// await emailBot.start(); await emailBot.start();
// Добавляем graceful shutdown // Добавляем graceful shutdown
process.once('SIGINT', async () => { process.once('SIGINT', async () => {

View File

@@ -0,0 +1,102 @@
const { ethers } = require('ethers');
const logger = require('../utils/logger');
const authTokenService = require('./authTokenService');
const rpcProviderService = require('./rpcProviderService');
// Минимальный ABI для ERC20
const ERC20_ABI = [
'function balanceOf(address owner) view returns (uint256)'
];
/**
* Основной метод проверки роли админа
* @param {string} address - Адрес кошелька
* @returns {Promise<boolean>} - Является ли пользователь админом
*/
async function checkAdminRole(address) {
if (!address) return false;
logger.info(`Checking admin role for address: ${address}`);
let foundTokens = false;
let errorCount = 0;
const balances = {};
// Получаем токены и RPC из базы
const tokens = await authTokenService.getAllAuthTokens();
const rpcProviders = await rpcProviderService.getAllRpcProviders();
const rpcMap = {};
for (const rpc of rpcProviders) {
rpcMap[rpc.network_id] = rpc.rpc_url;
}
const checkPromises = tokens.map(async (token) => {
try {
const rpcUrl = rpcMap[token.network];
if (!rpcUrl) {
logger.error(`No RPC URL for network ${token.network}`);
balances[token.network] = 'Error: No RPC URL';
errorCount++;
return null;
}
const provider = new ethers.JsonRpcProvider(rpcUrl);
// Проверяем доступность сети с таймаутом
try {
const networkCheckPromise = provider.getNetwork();
const timeoutPromise = new Promise((_, reject) =>
setTimeout(() => reject(new Error('Network check timeout')), 3000)
);
await Promise.race([networkCheckPromise, timeoutPromise]);
} catch (networkError) {
logger.error(`Provider for ${token.network} is not available: ${networkError.message}`);
balances[token.network] = 'Error: Network unavailable';
errorCount++;
return null;
}
const tokenContract = new ethers.Contract(token.address, ERC20_ABI, provider);
const balancePromise = tokenContract.balanceOf(address);
const timeoutPromise = new Promise((_, reject) =>
setTimeout(() => reject(new Error('Timeout')), 3000)
);
const balance = await Promise.race([balancePromise, timeoutPromise]);
const formattedBalance = ethers.formatUnits(balance, 18);
balances[token.network] = formattedBalance;
logger.info(`Token balance on ${token.network}:`, {
address,
contract: token.address,
balance: formattedBalance,
minBalance: token.min_balance,
hasTokens: parseFloat(formattedBalance) >= parseFloat(token.min_balance),
});
if (parseFloat(formattedBalance) >= parseFloat(token.min_balance)) {
logger.info(`Found admin tokens on ${token.network}`);
foundTokens = true;
}
return { network: token.network, balance: formattedBalance };
} catch (error) {
logger.error(`Error checking balance in ${token.network}:`, {
address,
contract: token.address,
error: error.message || 'Unknown error',
});
balances[token.network] = 'Error';
errorCount++;
return null;
}
});
await Promise.all(checkPromises);
if (errorCount === tokens.length) {
logger.error(`All network checks for ${address} failed. Cannot verify admin status.`);
return false;
}
if (foundTokens) {
logger.info(`Admin role summary for ${address}:`, {
networks: Object.keys(balances).filter(
(net) => parseFloat(balances[net]) > 0 && balances[net] !== 'Error'
),
balances,
});
logger.info(`Admin role granted for ${address}`);
return true;
}
logger.info(`Admin role denied - no tokens found for ${address}`);
return false;
}
module.exports = { checkAdminRole };

View File

@@ -8,6 +8,7 @@ const identityService = require('./identity-service'); // <-- ДОБАВЛЕН
const authTokenService = require('./authTokenService'); const authTokenService = require('./authTokenService');
const rpcProviderService = require('./rpcProviderService'); const rpcProviderService = require('./rpcProviderService');
const { getLinkedWallet } = require('./wallet-service'); const { getLinkedWallet } = require('./wallet-service');
const { checkAdminRole } = require('./admin-role');
const ERC20_ABI = ['function balanceOf(address owner) view returns (uint256)']; const ERC20_ABI = ['function balanceOf(address owner) view returns (uint256)'];
@@ -57,7 +58,7 @@ class AuthService {
const user = userResult.rows[0]; const user = userResult.rows[0];
// Проверяем роль администратора при каждой аутентификации // Проверяем роль администратора при каждой аутентификации
const isAdmin = await this.checkAdminRole(normalizedAddress); const isAdmin = await checkAdminRole(normalizedAddress);
// Если статус админа изменился, обновляем роль в базе данных // Если статус админа изменился, обновляем роль в базе данных
if (user.role === 'admin' && !isAdmin) { if (user.role === 'admin' && !isAdmin) {
@@ -90,7 +91,7 @@ class AuthService {
); );
// Проверяем, есть ли у пользователя роль админа // Проверяем, есть ли у пользователя роль админа
const isAdmin = await this.checkAdminRole(normalizedAddress); const isAdmin = await checkAdminRole(normalizedAddress);
logger.info(`New user ${userId} role check result: ${isAdmin ? 'admin' : 'user'}`); logger.info(`New user ${userId} role check result: ${isAdmin ? 'admin' : 'user'}`);
// Если у пользователя есть админские токены, обновляем его роль // Если у пользователя есть админские токены, обновляем его роль
@@ -108,97 +109,6 @@ class AuthService {
} }
} }
/**
* Основной метод проверки роли админа
* @param {string} address - Адрес кошелька
* @returns {Promise<boolean>} - Является ли пользователь админом
*/
async checkAdminRole(address) {
if (!address) return false;
logger.info(`Checking admin role for address: ${address}`);
let foundTokens = false;
let errorCount = 0;
const balances = {};
// Получаем токены и RPC из базы
const tokens = await authTokenService.getAllAuthTokens();
const rpcProviders = await rpcProviderService.getAllRpcProviders();
const rpcMap = {};
for (const rpc of rpcProviders) {
rpcMap[rpc.network_id] = rpc.rpc_url;
}
const checkPromises = tokens.map(async (token) => {
try {
const rpcUrl = rpcMap[token.network];
if (!rpcUrl) {
logger.error(`No RPC URL for network ${token.network}`);
balances[token.network] = 'Error: No RPC URL';
errorCount++;
return null;
}
const provider = new ethers.JsonRpcProvider(rpcUrl);
// Проверяем доступность сети с таймаутом
try {
const networkCheckPromise = provider.getNetwork();
const timeoutPromise = new Promise((_, reject) =>
setTimeout(() => reject(new Error('Network check timeout')), 3000)
);
await Promise.race([networkCheckPromise, timeoutPromise]);
} catch (networkError) {
logger.error(`Provider for ${token.network} is not available: ${networkError.message}`);
balances[token.network] = 'Error: Network unavailable';
errorCount++;
return null;
}
const tokenContract = new ethers.Contract(token.address, ERC20_ABI, provider);
const balancePromise = tokenContract.balanceOf(address);
const timeoutPromise = new Promise((_, reject) =>
setTimeout(() => reject(new Error('Timeout')), 3000)
);
const balance = await Promise.race([balancePromise, timeoutPromise]);
const formattedBalance = ethers.formatUnits(balance, 18);
balances[token.network] = formattedBalance;
logger.info(`Token balance on ${token.network}:`, {
address,
contract: token.address,
balance: formattedBalance,
minBalance: token.min_balance,
hasTokens: parseFloat(formattedBalance) >= parseFloat(token.min_balance),
});
if (parseFloat(formattedBalance) >= parseFloat(token.min_balance)) {
logger.info(`Found admin tokens on ${token.network}`);
foundTokens = true;
}
return { network: token.network, balance: formattedBalance };
} catch (error) {
logger.error(`Error checking balance in ${token.network}:`, {
address,
contract: token.address,
error: error.message || 'Unknown error',
});
balances[token.network] = 'Error';
errorCount++;
return null;
}
});
await Promise.all(checkPromises);
if (errorCount === tokens.length) {
logger.error(`All network checks for ${address} failed. Cannot verify admin status.`);
return false;
}
if (foundTokens) {
logger.info(`Admin role summary for ${address}:`, {
networks: Object.keys(balances).filter(
(net) => parseFloat(balances[net]) > 0 && balances[net] !== 'Error'
),
balances,
});
logger.info(`Admin role granted for ${address}`);
return true;
}
logger.info(`Admin role denied - no tokens found for ${address}`);
return false;
}
/** /**
* Получение балансов токенов для адреса * Получение балансов токенов для адреса
* @param {string} address - Адрес кошелька * @param {string} address - Адрес кошелька
@@ -378,7 +288,7 @@ class AuthService {
} }
// Если есть кошелек, проверяем админские токены // Если есть кошелек, проверяем админские токены
const isAdmin = await this.checkAdminRole(wallet); const isAdmin = await checkAdminRole(wallet);
logger.info( logger.info(
`Role check for user ${userId} with wallet ${wallet}: ${isAdmin ? 'admin' : 'user'}` `Role check for user ${userId} with wallet ${wallet}: ${isAdmin ? 'admin' : 'user'}`
); );
@@ -415,7 +325,7 @@ class AuthService {
if (wallet) { if (wallet) {
// Если есть кошелек, проверяем баланс токенов // Если есть кошелек, проверяем баланс токенов
const isAdmin = await this.checkAdminRole(wallet); const isAdmin = await checkAdminRole(wallet);
role = isAdmin ? 'admin' : 'user'; role = isAdmin ? 'admin' : 'user';
logger.info(`User ${userId} has wallet ${wallet}, role set to ${role}`); logger.info(`User ${userId} has wallet ${wallet}, role set to ${role}`);
} else { } else {
@@ -530,7 +440,7 @@ class AuthService {
logger.info(`Checking admin tokens for address: ${address}`); logger.info(`Checking admin tokens for address: ${address}`);
try { try {
const isAdmin = await this.checkAdminRole(address); const isAdmin = await checkAdminRole(address);
// Обновляем роль пользователя в базе данных, если есть админские токены // Обновляем роль пользователя в базе данных, если есть админские токены
if (isAdmin) { if (isAdmin) {
@@ -798,7 +708,7 @@ class AuthService {
const linkedWallet = await getLinkedWallet(userId); const linkedWallet = await getLinkedWallet(userId);
if (linkedWallet && linkedWallet.provider_id) { if (linkedWallet && linkedWallet.provider_id) {
logger.info(`[handleEmailVerification] Found linked wallet ${linkedWallet.provider_id}. Checking role...`); logger.info(`[handleEmailVerification] Found linked wallet ${linkedWallet.provider_id}. Checking role...`);
const isAdmin = await this.checkAdminRole(linkedWallet.provider_id); const isAdmin = await checkAdminRole(linkedWallet.provider_id);
userRole = isAdmin ? 'admin' : 'user'; userRole = isAdmin ? 'admin' : 'user';
logger.info(`[handleEmailVerification] Role determined as: ${userRole}`); logger.info(`[handleEmailVerification] Role determined as: ${userRole}`);

View File

@@ -4,6 +4,7 @@ const logger = require('../utils/logger');
const EmailBotService = require('./emailBot.js'); const EmailBotService = require('./emailBot.js');
const db = require('../db'); const db = require('../db');
const authService = require('./auth-service'); const authService = require('./auth-service');
const { checkAdminRole } = require('./admin-role');
class EmailAuth { class EmailAuth {
constructor() { constructor() {
@@ -167,7 +168,7 @@ class EmailAuth {
const linkedWallet = await authService.getLinkedWallet(finalUserId); const linkedWallet = await authService.getLinkedWallet(finalUserId);
if (linkedWallet) { if (linkedWallet) {
logger.info(`[checkEmailVerification] Found linked wallet ${linkedWallet} for user ${finalUserId}. Checking admin role...`); logger.info(`[checkEmailVerification] Found linked wallet ${linkedWallet} for user ${finalUserId}. Checking admin role...`);
const isAdmin = await authService.checkAdminRole(linkedWallet); const isAdmin = await checkAdminRole(linkedWallet);
userRole = isAdmin ? 'admin' : 'user'; userRole = isAdmin ? 'admin' : 'user';
logger.info(`[checkEmailVerification] Role for user ${finalUserId} determined as: ${userRole}`); logger.info(`[checkEmailVerification] Role for user ${finalUserId} determined as: ${userRole}`);

View File

@@ -236,6 +236,7 @@ class EmailBotService {
logger.info('[EmailBot] IMAP config:', safeConfig); logger.info('[EmailBot] IMAP config:', safeConfig);
let attempt = 0; let attempt = 0;
const maxAttempts = 3; const maxAttempts = 3;
this.isChecking = false;
const tryConnect = () => { const tryConnect = () => {
attempt++; attempt++;
logger.info(`[EmailBot] IMAP connect attempt ${attempt}`); logger.info(`[EmailBot] IMAP connect attempt ${attempt}`);
@@ -253,6 +254,17 @@ class EmailBotService {
// После успешного подключения — обычная логика // После успешного подключения — обычная логика
this.checkEmails(); this.checkEmails();
logger.info('[EmailBot] Email bot started and IMAP connection initiated'); logger.info('[EmailBot] Email bot started and IMAP connection initiated');
// Периодическая проверка почты
setInterval(async () => {
if (this.isChecking) return;
this.isChecking = true;
try {
await this.checkEmails();
} catch (e) {
logger.error('[EmailBot] Error in periodic checkEmails:', e);
}
this.isChecking = false;
}, 60000); // 60 секунд
}); });
this.imap.once('error', (err) => { this.imap.once('error', (err) => {
logger.error(`[EmailBot] IMAP connection error: ${err.message}`); logger.error(`[EmailBot] IMAP connection error: ${err.message}`);

View File

@@ -1,6 +1,7 @@
const db = require('../db'); const db = require('../db');
const logger = require('../utils/logger'); const logger = require('../utils/logger');
const { getLinkedWallet } = require('./wallet-service'); const { getLinkedWallet } = require('./wallet-service');
const { checkAdminRole } = require('./admin-role');
/** /**
* Сервис для работы с идентификаторами пользователей * Сервис для работы с идентификаторами пользователей
@@ -545,7 +546,7 @@ class IdentityService {
const wallet = await getLinkedWallet(user.id); const wallet = await getLinkedWallet(user.id);
let role = 'user'; let role = 'user';
if (wallet) { if (wallet) {
const isAdmin = await authService.checkAdminRole(wallet); const isAdmin = await checkAdminRole(wallet);
role = isAdmin ? 'admin' : 'user'; role = isAdmin ? 'admin' : 'user';
// Обновляем роль в users, если изменилась // Обновляем роль в users, если изменилась
if (user.role !== role) { if (user.role !== role) {

View File

@@ -6,6 +6,7 @@ const verificationService = require('./verification-service');
const crypto = require('crypto'); const crypto = require('crypto');
const identityService = require('./identity-service'); const identityService = require('./identity-service');
const aiAssistant = require('./ai-assistant'); const aiAssistant = require('./ai-assistant');
const { checkAdminRole } = require('./admin-role');
let botInstance = null; let botInstance = null;
let telegramSettingsCache = null; let telegramSettingsCache = null;
@@ -158,7 +159,7 @@ async function getBot() {
const linkedWallet = await authService.getLinkedWallet(userId); const linkedWallet = await authService.getLinkedWallet(userId);
if (linkedWallet) { if (linkedWallet) {
logger.info(`[TelegramBot] Found linked wallet ${linkedWallet} for user ${userId}. Checking role...`); logger.info(`[TelegramBot] Found linked wallet ${linkedWallet} for user ${userId}. Checking role...`);
const isAdmin = await authService.checkAdminRole(linkedWallet); const isAdmin = await checkAdminRole(linkedWallet);
userRole = isAdmin ? 'admin' : 'user'; userRole = isAdmin ? 'admin' : 'user';
logger.info(`[TelegramBot] Role for user ${userId} determined as: ${userRole}`); logger.info(`[TelegramBot] Role for user ${userId} determined as: ${userRole}`);