Приветствую! Столкнулся с такой ошибкой, куда копать вообще не могу понять. Сразу уточню, что ошибка появилась вообще внезапно, до этого все было хорошо. Подключение к базе успешно, проверил. Когда идет взаимодействие с таблицам, вылетает ошибка, что не может подключиться к базе, но это вообще не так. Пробовал сносить пакеты и заново ставить, пробовал регенерировать призму, пушить, все без результатно. Кто сталкивался? Как решить? Использую докер. Все процессы запущены, в этом я точно уверен.
[BotError]: Unexpected error: PrismaClientKnownRequestError:
Invalid prisma.activityLog.create() invocation:
Can't reach database server at 127.0.0.1:5432
at qr.handleRequestError (/home/hardbot/vpn-genie-bot/node_modules/@prisma/client/runtime/client.js:65:8172)
at qr.handleAndLogRequestError (/home/hardbot/vpn-genie-bot/node_modules/@prisma/client/runtime/client.js:65:7467)
at qr.request (/home/hardbot/vpn-genie-bot/node_modules/@prisma/client/runtime/client.js:65:7174)
at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
at async a (/home/hardbot/vpn-genie-bot/node_modules/@prisma/client/runtime/client.js:75:5816)
at async AuthorizeService.create (file:///home/hardbot/vpn-genie-bot/dist/src/modules/authorize/AuthorizeService.js:19:9)
at async StartCommand.execute (file:///home/hardbot/vpn-genie-bot/dist/src/modules/authorize/commands/start.command.js:17:13)
at async execute (/home/hardbot/vpn-genie-bot/node_modules/telegraf/lib/composer.js:518:17)
at async /home/hardbot/vpn-genie-bot/node_modules/telegraf/lib/composer.js:519:21
at async execute (/home/hardbot/vpn-genie-bot/node_modules/telegraf/lib/composer.js:518:17) {
code: 'P1001',
meta: {
modelName: 'ActivityLog',
driverAdapterError: DriverAdapterError: DatabaseNotReachable
at PrismaPgAdapter.onError (file:///home/hardbot/vpn-genie-bot/node_modules/@prisma/adapter-pg/dist/index.mjs:651:11)
at PrismaPgAdapter.performIO (file:///home/hardbot/vpn-genie-bot/node_modules/@prisma/adapter-pg/dist/index.mjs:646:12)
at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
at async PrismaPgAdapter.queryRaw (file:///home/hardbot/vpn-genie-bot/node_modules/@prisma/adapter-pg/dist/index.mjs:566:30)
at async /home/hardbot/vpn-genie-bot/node_modules/@prisma/client/runtime/client.js:11:24331
at async fr (/home/hardbot/vpn-genie-bot/node_modules/@prisma/client/runtime/client.js:11:24170)
at async e.interpretNode (/home/hardbot/vpn-genie-bot/node_modules/@prisma/client/runtime/client.js:11:42277)
at async e.interpretNode (/home/hardbot/vpn-genie-bot/node_modules/@prisma/client/runtime/client.js:11:42701)
at async e.interpretNode (/home/hardbot/vpn-genie-bot/node_modules/@prisma/client/runtime/client.js:11:43875)
at async e.run (/home/hardbot/vpn-genie-bot/node_modules/@prisma/client/runtime/client.js:11:41116) {
cause: [Object]
}
},
clientVersion: '7.2.0'
}