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

This commit is contained in:
2025-06-01 17:26:59 +03:00
parent 6fcb9486c9
commit 2c2115869c
21 changed files with 2358 additions and 1871 deletions

View File

@@ -63,6 +63,7 @@ const isicRoutes = require('./routes/isic'); // Добавленный импо
const geocodingRoutes = require('./routes/geocoding'); // Добавленный импорт
const dleRoutes = require('./routes/dle'); // Добавляем импорт DLE маршрутов
const settingsRoutes = require('./routes/settings'); // Добавляем импорт маршрутов настроек
const tablesRoutes = require('./routes/tables'); // Добавляем импорт таблиц
const app = express();
@@ -154,9 +155,10 @@ app.use((req, res, next) => {
});
// Маршруты API
app.use('/api/tables', tablesRoutes); // ДОЛЖНО БЫТЬ ВЫШЕ!
app.use('/api', identitiesRoutes);
app.use('/api/auth', authRoutes);
app.use('/api/users', usersRoutes);
app.use('/api', identitiesRoutes);
app.use('/api/chat', chatRoutes);
app.use('/api/admin', adminRoutes);
app.use('/api/tokens', tokensRouter);

View File

@@ -8,6 +8,7 @@ CREATE TABLE IF NOT EXISTS user_tables (
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
CREATE TABLE IF NOT EXISTS user_columns (
id SERIAL PRIMARY KEY,
table_id INTEGER NOT NULL REFERENCES user_tables(id) ON DELETE CASCADE,
@@ -15,7 +16,8 @@ CREATE TABLE IF NOT EXISTS user_columns (
type VARCHAR(50) NOT NULL, -- text, number, select, multiselect, date, etc.
options JSONB DEFAULT NULL, -- для select/multiselect
"order" INTEGER DEFAULT 0,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
CREATE TABLE IF NOT EXISTS user_rows (

File diff suppressed because it is too large Load Diff

View File

@@ -108,3 +108,408 @@
{"level":"error","message":"[EmailBot] IMAP connection error: Timed out while authenticating with server","timestamp":"2025-06-01T12:13:04.750Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:13:04.751Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:13:04.751Z"}
{"level":"error","message":"[EmailBot] IMAP connection error: Timed out while authenticating with server","timestamp":"2025-06-01T12:30:13.610Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:30:13.611Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:30:13.611Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:30:13.611Z"}
{"level":"error","message":"[EmailBot] IMAP connection error: Timed out while authenticating with server","timestamp":"2025-06-01T12:32:59.820Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:32:59.821Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:32:59.821Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:32:59.821Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:32:59.821Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:32:59.822Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:32:59.822Z"}
{"level":"error","message":"Uncaught Exception: Not authenticated","stack":"Error: Not authenticated\n at Connection.openBox (/app/node_modules/imap/lib/Connection.js:409:11)\n at Connection.<anonymous> (/app/services/emailBot.js:98:19)\n at Object.onceWrapper (node:events:638:28)\n at Connection.emit (node:events:536:35)\n at Connection.<anonymous> (/app/node_modules/imap/lib/Connection.js:1623:12)\n at Connection._resTagged (/app/node_modules/imap/lib/Connection.js:1535:22)\n at Parser.<anonymous> (/app/node_modules/imap/lib/Connection.js:194:10)\n at Parser.emit (node:events:524:28)\n at Parser._resTagged (/app/node_modules/imap/lib/Parser.js:175:10)\n at Parser._parse (/app/node_modules/imap/lib/Parser.js:139:16)","timestamp":"2025-06-01T12:33:08.570Z"}
{"level":"error","message":"[EmailBot] IMAP connection error: Timed out while authenticating with server","timestamp":"2025-06-01T12:33:55.215Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:33:55.216Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:33:55.216Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:33:55.217Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:34:08.611Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:34:08.612Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:35:59.510Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:35:59.510Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:35:59.510Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:35:59.510Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:35:59.511Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:35:59.512Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:36:54.929Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:36:54.930Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:36:54.930Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:37:50.416Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:37:50.416Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:37:50.416Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:38:45.807Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:38:45.808Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:38:45.808Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:39:41.119Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:39:41.119Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:39:41.119Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:40:35.667Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:40:35.667Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:40:35.667Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:41:17.106Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:41:30.247Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:41:30.247Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:42:24.659Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:42:24.660Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:42:24.660Z"}
{"level":"error","message":"[EmailBot] IMAP connection error: Timed out while authenticating with server","timestamp":"2025-06-01T12:45:19.446Z"}
{"level":"error","message":"[EmailBot] IMAP connection error: Timed out while authenticating with server","timestamp":"2025-06-01T12:47:59.820Z"}
{"level":"error","message":"[EmailBot] IMAP connection error: Timed out while authenticating with server","timestamp":"2025-06-01T12:55:18.678Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:55:18.679Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:55:18.680Z"}
{"level":"error","message":"[EmailBot] IMAP connection error: Timed out while authenticating with server","timestamp":"2025-06-01T12:55:31.780Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:55:31.781Z"}
{"level":"error","message":"[EmailBot] IMAP connection error: Timed out while authenticating with server","timestamp":"2025-06-01T12:57:16.610Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T12:57:16.611Z"}
{"level":"error","message":"[EmailBot] IMAP connection error: Timed out while authenticating with server","timestamp":"2025-06-01T12:57:27.541Z"}
{"level":"error","message":"[EmailBot] IMAP connection error: Timed out while authenticating with server","timestamp":"2025-06-01T13:00:04.844Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:00:04.845Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:00:04.846Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:00:04.846Z"}
{"level":"error","message":"[EmailBot] IMAP connection error: Timed out while authenticating with server","timestamp":"2025-06-01T13:01:15.296Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:01:15.297Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:01:15.297Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:01:15.297Z"}
{"level":"error","message":"[EmailBot] IMAP connection error: Timed out while authenticating with server","timestamp":"2025-06-01T13:02:23.121Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:02:23.122Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:02:23.122Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:02:23.123Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:02:23.123Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:03:17.628Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:03:17.629Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:03:17.629Z"}
{"level":"error","message":"[EmailBot] IMAP connection error: Timed out while authenticating with server","timestamp":"2025-06-01T13:06:51.568Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:06:51.569Z"}
{"level":"error","message":"[EmailBot] IMAP connection error: Timed out while authenticating with server","timestamp":"2025-06-01T13:08:02.186Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:08:02.186Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:08:02.187Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:08:02.187Z"}
{"level":"error","message":"[EmailBot] IMAP connection error: Timed out while authenticating with server","timestamp":"2025-06-01T13:08:14.872Z"}
{"level":"error","message":"Uncaught Exception: Not authenticated","stack":"Error: Not authenticated\n at Connection.openBox (/app/node_modules/imap/lib/Connection.js:409:11)\n at Connection.<anonymous> (/app/services/emailBot.js:98:19)\n at Object.onceWrapper (node:events:638:28)\n at Connection.emit (node:events:536:35)\n at Connection.<anonymous> (/app/node_modules/imap/lib/Connection.js:1623:12)\n at Connection._resTagged (/app/node_modules/imap/lib/Connection.js:1535:22)\n at Parser.<anonymous> (/app/node_modules/imap/lib/Connection.js:194:10)\n at Parser.emit (node:events:524:28)\n at Parser._resTagged (/app/node_modules/imap/lib/Parser.js:175:10)\n at Parser._parse (/app/node_modules/imap/lib/Parser.js:139:16)","timestamp":"2025-06-01T13:08:35.973Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:08:56.585Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:08:56.586Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:08:56.586Z"}
{"level":"error","message":"[EmailBot] IMAP connection error: Timed out while authenticating with server","timestamp":"2025-06-01T13:15:33.243Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:15:33.244Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:15:33.245Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:15:33.245Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:15:33.245Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:15:33.245Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:15:33.246Z"}
{"level":"error","message":"[EmailBot] IMAP connection error: Timed out while authenticating with server","timestamp":"2025-06-01T13:15:53.531Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:15:53.532Z"}
{"level":"error","message":"[EmailBot] IMAP connection error: Timed out while authenticating with server","timestamp":"2025-06-01T13:16:06.271Z"}
{"level":"error","message":"Uncaught Exception: Not authenticated","stack":"Error: Not authenticated\n at Connection.openBox (/app/node_modules/imap/lib/Connection.js:409:11)\n at Connection.<anonymous> (/app/services/emailBot.js:98:19)\n at Object.onceWrapper (node:events:638:28)\n at Connection.emit (node:events:536:35)\n at Connection.<anonymous> (/app/node_modules/imap/lib/Connection.js:1623:12)\n at Connection._resTagged (/app/node_modules/imap/lib/Connection.js:1535:22)\n at Parser.<anonymous> (/app/node_modules/imap/lib/Connection.js:194:10)\n at Parser.emit (node:events:524:28)\n at Parser._resTagged (/app/node_modules/imap/lib/Parser.js:175:10)\n at Parser._parse (/app/node_modules/imap/lib/Parser.js:139:16)","timestamp":"2025-06-01T13:16:23.502Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:17:22.573Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:17:22.574Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:17:22.574Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:17:22.574Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:17:22.574Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:17:42.841Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:18:17.144Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:18:17.145Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:19:11.722Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:19:11.723Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:19:11.723Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:20:06.223Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:20:06.224Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:20:06.224Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:21:00.825Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:21:00.825Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:21:00.825Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:21:21.116Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:22:15.614Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:22:15.615Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:22:15.615Z"}
{"level":"error","message":"Uncaught Exception: Cannot read properties of undefined (reading 'type')","stack":"TypeError: Cannot read properties of undefined (reading 'type')\n at Connection._resUntagged (/app/node_modules/imap/lib/Connection.js:1265:52)\n at Parser.<anonymous> (/app/node_modules/imap/lib/Connection.js:191:10)\n at Parser.emit (node:events:524:28)\n at Parser._resUntagged (/app/node_modules/imap/lib/Parser.js:271:10)\n at Parser._parse (/app/node_modules/imap/lib/Parser.js:137:16)\n at Parser._tryread (/app/node_modules/imap/lib/Parser.js:82:15)\n at Parser._cbReadable (/app/node_modules/imap/lib/Parser.js:53:12)\n at TLSSocket.emit (node:events:524:28)\n at emitReadable_ (node:internal/streams/readable:834:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:81:21)","timestamp":"2025-06-01T13:22:45.249Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:23:44.328Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:23:44.328Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:23:44.328Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:23:44.328Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:23:44.328Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:24:04.569Z"}
{"level":"error","message":"Uncaught Exception: Cannot read properties of undefined (reading 'type')","stack":"TypeError: Cannot read properties of undefined (reading 'type')\n at Connection._resUntagged (/app/node_modules/imap/lib/Connection.js:1265:52)\n at Parser.<anonymous> (/app/node_modules/imap/lib/Connection.js:191:10)\n at Parser.emit (node:events:524:28)\n at Parser._resUntagged (/app/node_modules/imap/lib/Parser.js:271:10)\n at Parser._parse (/app/node_modules/imap/lib/Parser.js:137:16)\n at Parser._tryread (/app/node_modules/imap/lib/Parser.js:82:15)\n at Parser._cbReadable (/app/node_modules/imap/lib/Parser.js:53:12)\n at TLSSocket.emit (node:events:524:28)\n at emitReadable_ (node:internal/streams/readable:834:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:81:21)","timestamp":"2025-06-01T13:24:34.225Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:25:33.534Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:25:33.534Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:25:33.535Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:25:33.535Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:25:33.535Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:26:28.054Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:26:28.055Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:26:28.055Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:27:23.322Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:27:23.323Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:27:23.323Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:27:43.035Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:28:37.605Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:28:37.605Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:28:37.605Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:30:06.234Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:30:06.235Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:30:06.235Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:30:06.235Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:30:06.236Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:31:00.791Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:31:00.792Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:31:00.792Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:31:55.225Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:31:55.225Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:31:55.226Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:33:44.284Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:33:44.285Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:33:44.285Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:33:44.285Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:33:44.285Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:33:44.286Z"}
{"level":"error","message":"Uncaught Exception: Cannot read properties of undefined (reading 'cbargs')","stack":"TypeError: Cannot read properties of undefined (reading 'cbargs')\n at Connection._resUntagged (/app/node_modules/imap/lib/Connection.js:1253:20)\n at Parser.<anonymous> (/app/node_modules/imap/lib/Connection.js:191:10)\n at Parser.emit (node:events:524:28)\n at Parser._resUntagged (/app/node_modules/imap/lib/Parser.js:271:10)\n at Parser._parse (/app/node_modules/imap/lib/Parser.js:137:16)\n at Parser._tryread (/app/node_modules/imap/lib/Parser.js:82:15)\n at Parser._cbReadable (/app/node_modules/imap/lib/Parser.js:53:12)\n at TLSSocket.emit (node:events:524:28)\n at emitReadable_ (node:internal/streams/readable:834:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:81:21)","timestamp":"2025-06-01T13:34:34.438Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:35:33.575Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:35:33.575Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:35:33.575Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:35:33.575Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:35:33.576Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:35:33.576Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:37:22.712Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:37:22.713Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:37:22.713Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:37:22.713Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:37:22.713Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:37:22.713Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:38:17.269Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:38:17.269Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:38:17.270Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:38:37.670Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:39:11.851Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:39:11.852Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:40:06.385Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:40:06.386Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:40:06.386Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:41:00.818Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:41:00.819Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:41:00.819Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:41:55.333Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:41:55.334Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:41:55.335Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:42:50.061Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:42:50.062Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:42:50.062Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:43:44.501Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:43:44.501Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:43:44.502Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:44:39.448Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:44:39.449Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:44:39.449Z"}
{"level":"error","message":"Uncaught Exception: Timed out while connecting to server","source":"timeout","stack":"Error: Timed out while connecting to server\n at Timeout._onTimeout (/app/node_modules/imap/lib/Connection.js:280:15)\n at listOnTimeout (node:internal/timers:581:17)\n at process.processTimers (node:internal/timers:519:7)","timestamp":"2025-06-01T13:44:43.990Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:44:57.552Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:45:34.003Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:45:34.004Z"}
{"code":"EPIPE","level":"error","message":"Uncaught Exception: This socket has been ended by the other party","source":"socket","stack":"Error: This socket has been ended by the other party\n at genericNodeError (node:internal/errors:984:15)\n at wrappedFn (node:internal/errors:538:14)\n at Socket.writeAfterFIN [as write] (node:net:566:14)\n at JSStreamSocket.doWrite (node:internal/js_stream_socket:199:19)\n at JSStream.onwrite (node:internal/js_stream_socket:35:57)\n at Socket._final (node:net:537:28)\n at prefinish (node:internal/streams/writable:916:14)\n at finishMaybe (node:internal/streams/writable:930:5)\n at Writable.end (node:internal/streams/writable:845:5)\n at Socket.end (node:net:728:31)","timestamp":"2025-06-01T13:45:35.365Z"}
{"level":"error","message":"Uncaught Exception: Timed out while connecting to server","source":"timeout","stack":"Error: Timed out while connecting to server\n at Timeout._onTimeout (/app/node_modules/imap/lib/Connection.js:280:15)\n at listOnTimeout (node:internal/timers:581:17)\n at process.processTimers (node:internal/timers:519:7)","timestamp":"2025-06-01T13:45:38.523Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:45:57.304Z"}
{"level":"error","message":"IMAP connection error during check: write after end","timestamp":"2025-06-01T13:46:23.401Z"}
{"level":"error","message":"IMAP connection error during check: write after end","timestamp":"2025-06-01T13:46:23.402Z"}
{"level":"error","message":"Uncaught Exception: Timed out while authenticating with server","source":"timeout-auth","stack":"Error: Timed out while authenticating with server\n at Timeout._onTimeout (/app/node_modules/imap/lib/Connection.js:139:17)\n at listOnTimeout (node:internal/timers:581:17)\n at process.processTimers (node:internal/timers:519:7)","timestamp":"2025-06-01T13:46:29.033Z"}
{"code":"EPIPE","level":"error","message":"Uncaught Exception: This socket has been ended by the other party","source":"socket","stack":"Error: This socket has been ended by the other party\n at genericNodeError (node:internal/errors:984:15)\n at wrappedFn (node:internal/errors:538:14)\n at Socket.writeAfterFIN [as write] (node:net:566:14)\n at JSStreamSocket.doWrite (node:internal/js_stream_socket:199:19)\n at JSStream.onwrite (node:internal/js_stream_socket:35:57)\n at Socket._final (node:net:537:28)\n at prefinish (node:internal/streams/writable:916:14)\n at finishMaybe (node:internal/streams/writable:930:5)\n at Writable.end (node:internal/streams/writable:845:5)\n at Socket.end (node:net:728:31)","timestamp":"2025-06-01T13:46:29.876Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:46:48.814Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:47:22.968Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:47:22.969Z"}
{"code":"EPIPE","level":"error","message":"Uncaught Exception: This socket has been ended by the other party","source":"socket","stack":"Error: This socket has been ended by the other party\n at genericNodeError (node:internal/errors:984:15)\n at wrappedFn (node:internal/errors:538:14)\n at Socket.writeAfterFIN [as write] (node:net:566:14)\n at JSStreamSocket.doWrite (node:internal/js_stream_socket:199:19)\n at JSStream.onwrite (node:internal/js_stream_socket:35:57)\n at Socket._final (node:net:537:28)\n at prefinish (node:internal/streams/writable:916:14)\n at finishMaybe (node:internal/streams/writable:930:5)\n at Writable.end (node:internal/streams/writable:845:5)\n at Socket.end (node:net:728:31)","timestamp":"2025-06-01T13:47:24.629Z"}
{"level":"error","message":"Uncaught Exception: Timed out while connecting to server","source":"timeout","stack":"Error: Timed out while connecting to server\n at Timeout._onTimeout (/app/node_modules/imap/lib/Connection.js:280:15)\n at listOnTimeout (node:internal/timers:581:17)\n at process.processTimers (node:internal/timers:519:7)","timestamp":"2025-06-01T13:47:27.484Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:47:43.555Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:48:17.540Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:48:17.541Z"}
{"code":"EPIPE","level":"error","message":"Uncaught Exception: This socket has been ended by the other party","source":"socket","stack":"Error: This socket has been ended by the other party\n at genericNodeError (node:internal/errors:984:15)\n at wrappedFn (node:internal/errors:538:14)\n at Socket.writeAfterFIN [as write] (node:net:566:14)\n at JSStreamSocket.doWrite (node:internal/js_stream_socket:199:19)\n at JSStream.onwrite (node:internal/js_stream_socket:35:57)\n at Socket._final (node:net:537:28)\n at prefinish (node:internal/streams/writable:916:14)\n at finishMaybe (node:internal/streams/writable:930:5)\n at Writable.end (node:internal/streams/writable:845:5)\n at Socket.end (node:net:728:31)","timestamp":"2025-06-01T13:48:18.776Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:49:12.034Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:49:12.035Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:49:12.036Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:50:06.545Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:50:06.546Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:50:06.546Z"}
{"level":"error","message":"Uncaught Exception: Timed out while connecting to server","source":"timeout","stack":"Error: Timed out while connecting to server\n at Timeout._onTimeout (/app/node_modules/imap/lib/Connection.js:280:15)\n at listOnTimeout (node:internal/timers:581:17)\n at process.processTimers (node:internal/timers:519:7)","timestamp":"2025-06-01T13:50:11.115Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:51:01.000Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:51:01.001Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:51:01.001Z"}
{"code":"EPIPE","level":"error","message":"Uncaught Exception: This socket has been ended by the other party","source":"socket","stack":"Error: This socket has been ended by the other party\n at genericNodeError (node:internal/errors:984:15)\n at wrappedFn (node:internal/errors:538:14)\n at Socket.writeAfterFIN [as write] (node:net:566:14)\n at JSStreamSocket.doWrite (node:internal/js_stream_socket:199:19)\n at JSStream.onwrite (node:internal/js_stream_socket:35:57)\n at Socket._final (node:net:537:28)\n at prefinish (node:internal/streams/writable:916:14)\n at finishMaybe (node:internal/streams/writable:930:5)\n at Writable.end (node:internal/streams/writable:845:5)\n at Socket.end (node:net:728:31)","timestamp":"2025-06-01T13:51:02.524Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:51:21.495Z"}
{"ip":"::ffff:172.18.0.1","level":"error","message":"Error: null value in column \"row_id\" of relation \"user_cell_values\" violates not-null constraint","method":"POST","stack":"error: null value in column \"row_id\" of relation \"user_cell_values\" violates not-null constraint\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 /app/routes/tables.js:98:20","timestamp":"2025-06-01T13:51:50.270Z","url":"/api/tables/cell","userId":1}
{"level":"error","message":"IMAP connection error during check: write after end","timestamp":"2025-06-01T13:52:45.247Z"}
{"level":"error","message":"IMAP connection error during check: write after end","timestamp":"2025-06-01T13:52:45.248Z"}
{"level":"error","message":"IMAP connection error during check: write after end","timestamp":"2025-06-01T13:52:45.249Z"}
{"level":"error","message":"IMAP connection error during check: write after end","timestamp":"2025-06-01T13:52:45.249Z"}
{"level":"error","message":"IMAP connection error during check: write after end","timestamp":"2025-06-01T13:52:45.250Z"}
{"level":"error","message":"Uncaught Exception: Timed out while connecting to server","source":"timeout","stack":"Error: Timed out while connecting to server\n at Timeout._onTimeout (/app/node_modules/imap/lib/Connection.js:280:15)\n at listOnTimeout (node:internal/timers:581:17)\n at process.processTimers (node:internal/timers:519:7)","timestamp":"2025-06-01T13:52:54.606Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:53:44.904Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:53:44.905Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:53:44.905Z"}
{"code":"EPIPE","level":"error","message":"Uncaught Exception: This socket has been ended by the other party","source":"socket","stack":"Error: This socket has been ended by the other party\n at genericNodeError (node:internal/errors:984:15)\n at wrappedFn (node:internal/errors:538:14)\n at Socket.writeAfterFIN [as write] (node:net:566:14)\n at JSStreamSocket.doWrite (node:internal/js_stream_socket:199:19)\n at JSStream.onwrite (node:internal/js_stream_socket:35:57)\n at Socket._final (node:net:537:28)\n at prefinish (node:internal/streams/writable:916:14)\n at finishMaybe (node:internal/streams/writable:930:5)\n at Writable.end (node:internal/streams/writable:845:5)\n at Socket.end (node:net:728:31)","timestamp":"2025-06-01T13:53:45.796Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:54:05.329Z"}
{"level":"error","message":"IMAP connection error during check: write after end","timestamp":"2025-06-01T13:54:34.464Z"}
{"level":"error","message":"IMAP connection error during check: write after end","timestamp":"2025-06-01T13:54:34.465Z"}
{"level":"error","message":"Uncaught Exception: Timed out while authenticating with server","source":"timeout-auth","stack":"Error: Timed out while authenticating with server\n at Timeout._onTimeout (/app/node_modules/imap/lib/Connection.js:139:17)\n at listOnTimeout (node:internal/timers:581:17)\n at process.processTimers (node:internal/timers:519:7)","timestamp":"2025-06-01T13:54:39.847Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:55:33.932Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:55:33.933Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:55:33.933Z"}
{"code":"EPIPE","level":"error","message":"Uncaught Exception: This socket has been ended by the other party","source":"socket","stack":"Error: This socket has been ended by the other party\n at genericNodeError (node:internal/errors:984:15)\n at wrappedFn (node:internal/errors:538:14)\n at Socket.writeAfterFIN [as write] (node:net:566:14)\n at JSStreamSocket.doWrite (node:internal/js_stream_socket:199:19)\n at JSStream.onwrite (node:internal/js_stream_socket:35:57)\n at Socket._final (node:net:537:28)\n at prefinish (node:internal/streams/writable:916:14)\n at finishMaybe (node:internal/streams/writable:930:5)\n at Writable.end (node:internal/streams/writable:845:5)\n at Socket.end (node:net:728:31)","timestamp":"2025-06-01T13:55:35.269Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:56:28.573Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:56:28.574Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:56:28.574Z"}
{"level":"error","message":"Uncaught Exception: Timed out while connecting to server","source":"timeout","stack":"Error: Timed out while connecting to server\n at Timeout._onTimeout (/app/node_modules/imap/lib/Connection.js:280:15)\n at listOnTimeout (node:internal/timers:581:17)\n at process.processTimers (node:internal/timers:519:7)","timestamp":"2025-06-01T13:56:33.108Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:56:49.071Z"}
{"level":"error","message":"IMAP connection error during check: write after end","timestamp":"2025-06-01T13:57:18.235Z"}
{"level":"error","message":"IMAP connection error during check: write after end","timestamp":"2025-06-01T13:57:18.235Z"}
{"level":"error","message":"Uncaught Exception: Timed out while authenticating with server","source":"timeout-auth","stack":"Error: Timed out while authenticating with server\n at Timeout._onTimeout (/app/node_modules/imap/lib/Connection.js:139:17)\n at listOnTimeout (node:internal/timers:581:17)\n at process.processTimers (node:internal/timers:519:7)","timestamp":"2025-06-01T13:57:22.920Z"}
{"code":"EPIPE","level":"error","message":"Uncaught Exception: This socket has been ended by the other party","source":"socket","stack":"Error: This socket has been ended by the other party\n at genericNodeError (node:internal/errors:984:15)\n at wrappedFn (node:internal/errors:538:14)\n at Socket.writeAfterFIN [as write] (node:net:566:14)\n at JSStreamSocket.doWrite (node:internal/js_stream_socket:199:19)\n at JSStream.onwrite (node:internal/js_stream_socket:35:57)\n at Socket._final (node:net:537:28)\n at prefinish (node:internal/streams/writable:916:14)\n at finishMaybe (node:internal/streams/writable:930:5)\n at Writable.end (node:internal/streams/writable:845:5)\n at Socket.end (node:net:728:31)","timestamp":"2025-06-01T13:57:24.248Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:57:43.441Z"}
{"level":"error","message":"IMAP connection error during check: This socket has been ended by the other party","timestamp":"2025-06-01T13:58:18.318Z"}
{"level":"error","message":"IMAP connection error during check: This socket has been ended by the other party","timestamp":"2025-06-01T13:58:18.318Z"}
{"level":"error","message":"IMAP connection error during check: write after end","timestamp":"2025-06-01T13:59:07.369Z"}
{"level":"error","message":"IMAP connection error during check: write after end","timestamp":"2025-06-01T13:59:07.370Z"}
{"level":"error","message":"IMAP connection error during check: write after end","timestamp":"2025-06-01T13:59:07.370Z"}
{"level":"error","message":"Uncaught Exception: Timed out while connecting to server","source":"timeout","stack":"Error: Timed out while connecting to server\n at Timeout._onTimeout (/app/node_modules/imap/lib/Connection.js:280:15)\n at listOnTimeout (node:internal/timers:581:17)\n at process.processTimers (node:internal/timers:519:7)","timestamp":"2025-06-01T13:59:16.600Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T13:59:32.648Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:00:06.570Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:00:06.570Z"}
{"code":"EPIPE","level":"error","message":"Uncaught Exception: This socket has been ended by the other party","source":"socket","stack":"Error: This socket has been ended by the other party\n at genericNodeError (node:internal/errors:984:15)\n at wrappedFn (node:internal/errors:538:14)\n at Socket.writeAfterFIN [as write] (node:net:566:14)\n at JSStreamSocket.doWrite (node:internal/js_stream_socket:199:19)\n at JSStream.onwrite (node:internal/js_stream_socket:35:57)\n at Socket._final (node:net:537:28)\n at prefinish (node:internal/streams/writable:916:14)\n at finishMaybe (node:internal/streams/writable:930:5)\n at Writable.end (node:internal/streams/writable:845:5)\n at Socket.end (node:net:728:31)","timestamp":"2025-06-01T14:00:07.403Z"}
{"level":"error","message":"Uncaught Exception: Timed out while connecting to server","source":"timeout","stack":"Error: Timed out while connecting to server\n at Timeout._onTimeout (/app/node_modules/imap/lib/Connection.js:280:15)\n at listOnTimeout (node:internal/timers:581:17)\n at process.processTimers (node:internal/timers:519:7)","timestamp":"2025-06-01T14:00:11.062Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:01:01.053Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:01:01.054Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:01:01.054Z"}
{"code":"EPIPE","level":"error","message":"Uncaught Exception: This socket has been ended by the other party","source":"socket","stack":"Error: This socket has been ended by the other party\n at genericNodeError (node:internal/errors:984:15)\n at wrappedFn (node:internal/errors:538:14)\n at Socket.writeAfterFIN [as write] (node:net:566:14)\n at JSStreamSocket.doWrite (node:internal/js_stream_socket:199:19)\n at JSStream.onwrite (node:internal/js_stream_socket:35:57)\n at Socket._final (node:net:537:28)\n at prefinish (node:internal/streams/writable:916:14)\n at finishMaybe (node:internal/streams/writable:930:5)\n at Writable.end (node:internal/streams/writable:845:5)\n at Socket.end (node:net:728:31)","timestamp":"2025-06-01T14:01:02.304Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:01:55.533Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:01:55.534Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:01:55.534Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:02:16.043Z"}
{"level":"error","message":"IMAP connection error during check: write after end","timestamp":"2025-06-01T14:02:45.737Z"}
{"level":"error","message":"IMAP connection error during check: write after end","timestamp":"2025-06-01T14:02:45.738Z"}
{"level":"error","message":"Uncaught Exception: Timed out while authenticating with server","source":"timeout-auth","stack":"Error: Timed out while authenticating with server\n at Timeout._onTimeout (/app/node_modules/imap/lib/Connection.js:139:17)\n at listOnTimeout (node:internal/timers:581:17)\n at process.processTimers (node:internal/timers:519:7)","timestamp":"2025-06-01T14:02:54.330Z"}
{"level":"error","message":"Uncaught Exception: Timed out while connecting to server","source":"timeout","stack":"Error: Timed out while connecting to server\n at Timeout._onTimeout (/app/node_modules/imap/lib/Connection.js:280:15)\n at listOnTimeout (node:internal/timers:581:17)\n at process.processTimers (node:internal/timers:519:7)","timestamp":"2025-06-01T14:02:54.962Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:03:44.962Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:03:44.963Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:03:44.963Z"}
{"level":"error","message":"Uncaught Exception: Timed out while connecting to server","source":"timeout","stack":"Error: Timed out while connecting to server\n at Timeout._onTimeout (/app/node_modules/imap/lib/Connection.js:280:15)\n at listOnTimeout (node:internal/timers:581:17)\n at process.processTimers (node:internal/timers:519:7)","timestamp":"2025-06-01T14:03:49.493Z"}
{"code":"EPIPE","level":"error","message":"Uncaught Exception: This socket has been ended by the other party","source":"socket","stack":"Error: This socket has been ended by the other party\n at genericNodeError (node:internal/errors:984:15)\n at wrappedFn (node:internal/errors:538:14)\n at Socket.writeAfterFIN [as write] (node:net:566:14)\n at JSStreamSocket.doWrite (node:internal/js_stream_socket:199:19)\n at JSStream.onwrite (node:internal/js_stream_socket:35:57)\n at Socket._final (node:net:537:28)\n at prefinish (node:internal/streams/writable:916:14)\n at finishMaybe (node:internal/streams/writable:930:5)\n at Writable.end (node:internal/streams/writable:845:5)\n at Socket.end (node:net:728:31)","timestamp":"2025-06-01T14:03:49.772Z"}
{"ip":"::ffff:172.18.0.1","level":"error","message":"Error: column \"updated_at\" of relation \"user_columns\" does not exist","method":"PATCH","stack":"error: column \"updated_at\" of relation \"user_columns\" does not exist\n at /app/node_modules/pg-pool/index.js:45:11\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/routes/tables.js:168:20","timestamp":"2025-06-01T14:04:32.473Z","url":"/api/tables/column/4","userId":1}
{"ip":"::ffff:172.18.0.1","level":"error","message":"Error: column \"updated_at\" of relation \"user_columns\" does not exist","method":"PATCH","stack":"error: column \"updated_at\" of relation \"user_columns\" does not exist\n at /app/node_modules/pg-pool/index.js:45:11\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/routes/tables.js:168:20","timestamp":"2025-06-01T14:04:32.566Z","url":"/api/tables/column/4","userId":1}
{"level":"error","message":"IMAP connection error during check: write after end","timestamp":"2025-06-01T14:04:34.517Z"}
{"level":"error","message":"IMAP connection error during check: write after end","timestamp":"2025-06-01T14:04:34.518Z"}
{"level":"error","message":"IMAP connection error during check: write after end","timestamp":"2025-06-01T14:04:34.519Z"}
{"level":"error","message":"Uncaught Exception: Timed out while authenticating with server","source":"timeout-auth","stack":"Error: Timed out while authenticating with server\n at Timeout._onTimeout (/app/node_modules/imap/lib/Connection.js:139:17)\n at listOnTimeout (node:internal/timers:581:17)\n at process.processTimers (node:internal/timers:519:7)","timestamp":"2025-06-01T14:04:40.137Z"}
{"code":"EPIPE","level":"error","message":"Uncaught Exception: This socket has been ended by the other party","source":"socket","stack":"Error: This socket has been ended by the other party\n at genericNodeError (node:internal/errors:984:15)\n at wrappedFn (node:internal/errors:538:14)\n at Socket.writeAfterFIN [as write] (node:net:566:14)\n at JSStreamSocket.doWrite (node:internal/js_stream_socket:199:19)\n at JSStream.onwrite (node:internal/js_stream_socket:35:57)\n at Socket._final (node:net:537:28)\n at prefinish (node:internal/streams/writable:916:14)\n at finishMaybe (node:internal/streams/writable:930:5)\n at Writable.end (node:internal/streams/writable:845:5)\n at Socket.end (node:net:728:31)","timestamp":"2025-06-01T14:04:40.873Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:05:34.012Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:05:34.013Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:05:34.013Z"}
{"code":"EPIPE","level":"error","message":"Uncaught Exception: This socket has been ended by the other party","source":"socket","stack":"Error: This socket has been ended by the other party\n at genericNodeError (node:internal/errors:984:15)\n at wrappedFn (node:internal/errors:538:14)\n at Socket.writeAfterFIN [as write] (node:net:566:14)\n at JSStreamSocket.doWrite (node:internal/js_stream_socket:199:19)\n at JSStream.onwrite (node:internal/js_stream_socket:35:57)\n at Socket._final (node:net:537:28)\n at prefinish (node:internal/streams/writable:916:14)\n at finishMaybe (node:internal/streams/writable:930:5)\n at Writable.end (node:internal/streams/writable:845:5)\n at Socket.end (node:net:728:31)","timestamp":"2025-06-01T14:05:35.550Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:05:54.263Z"}
{"level":"error","message":"IMAP connection error during check: write after end","timestamp":"2025-06-01T14:06:23.536Z"}
{"level":"error","message":"IMAP connection error during check: write after end","timestamp":"2025-06-01T14:06:23.537Z"}
{"level":"error","message":"Uncaught Exception: Timed out while authenticating with server","source":"timeout-auth","stack":"Error: Timed out while authenticating with server\n at Timeout._onTimeout (/app/node_modules/imap/lib/Connection.js:139:17)\n at listOnTimeout (node:internal/timers:581:17)\n at process.processTimers (node:internal/timers:519:7)","timestamp":"2025-06-01T14:06:29.153Z"}
{"ip":"::ffff:172.18.0.1","level":"error","message":"Error: column \"updated_at\" of relation \"user_columns\" does not exist","method":"PATCH","stack":"error: column \"updated_at\" of relation \"user_columns\" does not exist\n at /app/node_modules/pg-pool/index.js:45:11\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/routes/tables.js:168:20","timestamp":"2025-06-01T14:06:34.510Z","url":"/api/tables/column/4","userId":1}
{"ip":"::ffff:172.18.0.1","level":"error","message":"Error: column \"updated_at\" of relation \"user_columns\" does not exist","method":"PATCH","stack":"error: column \"updated_at\" of relation \"user_columns\" does not exist\n at /app/node_modules/pg-pool/index.js:45:11\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/routes/tables.js:168:20","timestamp":"2025-06-01T14:06:34.533Z","url":"/api/tables/column/4","userId":1}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:07:22.950Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:07:22.950Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:07:22.951Z"}
{"code":"EPIPE","level":"error","message":"Uncaught Exception: This socket has been ended by the other party","source":"socket","stack":"Error: This socket has been ended by the other party\n at genericNodeError (node:internal/errors:984:15)\n at wrappedFn (node:internal/errors:538:14)\n at Socket.writeAfterFIN [as write] (node:net:566:14)\n at JSStreamSocket.doWrite (node:internal/js_stream_socket:199:19)\n at JSStream.onwrite (node:internal/js_stream_socket:35:57)\n at Socket._final (node:net:537:28)\n at prefinish (node:internal/streams/writable:916:14)\n at finishMaybe (node:internal/streams/writable:930:5)\n at Writable.end (node:internal/streams/writable:845:5)\n at Socket.end (node:net:728:31)","timestamp":"2025-06-01T14:07:24.722Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:08:17.572Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:08:17.572Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:08:17.572Z"}
{"level":"error","message":"Uncaught Exception: Timed out while connecting to server","source":"timeout","stack":"Error: Timed out while connecting to server\n at Timeout._onTimeout (/app/node_modules/imap/lib/Connection.js:280:15)\n at listOnTimeout (node:internal/timers:581:17)\n at process.processTimers (node:internal/timers:519:7)","timestamp":"2025-06-01T14:08:22.108Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:08:38.006Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:09:12.007Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:09:12.007Z"}
{"code":"EPIPE","level":"error","message":"Uncaught Exception: This socket has been ended by the other party","source":"socket","stack":"Error: This socket has been ended by the other party\n at genericNodeError (node:internal/errors:984:15)\n at wrappedFn (node:internal/errors:538:14)\n at Socket.writeAfterFIN [as write] (node:net:566:14)\n at JSStreamSocket.doWrite (node:internal/js_stream_socket:199:19)\n at JSStream.onwrite (node:internal/js_stream_socket:35:57)\n at Socket._final (node:net:537:28)\n at prefinish (node:internal/streams/writable:916:14)\n at finishMaybe (node:internal/streams/writable:930:5)\n at Writable.end (node:internal/streams/writable:845:5)\n at Socket.end (node:net:728:31)","timestamp":"2025-06-01T14:09:13.141Z"}
{"level":"error","message":"Uncaught Exception: Timed out while connecting to server","source":"timeout","stack":"Error: Timed out while connecting to server\n at Timeout._onTimeout (/app/node_modules/imap/lib/Connection.js:280:15)\n at listOnTimeout (node:internal/timers:581:17)\n at process.processTimers (node:internal/timers:519:7)","timestamp":"2025-06-01T14:09:16.601Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:10:06.492Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:10:06.493Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:10:06.493Z"}
{"code":"EPIPE","level":"error","message":"Uncaught Exception: This socket has been ended by the other party","source":"socket","stack":"Error: This socket has been ended by the other party\n at genericNodeError (node:internal/errors:984:15)\n at wrappedFn (node:internal/errors:538:14)\n at Socket.writeAfterFIN [as write] (node:net:566:14)\n at JSStreamSocket.doWrite (node:internal/js_stream_socket:199:19)\n at JSStream.onwrite (node:internal/js_stream_socket:35:57)\n at Socket._final (node:net:537:28)\n at prefinish (node:internal/streams/writable:916:14)\n at finishMaybe (node:internal/streams/writable:930:5)\n at Writable.end (node:internal/streams/writable:845:5)\n at Socket.end (node:net:728:31)","timestamp":"2025-06-01T14:10:07.723Z"}
{"level":"error","message":"Uncaught Exception: Timed out while connecting to server","source":"timeout","stack":"Error: Timed out while connecting to server\n at Timeout._onTimeout (/app/node_modules/imap/lib/Connection.js:280:15)\n at listOnTimeout (node:internal/timers:581:17)\n at process.processTimers (node:internal/timers:519:7)","timestamp":"2025-06-01T14:10:11.079Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:10:26.925Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:11:00.881Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:11:00.882Z"}
{"code":"EPIPE","level":"error","message":"Uncaught Exception: This socket has been ended by the other party","source":"socket","stack":"Error: This socket has been ended by the other party\n at genericNodeError (node:internal/errors:984:15)\n at wrappedFn (node:internal/errors:538:14)\n at Socket.writeAfterFIN [as write] (node:net:566:14)\n at JSStreamSocket.doWrite (node:internal/js_stream_socket:199:19)\n at JSStream.onwrite (node:internal/js_stream_socket:35:57)\n at Socket._final (node:net:537:28)\n at prefinish (node:internal/streams/writable:916:14)\n at finishMaybe (node:internal/streams/writable:930:5)\n at Writable.end (node:internal/streams/writable:845:5)\n at Socket.end (node:net:728:31)","timestamp":"2025-06-01T14:11:02.214Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:11:56.561Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:11:56.563Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:11:56.564Z"}
{"level":"error","message":"Uncaught Exception: Timed out while connecting to server","source":"timeout","stack":"Error: Timed out while connecting to server\n at Timeout._onTimeout (/app/node_modules/imap/lib/Connection.js:280:15)\n at listOnTimeout (node:internal/timers:581:17)\n at process.processTimers (node:internal/timers:519:7)","timestamp":"2025-06-01T14:12:00.478Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:12:50.560Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:12:50.560Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:12:50.561Z"}
{"level":"error","message":"Uncaught Exception: Timed out while connecting to server","source":"timeout","stack":"Error: Timed out while connecting to server\n at Timeout._onTimeout (/app/node_modules/imap/lib/Connection.js:280:15)\n at listOnTimeout (node:internal/timers:581:17)\n at process.processTimers (node:internal/timers:519:7)","timestamp":"2025-06-01T14:12:55.023Z"}
{"code":"EPIPE","level":"error","message":"Uncaught Exception: This socket has been ended by the other party","source":"socket","stack":"Error: This socket has been ended by the other party\n at genericNodeError (node:internal/errors:984:15)\n at wrappedFn (node:internal/errors:538:14)\n at Socket.writeAfterFIN [as write] (node:net:566:14)\n at JSStreamSocket.doWrite (node:internal/js_stream_socket:199:19)\n at JSStream.onwrite (node:internal/js_stream_socket:35:57)\n at Socket._final (node:net:537:28)\n at prefinish (node:internal/streams/writable:916:14)\n at finishMaybe (node:internal/streams/writable:930:5)\n at Writable.end (node:internal/streams/writable:845:5)\n at Socket.end (node:net:728:31)","timestamp":"2025-06-01T14:12:55.680Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:13:10.680Z"}
{"ip":"::ffff:172.18.0.1","level":"error","message":"Error: column \"updated_at\" of relation \"user_columns\" does not exist","method":"PATCH","stack":"error: column \"updated_at\" of relation \"user_columns\" does not exist\n at /app/node_modules/pg-pool/index.js:45:11\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/routes/tables.js:168:20","timestamp":"2025-06-01T14:13:38.721Z","url":"/api/tables/column/4","userId":1}
{"ip":"::ffff:172.18.0.1","level":"error","message":"Error: column \"updated_at\" of relation \"user_columns\" does not exist","method":"PATCH","stack":"error: column \"updated_at\" of relation \"user_columns\" does not exist\n at /app/node_modules/pg-pool/index.js:45:11\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/routes/tables.js:168:20","timestamp":"2025-06-01T14:13:38.765Z","url":"/api/tables/column/4","userId":1}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:13:45.094Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:13:45.095Z"}
{"code":"EPIPE","level":"error","message":"Uncaught Exception: This socket has been ended by the other party","source":"socket","stack":"Error: This socket has been ended by the other party\n at genericNodeError (node:internal/errors:984:15)\n at wrappedFn (node:internal/errors:538:14)\n at Socket.writeAfterFIN [as write] (node:net:566:14)\n at JSStreamSocket.doWrite (node:internal/js_stream_socket:199:19)\n at JSStream.onwrite (node:internal/js_stream_socket:35:57)\n at Socket._final (node:net:537:28)\n at prefinish (node:internal/streams/writable:916:14)\n at finishMaybe (node:internal/streams/writable:930:5)\n at Writable.end (node:internal/streams/writable:845:5)\n at Socket.end (node:net:728:31)","timestamp":"2025-06-01T14:13:46.280Z"}
{"level":"error","message":"Uncaught Exception: Timed out while connecting to server","source":"timeout","stack":"Error: Timed out while connecting to server\n at Timeout._onTimeout (/app/node_modules/imap/lib/Connection.js:280:15)\n at listOnTimeout (node:internal/timers:581:17)\n at process.processTimers (node:internal/timers:519:7)","timestamp":"2025-06-01T14:13:49.544Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:14:39.614Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:14:39.615Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:14:39.615Z"}
{"level":"error","message":"Uncaught Exception: Timed out while connecting to server","source":"timeout","stack":"Error: Timed out while connecting to server\n at Timeout._onTimeout (/app/node_modules/imap/lib/Connection.js:280:15)\n at listOnTimeout (node:internal/timers:581:17)\n at process.processTimers (node:internal/timers:519:7)","timestamp":"2025-06-01T14:14:44.117Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:15:34.134Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:15:34.135Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:15:34.135Z"}
{"level":"error","message":"Uncaught Exception: Timed out while connecting to server","source":"timeout","stack":"Error: Timed out while connecting to server\n at Timeout._onTimeout (/app/node_modules/imap/lib/Connection.js:280:15)\n at listOnTimeout (node:internal/timers:581:17)\n at process.processTimers (node:internal/timers:519:7)","timestamp":"2025-06-01T14:15:38.607Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:16:29.150Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:16:29.150Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:16:29.151Z"}
{"code":"EPIPE","level":"error","message":"Uncaught Exception: This socket has been ended by the other party","source":"socket","stack":"Error: This socket has been ended by the other party\n at genericNodeError (node:internal/errors:984:15)\n at wrappedFn (node:internal/errors:538:14)\n at Socket.writeAfterFIN [as write] (node:net:566:14)\n at JSStreamSocket.doWrite (node:internal/js_stream_socket:199:19)\n at JSStream.onwrite (node:internal/js_stream_socket:35:57)\n at Socket._final (node:net:537:28)\n at prefinish (node:internal/streams/writable:916:14)\n at finishMaybe (node:internal/streams/writable:930:5)\n at Writable.end (node:internal/streams/writable:845:5)\n at Socket.end (node:net:728:31)","timestamp":"2025-06-01T14:16:30.684Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:16:49.883Z"}
{"ip":"::ffff:172.18.0.1","level":"error","message":"Error: relation \"user_columns\" does not exist","method":"GET","stack":"error: relation \"user_columns\" does not exist\n at /app/node_modules/pg-pool/index.js:45:11\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/routes/tables.js:41:22","timestamp":"2025-06-01T14:16:51.620Z","url":"/api/tables/5","userId":1}
{"ip":"::ffff:172.18.0.1","level":"error","message":"Error: relation \"user_columns\" does not exist","method":"GET","stack":"error: relation \"user_columns\" does not exist\n at /app/node_modules/pg-pool/index.js:45:11\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/routes/tables.js:41:22","timestamp":"2025-06-01T14:16:58.294Z","url":"/api/tables/6","userId":1}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:17:23.182Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:17:23.183Z"}
{"level":"error","message":"Uncaught Exception: Timed out while connecting to server","source":"timeout","stack":"Error: Timed out while connecting to server\n at Timeout._onTimeout (/app/node_modules/imap/lib/Connection.js:280:15)\n at listOnTimeout (node:internal/timers:581:17)\n at process.processTimers (node:internal/timers:519:7)","timestamp":"2025-06-01T14:17:27.611Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:18:17.543Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:18:17.544Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:18:17.544Z"}
{"code":"EPIPE","level":"error","message":"Uncaught Exception: This socket has been ended by the other party","source":"socket","stack":"Error: This socket has been ended by the other party\n at genericNodeError (node:internal/errors:984:15)\n at wrappedFn (node:internal/errors:538:14)\n at Socket.writeAfterFIN [as write] (node:net:566:14)\n at JSStreamSocket.doWrite (node:internal/js_stream_socket:199:19)\n at JSStream.onwrite (node:internal/js_stream_socket:35:57)\n at Socket._final (node:net:537:28)\n at prefinish (node:internal/streams/writable:916:14)\n at finishMaybe (node:internal/streams/writable:930:5)\n at Writable.end (node:internal/streams/writable:845:5)\n at Socket.end (node:net:728:31)","timestamp":"2025-06-01T14:18:18.767Z"}
{"level":"error","message":"Uncaught Exception: Timed out while connecting to server","source":"timeout","stack":"Error: Timed out while connecting to server\n at Timeout._onTimeout (/app/node_modules/imap/lib/Connection.js:280:15)\n at listOnTimeout (node:internal/timers:581:17)\n at process.processTimers (node:internal/timers:519:7)","timestamp":"2025-06-01T14:18:22.099Z"}
{"ip":"::ffff:172.18.0.1","level":"error","message":"Error: relation \"user_columns\" does not exist","method":"GET","stack":"error: relation \"user_columns\" does not exist\n at /app/node_modules/pg-pool/index.js:45:11\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/routes/tables.js:41:22","timestamp":"2025-06-01T14:18:32.090Z","url":"/api/tables/5","userId":1}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:19:12.901Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:19:12.902Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:19:12.902Z"}
{"level":"error","message":"Uncaught Exception: Timed out while connecting to server","source":"timeout","stack":"Error: Timed out while connecting to server\n at Timeout._onTimeout (/app/node_modules/imap/lib/Connection.js:280:15)\n at listOnTimeout (node:internal/timers:581:17)\n at process.processTimers (node:internal/timers:519:7)","timestamp":"2025-06-01T14:19:16.584Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:19:32.492Z"}
{"ip":"::ffff:172.18.0.1","level":"error","message":"Error: relation \"user_columns\" does not exist","method":"GET","stack":"error: relation \"user_columns\" does not exist\n at /app/node_modules/pg-pool/index.js:45:11\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/routes/tables.js:41:22","timestamp":"2025-06-01T14:20:00.513Z","url":"/api/tables/6","userId":1}
{"ip":"::ffff:172.18.0.1","level":"error","message":"Error: relation \"user_columns\" does not exist","method":"GET","stack":"error: relation \"user_columns\" does not exist\n at /app/node_modules/pg-pool/index.js:45:11\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/routes/tables.js:41:22","timestamp":"2025-06-01T14:20:04.400Z","url":"/api/tables/5","userId":1}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:20:06.485Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:20:06.486Z"}
{"level":"error","message":"Uncaught Exception: Timed out while connecting to server","source":"timeout","stack":"Error: Timed out while connecting to server\n at Timeout._onTimeout (/app/node_modules/imap/lib/Connection.js:280:15)\n at listOnTimeout (node:internal/timers:581:17)\n at process.processTimers (node:internal/timers:519:7)","timestamp":"2025-06-01T14:20:11.102Z"}
{"code":"EPIPE","level":"error","message":"Uncaught Exception: This socket has been ended by the other party","source":"socket","stack":"Error: This socket has been ended by the other party\n at genericNodeError (node:internal/errors:984:15)\n at wrappedFn (node:internal/errors:538:14)\n at Socket.writeAfterFIN [as write] (node:net:566:14)\n at JSStreamSocket.doWrite (node:internal/js_stream_socket:199:19)\n at JSStream.onwrite (node:internal/js_stream_socket:35:57)\n at Socket._final (node:net:537:28)\n at prefinish (node:internal/streams/writable:916:14)\n at finishMaybe (node:internal/streams/writable:930:5)\n at Writable.end (node:internal/streams/writable:845:5)\n at Socket.end (node:net:728:31)","timestamp":"2025-06-01T14:20:11.804Z"}
{"ip":"::ffff:172.18.0.1","level":"error","message":"Error: relation \"user_columns\" does not exist","method":"GET","stack":"error: relation \"user_columns\" does not exist\n at /app/node_modules/pg-pool/index.js:45:11\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /app/routes/tables.js:41:22","timestamp":"2025-06-01T14:20:15.672Z","url":"/api/tables/5","userId":1}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:20:27.055Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:21:01.439Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:21:01.440Z"}
{"code":"EPIPE","level":"error","message":"Uncaught Exception: This socket has been ended by the other party","source":"socket","stack":"Error: This socket has been ended by the other party\n at genericNodeError (node:internal/errors:984:15)\n at wrappedFn (node:internal/errors:538:14)\n at Socket.writeAfterFIN [as write] (node:net:566:14)\n at JSStreamSocket.doWrite (node:internal/js_stream_socket:199:19)\n at JSStream.onwrite (node:internal/js_stream_socket:35:57)\n at Socket._final (node:net:537:28)\n at prefinish (node:internal/streams/writable:916:14)\n at finishMaybe (node:internal/streams/writable:930:5)\n at Writable.end (node:internal/streams/writable:845:5)\n at Socket.end (node:net:728:31)","timestamp":"2025-06-01T14:21:02.675Z"}
{"level":"error","message":"Uncaught Exception: Timed out while connecting to server","source":"timeout","stack":"Error: Timed out while connecting to server\n at Timeout._onTimeout (/app/node_modules/imap/lib/Connection.js:280:15)\n at listOnTimeout (node:internal/timers:581:17)\n at process.processTimers (node:internal/timers:519:7)","timestamp":"2025-06-01T14:21:05.997Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:21:55.972Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:21:55.973Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:21:55.973Z"}
{"level":"error","message":"Uncaught Exception: Timed out while connecting to server","source":"timeout","stack":"Error: Timed out while connecting to server\n at Timeout._onTimeout (/app/node_modules/imap/lib/Connection.js:280:15)\n at listOnTimeout (node:internal/timers:581:17)\n at process.processTimers (node:internal/timers:519:7)","timestamp":"2025-06-01T14:22:00.452Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:22:50.614Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:22:50.615Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:22:50.615Z"}
{"code":"EPIPE","level":"error","message":"Uncaught Exception: This socket has been ended by the other party","source":"socket","stack":"Error: This socket has been ended by the other party\n at genericNodeError (node:internal/errors:984:15)\n at wrappedFn (node:internal/errors:538:14)\n at Socket.writeAfterFIN [as write] (node:net:566:14)\n at JSStreamSocket.doWrite (node:internal/js_stream_socket:199:19)\n at JSStream.onwrite (node:internal/js_stream_socket:35:57)\n at Socket._final (node:net:537:28)\n at prefinish (node:internal/streams/writable:916:14)\n at finishMaybe (node:internal/streams/writable:930:5)\n at Writable.end (node:internal/streams/writable:845:5)\n at Socket.end (node:net:728:31)","timestamp":"2025-06-01T14:22:51.727Z"}
{"level":"error","message":"Uncaught Exception: Timed out while connecting to server","source":"timeout","stack":"Error: Timed out while connecting to server\n at Timeout._onTimeout (/app/node_modules/imap/lib/Connection.js:280:15)\n at listOnTimeout (node:internal/timers:581:17)\n at process.processTimers (node:internal/timers:519:7)","timestamp":"2025-06-01T14:22:55.083Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:23:45.075Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:23:45.076Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:23:45.076Z"}
{"code":"EPIPE","level":"error","message":"Uncaught Exception: This socket has been ended by the other party","source":"socket","stack":"Error: This socket has been ended by the other party\n at genericNodeError (node:internal/errors:984:15)\n at wrappedFn (node:internal/errors:538:14)\n at Socket.writeAfterFIN [as write] (node:net:566:14)\n at JSStreamSocket.doWrite (node:internal/js_stream_socket:199:19)\n at JSStream.onwrite (node:internal/js_stream_socket:35:57)\n at Socket._final (node:net:537:28)\n at prefinish (node:internal/streams/writable:916:14)\n at finishMaybe (node:internal/streams/writable:930:5)\n at Writable.end (node:internal/streams/writable:845:5)\n at Socket.end (node:net:728:31)","timestamp":"2025-06-01T14:23:46.369Z"}
{"level":"error","message":"Uncaught Exception: Timed out while connecting to server","source":"timeout","stack":"Error: Timed out while connecting to server\n at Timeout._onTimeout (/app/node_modules/imap/lib/Connection.js:280:15)\n at listOnTimeout (node:internal/timers:581:17)\n at process.processTimers (node:internal/timers:519:7)","timestamp":"2025-06-01T14:23:49.616Z"}
{"code":"42P01","file":"namespace.c","length":110,"level":"error","line":"434","message":"Error executing migration 028_create_dynamic_tables.sql: relation \"user_columns\" does not exist","name":"error","routine":"RangeVarGetRelidExtended","severity":"ERROR","stack":"error: relation \"user_columns\" does not exist\n at /app/node_modules/pg-pool/index.js:45:11\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async runMigrations (/app/scripts/run-migrations.js:77:11)","timestamp":"2025-06-01T14:24:37.212Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:24:39.543Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:24:39.544Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:24:39.545Z"}
{"code":"EPIPE","level":"error","message":"Uncaught Exception: This socket has been ended by the other party","source":"socket","stack":"Error: This socket has been ended by the other party\n at genericNodeError (node:internal/errors:984:15)\n at wrappedFn (node:internal/errors:538:14)\n at Socket.writeAfterFIN [as write] (node:net:566:14)\n at JSStreamSocket.doWrite (node:internal/js_stream_socket:199:19)\n at JSStream.onwrite (node:internal/js_stream_socket:35:57)\n at Socket._final (node:net:537:28)\n at prefinish (node:internal/streams/writable:916:14)\n at finishMaybe (node:internal/streams/writable:930:5)\n at Writable.end (node:internal/streams/writable:845:5)\n at Socket.end (node:net:728:31)","timestamp":"2025-06-01T14:24:40.703Z"}
{"level":"error","message":"Uncaught Exception: Timed out while connecting to server","source":"timeout","stack":"Error: Timed out while connecting to server\n at Timeout._onTimeout (/app/node_modules/imap/lib/Connection.js:280:15)\n at listOnTimeout (node:internal/timers:581:17)\n at process.processTimers (node:internal/timers:519:7)","timestamp":"2025-06-01T14:24:44.101Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:25:34.214Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:25:34.214Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:25:34.214Z"}
{"level":"error","message":"Uncaught Exception: Timed out while connecting to server","source":"timeout","stack":"Error: Timed out while connecting to server\n at Timeout._onTimeout (/app/node_modules/imap/lib/Connection.js:280:15)\n at listOnTimeout (node:internal/timers:581:17)\n at process.processTimers (node:internal/timers:519:7)","timestamp":"2025-06-01T14:25:38.580Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:26:28.660Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:26:28.660Z"}
{"level":"error","message":"IMAP connection error during check: Timed out while authenticating with server","timestamp":"2025-06-01T14:26:28.661Z"}
{"code":"EPIPE","level":"error","message":"Uncaught Exception: This socket has been ended by the other party","source":"socket","stack":"Error: This socket has been ended by the other party\n at genericNodeError (node:internal/errors:984:15)\n at wrappedFn (node:internal/errors:538:14)\n at Socket.writeAfterFIN [as write] (node:net:566:14)\n at JSStreamSocket.doWrite (node:internal/js_stream_socket:199:19)\n at JSStream.onwrite (node:internal/js_stream_socket:35:57)\n at Socket._final (node:net:537:28)\n at prefinish (node:internal/streams/writable:916:14)\n at finishMaybe (node:internal/streams/writable:930:5)\n at Writable.end (node:internal/streams/writable:845:5)\n at Socket.end (node:net:728:31)","timestamp":"2025-06-01T14:26:29.827Z"}
{"level":"error","message":"Uncaught Exception: Timed out while connecting to server","source":"timeout","stack":"Error: Timed out while connecting to server\n at Timeout._onTimeout (/app/node_modules/imap/lib/Connection.js:280:15)\n at listOnTimeout (node:internal/timers:581:17)\n at process.processTimers (node:internal/timers:519:7)","timestamp":"2025-06-01T14:26:33.094Z"}

View File

@@ -1,3 +1,5 @@
console.log('[DIAG][auth.js] Файл загружен:', __filename);
const { createError } = require('../utils/error');
const authService = require('../services/auth-service');
const logger = require('../utils/logger');
@@ -9,82 +11,12 @@ const { checkAdminTokens } = require('../services/auth-service');
* Middleware для проверки аутентификации
*/
const requireAuth = async (req, res, next) => {
try {
console.log('Session in requireAuth:', {
id: req.sessionID,
userId: req.session?.userId,
authenticated: req.session?.authenticated,
});
// Проверяем сессию
if (req.session?.authenticated && req.session?.userId) {
// Обновляем время жизни сессии
req.session.touch();
req.user = {
userId: req.session.userId,
address: req.session.address,
isAdmin: req.session.isAdmin,
authType: req.session.authType,
};
return next();
}
// Проверяем Bearer токен
const authHeader = req.headers.authorization;
if (authHeader?.startsWith('Bearer ')) {
const address = authHeader.split(' ')[1];
if (address.startsWith('0x')) {
const result = await db.getQuery()(
`
SELECT u.id, u.is_admin
FROM users u
JOIN user_identities ui ON u.id = ui.user_id
WHERE ui.identity_type = 'wallet'
AND LOWER(ui.identity_value) = LOWER($1)
`,
[address]
);
if (result.rows.length > 0) {
const user = result.rows[0];
// Создаем новую сессию
req.session.regenerate(async (err) => {
if (err) {
console.error('Error regenerating session:', err);
return res.status(500).json({ error: 'Session error' });
}
// Устанавливаем данные сессии
req.session.authenticated = true;
req.session.userId = user.id;
req.session.address = address;
req.session.isAdmin = user.is_admin;
req.session.authType = 'wallet';
// Сохраняем сессию
await new Promise((resolve) => req.session.save(resolve));
req.user = {
userId: user.id,
address: address,
isAdmin: user.is_admin,
authType: 'wallet',
};
next();
});
return;
}
}
}
return res.status(401).json({ error: 'Unauthorized' });
} catch (error) {
console.error('Auth middleware error:', error);
return res.status(500).json({ error: 'Internal server error' });
console.log('[DIAG][requireAuth] session:', req.session);
if (!req.session || !req.session.authenticated) {
return res.status(401).json({ error: 'Требуется аутентификация' });
}
// Можно добавить проверку isAdmin здесь, если нужно
next();
};
/**

View File

@@ -1,3 +1,5 @@
console.log('[DIAG][tables.js] Файл загружен:', __filename);
const express = require('express');
const router = express.Router();
const db = require('../db');
@@ -196,23 +198,37 @@ router.patch('/:id', async (req, res, next) => {
// DELETE: удалить таблицу и каскадно все связанные строки/столбцы/ячейки (доступно всем)
router.delete('/:id', requireAuth, async (req, res, next) => {
const dbModule = require('../db');
try {
const tableId = Number(req.params.id);
console.log('Backend: typeof tableId:', typeof tableId, 'value:', tableId);
// Проверяем, существует ли таблица
const checkResult = await db.getQuery()('SELECT id, name FROM user_tables WHERE id = $1', [tableId]);
console.log('Backend: Table check result:', checkResult.rows);
if (checkResult.rows.length === 0) {
console.log('Backend: Table not found');
return res.status(404).json({ error: 'Table not found' });
// Логируем строку подключения и pool.options
console.log('[DIAG][DELETE] pool.options:', dbModule.pool.options);
console.log('[DIAG][DELETE] process.env.DATABASE_URL:', process.env.DATABASE_URL);
console.log('[DIAG][DELETE] process.env.DB_HOST:', process.env.DB_HOST);
console.log('[DIAG][DELETE] process.env.DB_NAME:', process.env.DB_NAME);
console.log('=== [DIAG] Попытка удаления таблицы ===');
console.log('Сессия пользователя:', req.session);
if (!req.session.isAdmin) {
console.log('[DIAG] Нет прав администратора');
return res.status(403).json({ error: 'Удаление доступно только администраторам' });
}
// Удаляем только основную таблицу - каскадное удаление сработает автоматически
console.log('Backend: Executing DELETE query for table_id:', tableId);
const result = await db.getQuery()('DELETE FROM user_tables WHERE id = $1', [tableId]);
console.log('Backend: Delete result - rowCount:', result.rowCount);
const tableId = Number(req.params.id);
console.log('[DIAG] id из запроса:', req.params.id, 'Преобразованный id:', tableId, 'typeof:', typeof tableId);
// Проверяем наличие таблицы перед удалением
const checkBefore = await db.getQuery()('SELECT * FROM user_tables WHERE id = $1', [tableId]);
console.log('[DIAG] Таблица перед удалением:', checkBefore.rows);
// Пытаемся удалить
const result = await db.getQuery()('DELETE FROM user_tables WHERE id = $1 RETURNING *', [tableId]);
console.log('[DIAG] Результат удаления (rowCount):', result.rowCount, 'rows:', result.rows);
// Проверяем наличие таблицы после удаления
const checkAfter = await db.getQuery()('SELECT * FROM user_tables WHERE id = $1', [tableId]);
console.log('[DIAG] Таблица после удаления:', checkAfter.rows);
res.json({ success: true, deleted: result.rowCount });
} catch (err) {
console.error('Backend: Error deleting table:', err);
console.error('[DIAG] Ошибка при удалении таблицы:', err);
next(err);
}
});