> api-hybrid-auth@1.0.0 start > node app.js 🔍 WorkflowController module loaded 🔍 Workflow routes loaded 🔍 Creating requireServiceScopes middleware with scopes: [] 🔍 Creating requireServiceScopes middleware with scopes: [ 'ops.check' ] 🔍 Creating requireServiceScopes middleware with scopes: [ 'ops.queue' ] 🔍 Creating requireServiceScopes middleware with scopes: [] â­ī¸ Skipping database table creation during startup 📝 To set up database tables, run: npm run setup-db ✅ Notifications table ensured Server running on port 3001 ✅ Execution engine started ✅ ExecutionEngine started after DB check New WebSocket connection: _sshTthLkZiBrqUjAAAB New WebSocket connection: 2t2t59Vo3T_SbtkDAAAD Socket 2t2t59Vo3T_SbtkDAAAD joined approvals room Socket 2t2t59Vo3T_SbtkDAAAD joined procurement room New WebSocket connection: eTrz1S36590K40iaAAAF New WebSocket connection: pz8Nxjp-bs7mfnqbAAAH New WebSocket connection: Ktc8NTrpR86qn4TbAAAJ New WebSocket connection: V0u0CWFDquTQ2em8AAAL Socket V0u0CWFDquTQ2em8AAAL joined approvals room Socket V0u0CWFDquTQ2em8AAAL joined procurement room New WebSocket connection: zOOc2zBEgDn21fHsAAAN New WebSocket connection: 0v6zJoW1OscJlgr_AAAR New WebSocket connection: jz-u70Yvai-oKwBkAAAS New WebSocket connection: cHM9b7jZOKPBgzm9AAAT Socket 0v6zJoW1OscJlgr_AAAR joined approvals room Socket 0v6zJoW1OscJlgr_AAAR joined procurement room WebSocket disconnected: zOOc2zBEgDn21fHsAAAN WebSocket disconnected: eTrz1S36590K40iaAAAF WebSocket disconnected: 2t2t59Vo3T_SbtkDAAAD New WebSocket connection: rA3rNq9wcBN7GKJ9AAAV Socket rA3rNq9wcBN7GKJ9AAAV joined approvals room Socket rA3rNq9wcBN7GKJ9AAAV joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: APbekL2sziZJRGRLAAAX â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: h1ZvT7gyjzlubGaaAAAZ â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: h1ZvT7gyjzlubGaaAAAZ New WebSocket connection: bhQ1p1I7mzmL6vYPAAAb New WebSocket connection: ztzt3x9P7R2piu3iAAAd â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: KyjqpMu6HzrP5hnCAAAf WebSocket disconnected: KyjqpMu6HzrP5hnCAAAf New WebSocket connection: KH4qx-_UAuI0vq-SAAAh New WebSocket connection: Y9l2--ceWll7Ni05AAAj â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: cgMo_hBnBlCKFSG2AAAl â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: cgMo_hBnBlCKFSG2AAAl â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: Ktc8NTrpR86qn4TbAAAJ â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: D2de-S9a9RyNFWk4AAAq New WebSocket connection: -WQqglEOMHFER31jAAAr New WebSocket connection: QewgblcXrJ7lmC-IAAAt New WebSocket connection: 2VbmXstl_LDjMH0DAAAv New WebSocket connection: NupMIl42DmP-mMSaAAAw New WebSocket connection: KPfoHUvTdLf2CUVhAAAx WebSocket disconnected: jz-u70Yvai-oKwBkAAAS â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: UgEaeazbh9Z1feVmAAAz New WebSocket connection: 4Li7Y6CMxoNp6wuPAAA2 New WebSocket connection: 0oepUqytZGXUYxzfAAA3 WebSocket disconnected: D2de-S9a9RyNFWk4AAAq New WebSocket connection: ZPNvhddBJFWxQvkUAAA5 New WebSocket connection: e6l-BIwsBqtep81hAAA7 WebSocket disconnected: APbekL2sziZJRGRLAAAX WebSocket disconnected: rA3rNq9wcBN7GKJ9AAAV WebSocket disconnected: e6l-BIwsBqtep81hAAA7 WebSocket disconnected: ZPNvhddBJFWxQvkUAAA5 WebSocket disconnected: KPfoHUvTdLf2CUVhAAAx WebSocket disconnected: NupMIl42DmP-mMSaAAAw WebSocket disconnected: Y9l2--ceWll7Ni05AAAj WebSocket disconnected: KH4qx-_UAuI0vq-SAAAh WebSocket disconnected: ztzt3x9P7R2piu3iAAAd WebSocket disconnected: bhQ1p1I7mzmL6vYPAAAb New WebSocket connection: CBzcCIL6DcuHLZroAAA9 Socket CBzcCIL6DcuHLZroAAA9 joined approvals room Socket CBzcCIL6DcuHLZroAAA9 joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: qDfs2xEGe7LfpxrJAABA New WebSocket connection: pe-Z2tidPftWHZesAABB WebSocket disconnected: CBzcCIL6DcuHLZroAAA9 WebSocket disconnected: pe-Z2tidPftWHZesAABB WebSocket disconnected: qDfs2xEGe7LfpxrJAABA New WebSocket connection: f9oXO1FlHc1OZKzEAABD Socket f9oXO1FlHc1OZKzEAABD joined approvals room Socket f9oXO1FlHc1OZKzEAABD joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: KgRbY5R5NEjdSBsiAABF New WebSocket connection: isEInWoS-vqvx6bKAABH WebSocket disconnected: isEInWoS-vqvx6bKAABH WebSocket disconnected: KgRbY5R5NEjdSBsiAABF WebSocket disconnected: f9oXO1FlHc1OZKzEAABD New WebSocket connection: H4Oh7mKolFmLiEqrAABJ Socket H4Oh7mKolFmLiEqrAABJ joined approvals room Socket H4Oh7mKolFmLiEqrAABJ joined procurement room WebSocket disconnected: H4Oh7mKolFmLiEqrAABJ WebSocket disconnected: _sshTthLkZiBrqUjAAAB WebSocket disconnected: pz8Nxjp-bs7mfnqbAAAH WebSocket disconnected: V0u0CWFDquTQ2em8AAAL WebSocket disconnected: QewgblcXrJ7lmC-IAAAt WebSocket disconnected: -WQqglEOMHFER31jAAAr WebSocket disconnected: 2VbmXstl_LDjMH0DAAAv WebSocket disconnected: 0v6zJoW1OscJlgr_AAAR WebSocket disconnected: 0oepUqytZGXUYxzfAAA3 WebSocket disconnected: UgEaeazbh9Z1feVmAAAz WebSocket disconnected: cHM9b7jZOKPBgzm9AAAT WebSocket disconnected: 4Li7Y6CMxoNp6wuPAAA2 New WebSocket connection: 71KbB2l81M-t_Ct5AABL â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Socket 71KbB2l81M-t_Ct5AABL joined approvals room Socket 71KbB2l81M-t_Ct5AABL joined procurement room New WebSocket connection: 3tVHz8fSCuEVly61AABR New WebSocket connection: JahRAr63dL7LqWXPAABS New WebSocket connection: RxNThz9QgoRbtYYQAABT New WebSocket connection: a8g9JOMpm97eOFELAABU New WebSocket connection: 6-BoIpIDntKgCcS3AABV Socket RxNThz9QgoRbtYYQAABT joined approvals room Socket RxNThz9QgoRbtYYQAABT joined procurement room New WebSocket connection: XZhTi8FBoFGHGV7CAABX Socket XZhTi8FBoFGHGV7CAABX joined approvals room Socket XZhTi8FBoFGHGV7CAABX joined procurement room WebSocket disconnected: XZhTi8FBoFGHGV7CAABX New WebSocket connection: 7a_J-VO168w8rUnWAABZ Socket 7a_J-VO168w8rUnWAABZ joined approvals room Socket 7a_J-VO168w8rUnWAABZ joined procurement room New WebSocket connection: yd1Z5p4cHVka1I6sAABb â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: K7R-plFJOE1va2nXAABd WebSocket disconnected: K7R-plFJOE1va2nXAABd WebSocket disconnected: yd1Z5p4cHVka1I6sAABb WebSocket disconnected: 7a_J-VO168w8rUnWAABZ WebSocket disconnected: JahRAr63dL7LqWXPAABS WebSocket disconnected: 3tVHz8fSCuEVly61AABR WebSocket disconnected: 71KbB2l81M-t_Ct5AABL â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: aIR5QtgRX4AnhxGZAABh New WebSocket connection: qjLVPyTg3pBQJLlNAABi Socket aIR5QtgRX4AnhxGZAABh joined approvals room Socket aIR5QtgRX4AnhxGZAABh joined procurement room New WebSocket connection: 02ADe7ROpCPopqiIAABj WebSocket disconnected: a8g9JOMpm97eOFELAABU WebSocket disconnected: RxNThz9QgoRbtYYQAABT WebSocket disconnected: 6-BoIpIDntKgCcS3AABV â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: u0Lj-GmM0RoMX75fAABn New WebSocket connection: MmJt1oJgfXyNDpCnAABo â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Socket u0Lj-GmM0RoMX75fAABn joined approvals room Socket u0Lj-GmM0RoMX75fAABn joined procurement room New WebSocket connection: KrabeOR3EprFdGEqAABs New WebSocket connection: M5Xd6KGm10vkp8suAABt New WebSocket connection: XoDoBkIAgrvk9gvmAABu New WebSocket connection: q_5FbWlbkh2vqcGyAABv Socket M5Xd6KGm10vkp8suAABt joined approvals room Socket M5Xd6KGm10vkp8suAABt joined procurement room WebSocket disconnected: 02ADe7ROpCPopqiIAABj WebSocket disconnected: qjLVPyTg3pBQJLlNAABi WebSocket disconnected: aIR5QtgRX4AnhxGZAABh WebSocket disconnected: KrabeOR3EprFdGEqAABs WebSocket disconnected: MmJt1oJgfXyNDpCnAABo WebSocket disconnected: u0Lj-GmM0RoMX75fAABn WebSocket disconnected: q_5FbWlbkh2vqcGyAABv WebSocket disconnected: M5Xd6KGm10vkp8suAABt WebSocket disconnected: XoDoBkIAgrvk9gvmAABu â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: eA7Ur4WUC3M7s26xAABy Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: nvfJiSY97otfSJwwAAB3 Socket eA7Ur4WUC3M7s26xAABy joined approvals room Socket eA7Ur4WUC3M7s26xAABy joined procurement room New WebSocket connection: PUJI6RX4RJF8692UAAB4 New WebSocket connection: zmeXLorWDwJwo7RuAAB5 New WebSocket connection: VAaPJZj2SC0QUIU8AAB6 New WebSocket connection: E2c6ti-HkxJ11u3ZAAB7 Socket zmeXLorWDwJwo7RuAAB5 joined approvals room Socket zmeXLorWDwJwo7RuAAB5 joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: 8qxU7sUB60LmMCj6AAB- New WebSocket connection: T9QP95xaGKRxTZQ9AAB_ â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Socket 8qxU7sUB60LmMCj6AAB- joined approvals room Socket 8qxU7sUB60LmMCj6AAB- joined procurement room New WebSocket connection: 5A4af31qzTs-xt3zAACB WebSocket disconnected: T9QP95xaGKRxTZQ9AAB_ WebSocket disconnected: 8qxU7sUB60LmMCj6AAB- WebSocket disconnected: 5A4af31qzTs-xt3zAACB â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: 7rTjeiNJC90Js4HHAACE New WebSocket connection: W8ucH_gSl35Lmy99AACF Socket 7rTjeiNJC90Js4HHAACE joined approvals room Socket 7rTjeiNJC90Js4HHAACE joined procurement room New WebSocket connection: IgP9PB00C3nbocQHAACH â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: IgP9PB00C3nbocQHAACH WebSocket disconnected: W8ucH_gSl35Lmy99AACF WebSocket disconnected: 7rTjeiNJC90Js4HHAACE â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: -UAwCKvtkL4ojCG-AACK New WebSocket connection: UH9x42RSKZ2FZlJeAACL Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Socket -UAwCKvtkL4ojCG-AACK joined approvals room Socket -UAwCKvtkL4ojCG-AACK joined procurement room New WebSocket connection: AwqVDIq77Lrt2eKVAACN â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: AwqVDIq77Lrt2eKVAACN WebSocket disconnected: UH9x42RSKZ2FZlJeAACL WebSocket disconnected: -UAwCKvtkL4ojCG-AACK â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: ypSb3fMN8RQ2LtiPAACR New WebSocket connection: Ljm0yTmyAvYH6suuAACS Socket ypSb3fMN8RQ2LtiPAACR joined approvals room Socket ypSb3fMN8RQ2LtiPAACR joined procurement room New WebSocket connection: Kq4SR7Ql011fWEY5AACT â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: PUJI6RX4RJF8692UAAB4 â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: Kq4SR7Ql011fWEY5AACT New WebSocket connection: SiIe_KUg5Klb9qp6AACV â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: SiIe_KUg5Klb9qp6AACV WebSocket disconnected: nvfJiSY97otfSJwwAAB3 WebSocket disconnected: eA7Ur4WUC3M7s26xAABy WebSocket disconnected: E2c6ti-HkxJ11u3ZAAB7 â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: EHClXXHRg46Ddki5AACZ New WebSocket connection: YBM2TWQgWa85QBzTAACa New WebSocket connection: T4XulWFDJaxe07yRAACb New WebSocket connection: 3K8YGXnz9p9fSJ5rAACf New WebSocket connection: hQEUwMB-84rjldGbAACg New WebSocket connection: x_1FlIJ72ffL5N-XAACh WebSocket disconnected: T4XulWFDJaxe07yRAACb WebSocket disconnected: YBM2TWQgWa85QBzTAACa WebSocket disconnected: EHClXXHRg46Ddki5AACZ WebSocket disconnected: Ljm0yTmyAvYH6suuAACS WebSocket disconnected: ypSb3fMN8RQ2LtiPAACR WebSocket disconnected: zmeXLorWDwJwo7RuAAB5 WebSocket disconnected: hQEUwMB-84rjldGbAACg WebSocket disconnected: VAaPJZj2SC0QUIU8AAB6 WebSocket disconnected: 3K8YGXnz9p9fSJ5rAACf WebSocket disconnected: x_1FlIJ72ffL5N-XAACh New WebSocket connection: yMsKKgc8jNVnZnfGAACj Socket yMsKKgc8jNVnZnfGAACj joined approvals room Socket yMsKKgc8jNVnZnfGAACj joined procurement room New WebSocket connection: S6jBI5LD7vguLKd5AACl Socket S6jBI5LD7vguLKd5AACl joined approvals room Socket S6jBI5LD7vguLKd5AACl joined procurement room New WebSocket connection: t49NEb8xmrKHcmkZAACn Socket t49NEb8xmrKHcmkZAACn joined approvals room Socket t49NEb8xmrKHcmkZAACn joined procurement room WebSocket disconnected: t49NEb8xmrKHcmkZAACn New WebSocket connection: V4NH5BOETVykLnrcAACp Socket V4NH5BOETVykLnrcAACp joined approvals room Socket V4NH5BOETVykLnrcAACp joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: DA-5aJ7XPmzPgMSdAACs New WebSocket connection: lL3IPucRs-tETovgAACt WebSocket disconnected: lL3IPucRs-tETovgAACt WebSocket disconnected: DA-5aJ7XPmzPgMSdAACs WebSocket disconnected: V4NH5BOETVykLnrcAACp New WebSocket connection: Ixe640E50MRzcz63AACv Socket Ixe640E50MRzcz63AACv joined approvals room Socket Ixe640E50MRzcz63AACv joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: anOrDIfOU7CUtPPlAACx New WebSocket connection: mE6I3yf6eEbInlJxAACz WebSocket disconnected: Ixe640E50MRzcz63AACv WebSocket disconnected: mE6I3yf6eEbInlJxAACz WebSocket disconnected: anOrDIfOU7CUtPPlAACx New WebSocket connection: 4vL0exBcZnVKvefJAAC1 Socket 4vL0exBcZnVKvefJAAC1 joined approvals room Socket 4vL0exBcZnVKvefJAAC1 joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: MpvjOySwHs1A14mnAAC4 New WebSocket connection: ggpEs4ZyMm5Et0WWAAC5 â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: ggpEs4ZyMm5Et0WWAAC5 New WebSocket connection: wm2_4w2aPZfBl8HgAAC7 New WebSocket connection: esv0RPDUBAiOuFoPAAC9 â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: Qnu7Sm07dxvuDXxWAAC_ â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: Qnu7Sm07dxvuDXxWAAC_ WebSocket disconnected: esv0RPDUBAiOuFoPAAC9 WebSocket disconnected: wm2_4w2aPZfBl8HgAAC7 WebSocket disconnected: MpvjOySwHs1A14mnAAC4 WebSocket disconnected: 4vL0exBcZnVKvefJAAC1 New WebSocket connection: 6YdkP_3HDp-_-7BlAADB Socket 6YdkP_3HDp-_-7BlAADB joined approvals room Socket 6YdkP_3HDp-_-7BlAADB joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: cjhETqW1SeHyFavBAADD New WebSocket connection: vHNO_dcbWz8Qd8_CAADF â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: S6jBI5LD7vguLKd5AACl WebSocket disconnected: 6YdkP_3HDp-_-7BlAADB WebSocket disconnected: yMsKKgc8jNVnZnfGAACj WebSocket disconnected: cjhETqW1SeHyFavBAADD WebSocket disconnected: vHNO_dcbWz8Qd8_CAADF New WebSocket connection: RxvmnwzdTSOwaXqlAADH Socket RxvmnwzdTSOwaXqlAADH joined approvals room Socket RxvmnwzdTSOwaXqlAADH joined procurement room New WebSocket connection: BO1GMon8o-IAgtkaAADJ Socket BO1GMon8o-IAgtkaAADJ joined approvals room Socket BO1GMon8o-IAgtkaAADJ joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: ajorVJ6e60N8fZY5AADM New WebSocket connection: OrNuwdMgHrc9noy1AADN WebSocket disconnected: BO1GMon8o-IAgtkaAADJ WebSocket disconnected: ajorVJ6e60N8fZY5AADM WebSocket disconnected: OrNuwdMgHrc9noy1AADN WebSocket disconnected: RxvmnwzdTSOwaXqlAADH New WebSocket connection: Pww9a34ZXZ1eeTsIAADP Socket Pww9a34ZXZ1eeTsIAADP joined approvals room Socket Pww9a34ZXZ1eeTsIAADP joined procurement room New WebSocket connection: Oej3HeEaUqztRxtJAADR Socket Oej3HeEaUqztRxtJAADR joined approvals room Socket Oej3HeEaUqztRxtJAADR joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: sYSZotTZnXPw5roHAADT New WebSocket connection: tmI8bvU3zg9Y6eXLAADV WebSocket disconnected: Oej3HeEaUqztRxtJAADR WebSocket disconnected: Pww9a34ZXZ1eeTsIAADP WebSocket disconnected: sYSZotTZnXPw5roHAADT WebSocket disconnected: tmI8bvU3zg9Y6eXLAADV New WebSocket connection: Iy3pSrv9yCNpo2o7AADX Socket Iy3pSrv9yCNpo2o7AADX joined approvals room Socket Iy3pSrv9yCNpo2o7AADX joined procurement room New WebSocket connection: Ks0f3-66iVZpOgrAAADZ Socket Ks0f3-66iVZpOgrAAADZ joined approvals room Socket Ks0f3-66iVZpOgrAAADZ joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: 0u07PdFUDsgjfwRbAADb New WebSocket connection: 4PZqOsp-04uCi___AADd WebSocket disconnected: 0u07PdFUDsgjfwRbAADb WebSocket disconnected: Ks0f3-66iVZpOgrAAADZ WebSocket disconnected: 4PZqOsp-04uCi___AADd WebSocket disconnected: Iy3pSrv9yCNpo2o7AADX New WebSocket connection: BLuu4H3xPTtJZeQiAADf Socket BLuu4H3xPTtJZeQiAADf joined approvals room Socket BLuu4H3xPTtJZeQiAADf joined procurement room New WebSocket connection: JPq0vP-_V31u79-YAADh Socket JPq0vP-_V31u79-YAADh joined approvals room Socket JPq0vP-_V31u79-YAADh joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: M3Cw24sj2i7l3TbQAADk New WebSocket connection: AstnC13T8PD0xLwBAADl WebSocket disconnected: BLuu4H3xPTtJZeQiAADf WebSocket disconnected: JPq0vP-_V31u79-YAADh WebSocket disconnected: M3Cw24sj2i7l3TbQAADk WebSocket disconnected: AstnC13T8PD0xLwBAADl New WebSocket connection: W6VWJVfi_m7jXxCFAADn Socket W6VWJVfi_m7jXxCFAADn joined approvals room Socket W6VWJVfi_m7jXxCFAADn joined procurement room New WebSocket connection: 2i-vy_-UTghGvAwlAADp Socket 2i-vy_-UTghGvAwlAADp joined approvals room Socket 2i-vy_-UTghGvAwlAADp joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: voxa9IJeJ4QQjdVvAADs New WebSocket connection: _tXkVnIrFTcjIUwxAADt WebSocket disconnected: W6VWJVfi_m7jXxCFAADn WebSocket disconnected: 2i-vy_-UTghGvAwlAADp WebSocket disconnected: voxa9IJeJ4QQjdVvAADs WebSocket disconnected: _tXkVnIrFTcjIUwxAADt New WebSocket connection: OgJXmu1-mXlF_GznAADv Socket OgJXmu1-mXlF_GznAADv joined approvals room Socket OgJXmu1-mXlF_GznAADv joined procurement room New WebSocket connection: S9kU_uCmG0W56OUnAADx Socket S9kU_uCmG0W56OUnAADx joined approvals room Socket S9kU_uCmG0W56OUnAADx joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: BRO3W0n3-At6aIBeAAD0 New WebSocket connection: XHjuihxcL7gpuiQzAAD1 WebSocket disconnected: S9kU_uCmG0W56OUnAADx WebSocket disconnected: BRO3W0n3-At6aIBeAAD0 WebSocket disconnected: XHjuihxcL7gpuiQzAAD1 WebSocket disconnected: OgJXmu1-mXlF_GznAADv New WebSocket connection: sOCg2GQt3rE6G_dkAAD3 Socket sOCg2GQt3rE6G_dkAAD3 joined approvals room Socket sOCg2GQt3rE6G_dkAAD3 joined procurement room New WebSocket connection: 6PkK7chQphJuUl-KAAD5 Socket 6PkK7chQphJuUl-KAAD5 joined approvals room Socket 6PkK7chQphJuUl-KAAD5 joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: UmqLCQJVWWjcL0S4AAD8 New WebSocket connection: ZU5S8ung5WKtap9GAAD9 WebSocket disconnected: sOCg2GQt3rE6G_dkAAD3 WebSocket disconnected: 6PkK7chQphJuUl-KAAD5 WebSocket disconnected: UmqLCQJVWWjcL0S4AAD8 WebSocket disconnected: ZU5S8ung5WKtap9GAAD9 New WebSocket connection: 60X7FF2UbuIf7pxkAAD_ Socket 60X7FF2UbuIf7pxkAAD_ joined approvals room Socket 60X7FF2UbuIf7pxkAAD_ joined procurement room New WebSocket connection: A7d2tecG_HorCyHlAAEB Socket A7d2tecG_HorCyHlAAEB joined approvals room Socket A7d2tecG_HorCyHlAAEB joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: GO2JgLnrrl-wNJjJAAED â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: qV-uK-NejCTG4AAIAAEF WebSocket disconnected: 60X7FF2UbuIf7pxkAAD_ WebSocket disconnected: A7d2tecG_HorCyHlAAEB WebSocket disconnected: GO2JgLnrrl-wNJjJAAED WebSocket disconnected: qV-uK-NejCTG4AAIAAEF New WebSocket connection: cAyIp002G6rKST24AAEH Socket cAyIp002G6rKST24AAEH joined approvals room Socket cAyIp002G6rKST24AAEH joined procurement room New WebSocket connection: Y10JdT_AIJzMremjAAEJ Socket Y10JdT_AIJzMremjAAEJ joined approvals room Socket Y10JdT_AIJzMremjAAEJ joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: aEOD2l6duKlNk2_fAAEM New WebSocket connection: -MbaSpUoKiS7j6LdAAEN WebSocket disconnected: cAyIp002G6rKST24AAEH WebSocket disconnected: Y10JdT_AIJzMremjAAEJ WebSocket disconnected: aEOD2l6duKlNk2_fAAEM WebSocket disconnected: -MbaSpUoKiS7j6LdAAEN New WebSocket connection: c5gt1AZcr4xrExI-AAEP Socket c5gt1AZcr4xrExI-AAEP joined approvals room Socket c5gt1AZcr4xrExI-AAEP joined procurement room New WebSocket connection: vHRD71QqA-pqqHgDAAER Socket vHRD71QqA-pqqHgDAAER joined approvals room Socket vHRD71QqA-pqqHgDAAER joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: HYJzZF-JbfvbWTt7AAET Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: gsVAE2f88VTFD--jAAEV WebSocket disconnected: c5gt1AZcr4xrExI-AAEP WebSocket disconnected: vHRD71QqA-pqqHgDAAER WebSocket disconnected: HYJzZF-JbfvbWTt7AAET WebSocket disconnected: gsVAE2f88VTFD--jAAEV New WebSocket connection: a27m83O_OsRiw3zrAAEX Socket a27m83O_OsRiw3zrAAEX joined approvals room Socket a27m83O_OsRiw3zrAAEX joined procurement room New WebSocket connection: d_1ZqFJveYRE-oJXAAEZ Socket d_1ZqFJveYRE-oJXAAEZ joined approvals room Socket d_1ZqFJveYRE-oJXAAEZ joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: Uenb4KlsvjtI1k3zAAEc New WebSocket connection: nDmXJ9olMAOkqlsYAAEd WebSocket disconnected: a27m83O_OsRiw3zrAAEX WebSocket disconnected: d_1ZqFJveYRE-oJXAAEZ WebSocket disconnected: Uenb4KlsvjtI1k3zAAEc WebSocket disconnected: nDmXJ9olMAOkqlsYAAEd New WebSocket connection: Ad87hxTLRoYBNpRgAAEf Socket Ad87hxTLRoYBNpRgAAEf joined approvals room Socket Ad87hxTLRoYBNpRgAAEf joined procurement room New WebSocket connection: JIcUkvwnhptPTyexAAEh Socket JIcUkvwnhptPTyexAAEh joined approvals room Socket JIcUkvwnhptPTyexAAEh joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: --vEZBYanlWY-4cxAAEk New WebSocket connection: Qy69FzreOb43S3H5AAEl WebSocket disconnected: --vEZBYanlWY-4cxAAEk WebSocket disconnected: JIcUkvwnhptPTyexAAEh WebSocket disconnected: Qy69FzreOb43S3H5AAEl WebSocket disconnected: Ad87hxTLRoYBNpRgAAEf New WebSocket connection: X-7ap-Q2x9BoiuVVAAEn Socket X-7ap-Q2x9BoiuVVAAEn joined approvals room Socket X-7ap-Q2x9BoiuVVAAEn joined procurement room New WebSocket connection: Gfl7WocvlmQ_GNg-AAEp Socket Gfl7WocvlmQ_GNg-AAEp joined approvals room Socket Gfl7WocvlmQ_GNg-AAEp joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: 2DfaeU1rjNMf5w7eAAEr â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: ObcHUAy8BTx5EwmWAAEt WebSocket disconnected: X-7ap-Q2x9BoiuVVAAEn WebSocket disconnected: Gfl7WocvlmQ_GNg-AAEp WebSocket disconnected: 2DfaeU1rjNMf5w7eAAEr WebSocket disconnected: ObcHUAy8BTx5EwmWAAEt New WebSocket connection: 7Hbox1CzGz6aTFIQAAEv Socket 7Hbox1CzGz6aTFIQAAEv joined approvals room Socket 7Hbox1CzGz6aTFIQAAEv joined procurement room New WebSocket connection: JN5wc4IH8EF2yelXAAEx Socket JN5wc4IH8EF2yelXAAEx joined approvals room Socket JN5wc4IH8EF2yelXAAEx joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: SnQaD8C8tLIK_1g7AAE0 New WebSocket connection: 7MfZLTaSZiFzQvixAAE1 WebSocket disconnected: 7Hbox1CzGz6aTFIQAAEv WebSocket disconnected: JN5wc4IH8EF2yelXAAEx WebSocket disconnected: SnQaD8C8tLIK_1g7AAE0 WebSocket disconnected: 7MfZLTaSZiFzQvixAAE1 New WebSocket connection: ImqbxM867qtkXy_7AAE3 Socket ImqbxM867qtkXy_7AAE3 joined approvals room Socket ImqbxM867qtkXy_7AAE3 joined procurement room New WebSocket connection: P5Dp1oEIdvpprzKLAAE5 Socket P5Dp1oEIdvpprzKLAAE5 joined approvals room Socket P5Dp1oEIdvpprzKLAAE5 joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: rtgb4LMpkIliXgemAAE8 New WebSocket connection: xFhnYkIGwaGIeQJrAAE9 WebSocket disconnected: ImqbxM867qtkXy_7AAE3 WebSocket disconnected: P5Dp1oEIdvpprzKLAAE5 WebSocket disconnected: rtgb4LMpkIliXgemAAE8 WebSocket disconnected: xFhnYkIGwaGIeQJrAAE9 New WebSocket connection: axkOXArYg6pW_EUfAAE_ Socket axkOXArYg6pW_EUfAAE_ joined approvals room Socket axkOXArYg6pW_EUfAAE_ joined procurement room New WebSocket connection: ZCYOiyq92rnGDk4fAAFB Socket ZCYOiyq92rnGDk4fAAFB joined approvals room Socket ZCYOiyq92rnGDk4fAAFB joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: vLP3WUXmNpbUZA6YAAFE New WebSocket connection: UD6CyihV0xQsm8t6AAFF WebSocket disconnected: axkOXArYg6pW_EUfAAE_ WebSocket disconnected: ZCYOiyq92rnGDk4fAAFB WebSocket disconnected: vLP3WUXmNpbUZA6YAAFE WebSocket disconnected: UD6CyihV0xQsm8t6AAFF New WebSocket connection: ISEYQzGsaoSavOk1AAFH Socket ISEYQzGsaoSavOk1AAFH joined approvals room Socket ISEYQzGsaoSavOk1AAFH joined procurement room New WebSocket connection: qwrqNQtAz0_WWaGwAAFJ Socket qwrqNQtAz0_WWaGwAAFJ joined approvals room Socket qwrqNQtAz0_WWaGwAAFJ joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: mFRuGCn1Zw-5S6pKAAFM New WebSocket connection: NVEue_QpOzEiOuIuAAFN WebSocket disconnected: ISEYQzGsaoSavOk1AAFH WebSocket disconnected: NVEue_QpOzEiOuIuAAFN WebSocket disconnected: qwrqNQtAz0_WWaGwAAFJ WebSocket disconnected: mFRuGCn1Zw-5S6pKAAFM New WebSocket connection: -Iry2gleYmlVPIiIAAFP Socket -Iry2gleYmlVPIiIAAFP joined approvals room Socket -Iry2gleYmlVPIiIAAFP joined procurement room New WebSocket connection: fjFks2p3jGY45y_5AAFR Socket fjFks2p3jGY45y_5AAFR joined approvals room Socket fjFks2p3jGY45y_5AAFR joined procurement room New WebSocket connection: aShvaEz6F3FI3N0BAAFT â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: 4owgEqDpxjn6-wBIAAFV WebSocket disconnected: -Iry2gleYmlVPIiIAAFP WebSocket disconnected: fjFks2p3jGY45y_5AAFR WebSocket disconnected: aShvaEz6F3FI3N0BAAFT WebSocket disconnected: 4owgEqDpxjn6-wBIAAFV New WebSocket connection: 5UfEl65s86g4E4pBAAFX Socket 5UfEl65s86g4E4pBAAFX joined approvals room Socket 5UfEl65s86g4E4pBAAFX joined procurement room New WebSocket connection: 9SI7fnQtyY4foBTMAAFZ Socket 9SI7fnQtyY4foBTMAAFZ joined approvals room Socket 9SI7fnQtyY4foBTMAAFZ joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: mQ67UGJw8GCMFfpUAAFc New WebSocket connection: JzjAF_OrRV9miuYFAAFd WebSocket disconnected: 9SI7fnQtyY4foBTMAAFZ WebSocket disconnected: mQ67UGJw8GCMFfpUAAFc WebSocket disconnected: JzjAF_OrRV9miuYFAAFd WebSocket disconnected: 5UfEl65s86g4E4pBAAFX New WebSocket connection: bCpJ_xZY96gY5FwOAAFf Socket bCpJ_xZY96gY5FwOAAFf joined approvals room Socket bCpJ_xZY96gY5FwOAAFf joined procurement room New WebSocket connection: vpUFS0ISKoNRooZmAAFh Socket vpUFS0ISKoNRooZmAAFh joined approvals room Socket vpUFS0ISKoNRooZmAAFh joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: mTT-jI2y-rm3aPxKAAFk New WebSocket connection: pwA9qIoo-BdJw0wLAAFl WebSocket disconnected: bCpJ_xZY96gY5FwOAAFf WebSocket disconnected: vpUFS0ISKoNRooZmAAFh WebSocket disconnected: mTT-jI2y-rm3aPxKAAFk WebSocket disconnected: pwA9qIoo-BdJw0wLAAFl New WebSocket connection: XtUkqwfnoO21OEs1AAFn Socket XtUkqwfnoO21OEs1AAFn joined approvals room Socket XtUkqwfnoO21OEs1AAFn joined procurement room New WebSocket connection: nPQUokoWabQrAbEuAAFp Socket nPQUokoWabQrAbEuAAFp joined approvals room Socket nPQUokoWabQrAbEuAAFp joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: cH-8CM6d2yo1sotbAAFs New WebSocket connection: xVyoZo22eLQKRr9oAAFt WebSocket disconnected: nPQUokoWabQrAbEuAAFp WebSocket disconnected: XtUkqwfnoO21OEs1AAFn WebSocket disconnected: cH-8CM6d2yo1sotbAAFs WebSocket disconnected: xVyoZo22eLQKRr9oAAFt New WebSocket connection: FarzvEhaiBVlSO_mAAFv Socket FarzvEhaiBVlSO_mAAFv joined approvals room Socket FarzvEhaiBVlSO_mAAFv joined procurement room New WebSocket connection: OPxQync_2sCliLMyAAFx Socket OPxQync_2sCliLMyAAFx joined approvals room Socket OPxQync_2sCliLMyAAFx joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: Yt-rVLPzCzaOqkLtAAF0 New WebSocket connection: lUHzEDBDcwUrA58OAAF1 WebSocket disconnected: FarzvEhaiBVlSO_mAAFv WebSocket disconnected: OPxQync_2sCliLMyAAFx WebSocket disconnected: Yt-rVLPzCzaOqkLtAAF0 WebSocket disconnected: lUHzEDBDcwUrA58OAAF1 New WebSocket connection: G1DYchGD79kzSpTIAAF3 Socket G1DYchGD79kzSpTIAAF3 joined approvals room Socket G1DYchGD79kzSpTIAAF3 joined procurement room New WebSocket connection: P5tzy4CBZRPyMyPXAAF5 Socket P5tzy4CBZRPyMyPXAAF5 joined approvals room Socket P5tzy4CBZRPyMyPXAAF5 joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: IghbwZVuiusjNk5tAAF8 New WebSocket connection: VcivZLSJTO8Zs1stAAF9 WebSocket disconnected: G1DYchGD79kzSpTIAAF3 WebSocket disconnected: P5tzy4CBZRPyMyPXAAF5 WebSocket disconnected: IghbwZVuiusjNk5tAAF8 WebSocket disconnected: VcivZLSJTO8Zs1stAAF9 New WebSocket connection: V83XxCXk3ZzXSWqiAAF_ Socket V83XxCXk3ZzXSWqiAAF_ joined approvals room Socket V83XxCXk3ZzXSWqiAAF_ joined procurement room New WebSocket connection: Op9UKdDHcvLEqmKlAAGB Socket Op9UKdDHcvLEqmKlAAGB joined approvals room Socket Op9UKdDHcvLEqmKlAAGB joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: ASjhdqq51q9kb9F7AAGE New WebSocket connection: rTspMQRCC0RkHTmcAAGF WebSocket disconnected: V83XxCXk3ZzXSWqiAAF_ WebSocket disconnected: Op9UKdDHcvLEqmKlAAGB WebSocket disconnected: ASjhdqq51q9kb9F7AAGE WebSocket disconnected: rTspMQRCC0RkHTmcAAGF New WebSocket connection: VMaFFH1R9ftPfacYAAGH Socket VMaFFH1R9ftPfacYAAGH joined approvals room Socket VMaFFH1R9ftPfacYAAGH joined procurement room New WebSocket connection: S9MxqFO5kLwlKdCMAAGJ Socket S9MxqFO5kLwlKdCMAAGJ joined approvals room Socket S9MxqFO5kLwlKdCMAAGJ joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: WiQZn8akgEqIFP4VAAGM New WebSocket connection: L8N3e830tFfM19G8AAGN WebSocket disconnected: WiQZn8akgEqIFP4VAAGM WebSocket disconnected: S9MxqFO5kLwlKdCMAAGJ WebSocket disconnected: L8N3e830tFfM19G8AAGN WebSocket disconnected: VMaFFH1R9ftPfacYAAGH New WebSocket connection: d4uDP85rUAivkp4mAAGP Socket d4uDP85rUAivkp4mAAGP joined approvals room Socket d4uDP85rUAivkp4mAAGP joined procurement room New WebSocket connection: _LWW-CD2orStHgb-AAGR Socket _LWW-CD2orStHgb-AAGR joined approvals room Socket _LWW-CD2orStHgb-AAGR joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: O4BQ-YT5Q8sqVAcaAAGU New WebSocket connection: pwgnw8uCd5MwZOFGAAGV WebSocket disconnected: d4uDP85rUAivkp4mAAGP WebSocket disconnected: _LWW-CD2orStHgb-AAGR WebSocket disconnected: O4BQ-YT5Q8sqVAcaAAGU WebSocket disconnected: pwgnw8uCd5MwZOFGAAGV New WebSocket connection: whz7aoKEQhm0BllwAAGX Socket whz7aoKEQhm0BllwAAGX joined approvals room Socket whz7aoKEQhm0BllwAAGX joined procurement room New WebSocket connection: lczi8O4ojgSwsM_NAAGZ Socket lczi8O4ojgSwsM_NAAGZ joined approvals room Socket lczi8O4ojgSwsM_NAAGZ joined procurement room New WebSocket connection: B1yw_3eZzA-ztp2wAAGb Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: 0eR_dSiRJVGG2H7NAAGd WebSocket disconnected: whz7aoKEQhm0BllwAAGX WebSocket disconnected: lczi8O4ojgSwsM_NAAGZ WebSocket disconnected: B1yw_3eZzA-ztp2wAAGb WebSocket disconnected: 0eR_dSiRJVGG2H7NAAGd New WebSocket connection: voJijn1tJG4W9LQWAAGf Socket voJijn1tJG4W9LQWAAGf joined approvals room Socket voJijn1tJG4W9LQWAAGf joined procurement room New WebSocket connection: sxRHl1G8i5fbzRNvAAGh Socket sxRHl1G8i5fbzRNvAAGh joined approvals room Socket sxRHl1G8i5fbzRNvAAGh joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: _6MpYOvjdaRiupdFAAGk New WebSocket connection: Ed--4VjpfGwhBfDVAAGl WebSocket disconnected: voJijn1tJG4W9LQWAAGf WebSocket disconnected: sxRHl1G8i5fbzRNvAAGh WebSocket disconnected: _6MpYOvjdaRiupdFAAGk WebSocket disconnected: Ed--4VjpfGwhBfDVAAGl New WebSocket connection: 35yiSnknXgrxdF3nAAGn Socket 35yiSnknXgrxdF3nAAGn joined approvals room Socket 35yiSnknXgrxdF3nAAGn joined procurement room New WebSocket connection: 66QKjw9qxQO0iQ0dAAGp Socket 66QKjw9qxQO0iQ0dAAGp joined approvals room Socket 66QKjw9qxQO0iQ0dAAGp joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: tCuRFKsVW0S-3P3xAAGs New WebSocket connection: 6J-7rQgQLfPmOSk8AAGt WebSocket disconnected: 35yiSnknXgrxdF3nAAGn WebSocket disconnected: 66QKjw9qxQO0iQ0dAAGp WebSocket disconnected: tCuRFKsVW0S-3P3xAAGs WebSocket disconnected: 6J-7rQgQLfPmOSk8AAGt New WebSocket connection: pnjuCP_YBw1wjdRjAAGv Socket pnjuCP_YBw1wjdRjAAGv joined approvals room Socket pnjuCP_YBw1wjdRjAAGv joined procurement room New WebSocket connection: o8U3Spz_YddSyoMnAAGx Socket o8U3Spz_YddSyoMnAAGx joined approvals room Socket o8U3Spz_YddSyoMnAAGx joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: LtNFzGRTfBv0QB5XAAG0 New WebSocket connection: Tf306LKj9Umv5Mc-AAG1 WebSocket disconnected: pnjuCP_YBw1wjdRjAAGv WebSocket disconnected: o8U3Spz_YddSyoMnAAGx WebSocket disconnected: LtNFzGRTfBv0QB5XAAG0 WebSocket disconnected: Tf306LKj9Umv5Mc-AAG1 New WebSocket connection: OuCt1WKk1lMjms-6AAG3 Socket OuCt1WKk1lMjms-6AAG3 joined approvals room Socket OuCt1WKk1lMjms-6AAG3 joined procurement room New WebSocket connection: EJeEzdTd1JWxmLsKAAG5 Socket EJeEzdTd1JWxmLsKAAG5 joined approvals room Socket EJeEzdTd1JWxmLsKAAG5 joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: oftruAhtKCdWxihQAAG8 New WebSocket connection: 0obpTeRDw0udt7FuAAG9 WebSocket disconnected: OuCt1WKk1lMjms-6AAG3 WebSocket disconnected: EJeEzdTd1JWxmLsKAAG5 WebSocket disconnected: oftruAhtKCdWxihQAAG8 WebSocket disconnected: 0obpTeRDw0udt7FuAAG9 New WebSocket connection: X36O2PtiNJ_RrvkHAAG_ Socket X36O2PtiNJ_RrvkHAAG_ joined approvals room Socket X36O2PtiNJ_RrvkHAAG_ joined procurement room New WebSocket connection: mCk5pfj4B8W7dheOAAHB Socket mCk5pfj4B8W7dheOAAHB joined approvals room Socket mCk5pfj4B8W7dheOAAHB joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: RURWduqI0lCOJPxBAAHE New WebSocket connection: slRg6VI5PqUEgOhMAAHF WebSocket disconnected: X36O2PtiNJ_RrvkHAAG_ WebSocket disconnected: mCk5pfj4B8W7dheOAAHB WebSocket disconnected: RURWduqI0lCOJPxBAAHE WebSocket disconnected: slRg6VI5PqUEgOhMAAHF New WebSocket connection: TIgJntiD1H1Mx659AAHH Socket TIgJntiD1H1Mx659AAHH joined approvals room Socket TIgJntiD1H1Mx659AAHH joined procurement room New WebSocket connection: 9kc5VvHzkJS5zVXiAAHJ Socket 9kc5VvHzkJS5zVXiAAHJ joined approvals room Socket 9kc5VvHzkJS5zVXiAAHJ joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: 9jVJFTXasbmpygk6AAHM New WebSocket connection: tlTkKuAgQNg_ITZaAAHN WebSocket disconnected: TIgJntiD1H1Mx659AAHH New WebSocket connection: ioD9QtyszPnkHR-hAAHP Socket ioD9QtyszPnkHR-hAAHP joined approvals room Socket ioD9QtyszPnkHR-hAAHP joined procurement room WebSocket disconnected: ioD9QtyszPnkHR-hAAHP â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: HdPNHiyEKyAQ-5wOAAHS New WebSocket connection: mPEoD887xednGEvJAAHU Socket HdPNHiyEKyAQ-5wOAAHS joined approvals room Socket HdPNHiyEKyAQ-5wOAAHS joined procurement room New WebSocket connection: WD2Uf5eAbTvAmrvDAAHV Unhandled route: { method: 'POST', path: '/api/auth/logout', headers: { host: 'localhost:3001', connection: 'keep-alive', 'content-length': '2', 'sec-ch-ua-platform': '"macOS"', authorization: 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Miwicm9sZV9pZCI6MSwibW9kdWxlX2lkIjoyLCJzdG9yZV9pZCI6MSwiaWF0IjoxNzYzNDM3MTEyLCJleHAiOjE3NjM1MjM1MTJ9.3skG0f_CCjftsvIBdv17MXE5-1FYcmLjSMwxTPxUhpM', 'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 OPR/122.0.0.0', accept: 'application/json, text/plain, */*', 'sec-ch-ua': '"Not)A;Brand";v="8", "Chromium";v="138", "Opera";v="122"', 'content-type': 'application/json', 'sec-ch-ua-mobile': '?0', origin: 'http://localhost:9000', 'sec-fetch-site': 'same-site', 'sec-fetch-mode': 'cors', 'sec-fetch-dest': 'empty', referer: 'http://localhost:9000/', 'accept-encoding': 'gzip, deflate, br, zstd', 'accept-language': 'en-GB,en-US;q=0.9,en;q=0.8,da;q=0.7' }, body: {} } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: WD2Uf5eAbTvAmrvDAAHV New WebSocket connection: seutSGzJXbkia87jAAHX User status details: { is_blocked: 0, module_id: 6, store_id: 1 } Token created for user 6. Expires at: Wed Nov 19 2025 18:45:21 GMT+0100 (West Africa Standard Time) Login successful. Token generated. â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: ZH4ZhzVYJqff3dLmAAHZ WebSocket disconnected: HdPNHiyEKyAQ-5wOAAHS WebSocket disconnected: ZH4ZhzVYJqff3dLmAAHZ WebSocket disconnected: seutSGzJXbkia87jAAHX WebSocket disconnected: mPEoD887xednGEvJAAHU New WebSocket connection: 1mK_I0eUE0JOdzd2AAHb Socket 1mK_I0eUE0JOdzd2AAHb joined approvals room Socket 1mK_I0eUE0JOdzd2AAHb joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: 8S8fnoLFtP46m4XKAAHd New WebSocket connection: 7I3x6IMXgRdeV8H3AAHf userController.getUsernames: Received userIds: [ '6' ] userModel.getUsersByIds: Received IDs: [ '6' ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ '6' ] userController.getUsernames: Received userIds: [ '6' ] userModel.getUsersByIds: Received IDs: [ '6' ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ '6' ] userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userController.getUsernames: Received userIds: [ '6' ] userModel.getUsersByIds: Received IDs: [ '6' ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ '6' ] userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userController.getUsernames: Received userIds: [ '6' ] userModel.getUsersByIds: Received IDs: [ '6' ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ '6' ] userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userController.getUsernames: Received userIds: [ '6' ] userModel.getUsersByIds: Received IDs: [ '6' ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ '6' ] userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userController.getUsernames: Received userIds: [ '6' ] userModel.getUsersByIds: Received IDs: [ '6' ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ '6' ] userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userController.getUsernames: Received userIds: [ 6 ] userModel.getUsersByIds: Received IDs: [ 6 ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ 6 ] userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userController.getUsernames: Received userIds: [ 6 ] userModel.getUsersByIds: Received IDs: [ 6 ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ 6 ] userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userController.getUsernames: Received userIds: [ '6' ] userModel.getUsersByIds: Received IDs: [ '6' ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ '6' ] userController.getUsernames: Received userIds: [ '6' ] userModel.getUsersByIds: Received IDs: [ '6' ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ '6' ] userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userController.getUsernames: Received userIds: [ '6' ] userModel.getUsersByIds: Received IDs: [ '6' ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ '6' ] userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userController.getUsernames: Received userIds: [ '6' ] userModel.getUsersByIds: Received IDs: [ '6' ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ '6' ] userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userController.getUsernames: Received userIds: [ '6' ] userModel.getUsersByIds: Received IDs: [ '6' ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ '6' ] userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userController.getUsernames: Received userIds: [ '6' ] userModel.getUsersByIds: Received IDs: [ '6' ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ '6' ] userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userController.getUsernames: Received userIds: [ '6' ] userModel.getUsersByIds: Received IDs: [ '6' ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ '6' ] userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userController.getUsernames: Received userIds: [ 7 ] userModel.getUsersByIds: Received IDs: [ 7 ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ 7 ] userController.getUsernames: Received userIds: [ '6' ] userModel.getUsersByIds: Received IDs: [ '6' ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ '6' ] userModel.getUsersByIds: Query result: [ { id: 7, username: 'cr' } ] userController.getUsernames: Users from model: [ { id: 7, username: 'cr' } ] userController.getUsernames: Usernames map: { '7': 'cr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userController.getUsernames: Received userIds: [ 7 ] userModel.getUsersByIds: Received IDs: [ 7 ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ 7 ] userModel.getUsersByIds: Query result: [ { id: 7, username: 'cr' } ] userController.getUsernames: Users from model: [ { id: 7, username: 'cr' } ] userController.getUsernames: Usernames map: { '7': 'cr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userController.getUsernames: Received userIds: [ '6' ] userModel.getUsersByIds: Received IDs: [ '6' ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ '6' ] userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userController.getUsernames: Received userIds: [ '6' ] userModel.getUsersByIds: Received IDs: [ '6' ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ '6' ] userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userController.getUsernames: Received userIds: [ '6' ] userModel.getUsersByIds: Received IDs: [ '6' ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ '6' ] userController.getUsernames: Received userIds: [ '6' ] userModel.getUsersByIds: Received IDs: [ '6' ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ '6' ] userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userController.getUsernames: Received userIds: [ '6' ] userModel.getUsersByIds: Received IDs: [ '6' ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ '6' ] userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userController.getUsernames: Received userIds: [ '6' ] userModel.getUsersByIds: Received IDs: [ '6' ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ '6' ] userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userController.getUsernames: Received userIds: [ '6' ] userModel.getUsersByIds: Received IDs: [ '6' ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ '6' ] userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Unhandled route: { method: 'POST', path: '/api/auth/logout', headers: { host: 'localhost:3001', connection: 'keep-alive', 'content-length': '2', 'sec-ch-ua-platform': '"macOS"', authorization: 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Niwicm9sZV9pZCI6MSwibW9kdWxlX2lkIjo2LCJzdG9yZV9pZCI6MSwiaWF0IjoxNzYzNDg3OTIxLCJleHAiOjE3NjM1NzQzMjF9.dp4X0802Nox4SgqKUlh7nluxVzfhT6w6YP2likuQZxU', 'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 OPR/122.0.0.0', accept: 'application/json, text/plain, */*', 'sec-ch-ua': '"Not)A;Brand";v="8", "Chromium";v="138", "Opera";v="122"', 'content-type': 'application/json', 'sec-ch-ua-mobile': '?0', origin: 'http://localhost:9000', 'sec-fetch-site': 'same-site', 'sec-fetch-mode': 'cors', 'sec-fetch-dest': 'empty', referer: 'http://localhost:9000/', 'accept-encoding': 'gzip, deflate, br, zstd', 'accept-language': 'en-GB,en-US;q=0.9,en;q=0.8,da;q=0.7' }, body: {} } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: 7I3x6IMXgRdeV8H3AAHf New WebSocket connection: hDfw_C-4rc2NBAgzAAHh User status details: { is_blocked: 0, module_id: 6, store_id: 1 } Token created for user 6. Expires at: Wed Nov 19 2025 18:49:19 GMT+0100 (West Africa Standard Time) Login successful. Token generated. â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: Did8uKGrCpiHMFVXAAHj userController.getUsernames: Received userIds: [ '6' ] userModel.getUsersByIds: Received IDs: [ '6' ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ '6' ] userController.getUsernames: Received userIds: [ '6' ] userModel.getUsersByIds: Received IDs: [ '6' ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ '6' ] userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userController.getUsernames: Received userIds: [ '6' ] userModel.getUsersByIds: Received IDs: [ '6' ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ '6' ] userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userController.getUsernames: Received userIds: [ '6' ] userModel.getUsersByIds: Received IDs: [ '6' ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ '6' ] userController.getUsernames: Received userIds: [ '6' ] userModel.getUsersByIds: Received IDs: [ '6' ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ '6' ] userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userController.getUsernames: Received userIds: [ '6' ] userModel.getUsersByIds: Received IDs: [ '6' ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ '6' ] userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userController.getUsernames: Received userIds: [ '6' ] userModel.getUsersByIds: Received IDs: [ '6' ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ '6' ] userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: HZEiht8YRx544Kk3AAHl Socket HZEiht8YRx544Kk3AAHl joined approvals room Socket HZEiht8YRx544Kk3AAHl joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: LS0QrVOIW4Xgiw1ZAAHo New WebSocket connection: TYgbMR-swWBVStNRAAHp WebSocket disconnected: TYgbMR-swWBVStNRAAHp WebSocket disconnected: HZEiht8YRx544Kk3AAHl WebSocket disconnected: LS0QrVOIW4Xgiw1ZAAHo userController.getUsernames: Received userIds: [ '6' ] userModel.getUsersByIds: Received IDs: [ '6' ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ '6' ] userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userController.getUsernames: Received userIds: [ '6' ] userModel.getUsersByIds: Received IDs: [ '6' ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ '6' ] userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userController.getUsernames: Received userIds: [ '6' ] userModel.getUsersByIds: Received IDs: [ '6' ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ '6' ] userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userController.getUsernames: Received userIds: [ '6' ] userModel.getUsersByIds: Received IDs: [ '6' ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ '6' ] userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userController.getUsernames: Received userIds: [ 6 ] userModel.getUsersByIds: Received IDs: [ 6 ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ 6 ] userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userController.getUsernames: Received userIds: [ 7 ] userModel.getUsersByIds: Received IDs: [ 7 ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ 7 ] userModel.getUsersByIds: Query result: [ { id: 7, username: 'cr' } ] userController.getUsernames: Users from model: [ { id: 7, username: 'cr' } ] userController.getUsernames: Usernames map: { '7': 'cr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userController.getUsernames: Received userIds: [ '6' ] userModel.getUsersByIds: Received IDs: [ '6' ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ '6' ] userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userController.getUsernames: Received userIds: [ '6' ] userModel.getUsersByIds: Received IDs: [ '6' ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ '6' ] userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userController.getUsernames: Received userIds: [ '6' ] userModel.getUsersByIds: Received IDs: [ '6' ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ '6' ] userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userController.getUsernames: Received userIds: [ '6' ] userModel.getUsersByIds: Received IDs: [ '6' ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ '6' ] userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userController.getUsernames: Received userIds: [ '6' ] userModel.getUsersByIds: Received IDs: [ '6' ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ '6' ] userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userController.getUsernames: Received userIds: [ 6 ] userModel.getUsersByIds: Received IDs: [ 6 ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ 6 ] userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userController.getUsernames: Received userIds: [ 7 ] userModel.getUsersByIds: Received IDs: [ 7 ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ 7 ] userModel.getUsersByIds: Query result: [ { id: 7, username: 'cr' } ] userController.getUsernames: Users from model: [ { id: 7, username: 'cr' } ] userController.getUsernames: Usernames map: { '7': 'cr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userController.getUsernames: Received userIds: [ '6' ] userModel.getUsersByIds: Received IDs: [ '6' ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ '6' ] userController.getUsernames: Received userIds: [ '6' ] userModel.getUsersByIds: Received IDs: [ '6' ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ '6' ] userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userController.getUsernames: Received userIds: [ '6' ] userModel.getUsersByIds: Received IDs: [ '6' ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ '6' ] userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userController.getUsernames: Received userIds: [ '6' ] userModel.getUsersByIds: Received IDs: [ '6' ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ '6' ] userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userController.getUsernames: Received userIds: [ '6' ] userModel.getUsersByIds: Received IDs: [ '6' ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ '6' ] userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userController.getUsernames: Received userIds: [ '6' ] userModel.getUsersByIds: Received IDs: [ '6' ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ '6' ] userModel.getUsersByIds: Query result: [ { id: 6, username: 'hr' } ] userController.getUsernames: Users from model: [ { id: 6, username: 'hr' } ] userController.getUsernames: Usernames map: { '6': 'hr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userController.getUsernames: Received userIds: [ 7 ] userModel.getUsersByIds: Received IDs: [ 7 ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ 7 ] userModel.getUsersByIds: Query result: [ { id: 7, username: 'cr' } ] userController.getUsernames: Users from model: [ { id: 7, username: 'cr' } ] userController.getUsernames: Usernames map: { '7': 'cr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback userController.getUsernames: Received userIds: [ 7 ] userModel.getUsersByIds: Received IDs: [ 7 ] userModel.getUsersByIds: Executing query: SELECT id, username FROM users WHERE id IN (?) [ 7 ] userModel.getUsersByIds: Query result: [ { id: 7, username: 'cr' } ] userController.getUsernames: Users from model: [ { id: 7, username: 'cr' } ] userController.getUsernames: Usernames map: { '7': 'cr' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Unhandled route: { method: 'POST', path: '/api/auth/logout', headers: { host: 'localhost:3001', connection: 'keep-alive', 'content-length': '2', 'sec-ch-ua-platform': '"macOS"', authorization: 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Niwicm9sZV9pZCI6MSwibW9kdWxlX2lkIjo2LCJzdG9yZV9pZCI6MSwiaWF0IjoxNzYzNDg4MTU5LCJleHAiOjE3NjM1NzQ1NTl9.dOD3x6_l8sSXIYTX2YGuUREK1MRCnRC-I5JQVu3XVvQ', 'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 OPR/122.0.0.0', accept: 'application/json, text/plain, */*', 'sec-ch-ua': '"Not)A;Brand";v="8", "Chromium";v="138", "Opera";v="122"', 'content-type': 'application/json', 'sec-ch-ua-mobile': '?0', origin: 'http://localhost:9000', 'sec-fetch-site': 'same-site', 'sec-fetch-mode': 'cors', 'sec-fetch-dest': 'empty', referer: 'http://localhost:9000/', 'accept-encoding': 'gzip, deflate, br, zstd', 'accept-language': 'en-GB,en-US;q=0.9,en;q=0.8,da;q=0.7' }, body: {} } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: Did8uKGrCpiHMFVXAAHj New WebSocket connection: GlzoGaPC0UIOQwZwAAHr User status details: { is_blocked: 0, module_id: 2, store_id: 1 } Token created for user 2. Expires at: Wed Nov 19 2025 18:51:43 GMT+0100 (West Africa Standard Time) Login successful. Token generated. â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: 6sTBuZaEwKlPZU7hAAHt Unhandled route: { method: 'POST', path: '/api/auth/logout', headers: { host: 'localhost:3001', connection: 'keep-alive', 'content-length': '2', 'sec-ch-ua-platform': '"macOS"', authorization: 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Miwicm9sZV9pZCI6MSwibW9kdWxlX2lkIjoyLCJzdG9yZV9pZCI6MSwiaWF0IjoxNzYzNDg4MzAzLCJleHAiOjE3NjM1NzQ3MDN9.HjooASWQYY0E7g5RrcJRQ5WuJLuDGcrV-KQ852fqmmg', 'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 OPR/122.0.0.0', accept: 'application/json, text/plain, */*', 'sec-ch-ua': '"Not)A;Brand";v="8", "Chromium";v="138", "Opera";v="122"', 'content-type': 'application/json', 'sec-ch-ua-mobile': '?0', origin: 'http://localhost:9000', 'sec-fetch-site': 'same-site', 'sec-fetch-mode': 'cors', 'sec-fetch-dest': 'empty', referer: 'http://localhost:9000/', 'accept-encoding': 'gzip, deflate, br, zstd', 'accept-language': 'en-GB,en-US;q=0.9,en;q=0.8,da;q=0.7' }, body: {} } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: 6sTBuZaEwKlPZU7hAAHt New WebSocket connection: YS_AirqpoWHvUFAdAAHv User status details: { is_blocked: 0, module_id: 5, store_id: 1 } Token created for user 23. Expires at: Wed Nov 19 2025 18:51:56 GMT+0100 (West Africa Standard Time) Login successful. Token generated. â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: i0ndOmpjCFyGs_lXAAHx Unhandled route: { method: 'POST', path: '/api/auth/logout', headers: { host: 'localhost:3001', connection: 'keep-alive', 'content-length': '2', 'sec-ch-ua-platform': '"macOS"', authorization: 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MjMsInJvbGVfaWQiOjEsIm1vZHVsZV9pZCI6NSwic3RvcmVfaWQiOjEsImlhdCI6MTc2MzQ4ODMxNiwiZXhwIjoxNzYzNTc0NzE2fQ.vhSqdv-AUED6kf9NN5ujrsA34gbSEx-kqK1ebSntz7A', 'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 OPR/122.0.0.0', accept: 'application/json, text/plain, */*', 'sec-ch-ua': '"Not)A;Brand";v="8", "Chromium";v="138", "Opera";v="122"', 'content-type': 'application/json', 'sec-ch-ua-mobile': '?0', origin: 'http://localhost:9000', 'sec-fetch-site': 'same-site', 'sec-fetch-mode': 'cors', 'sec-fetch-dest': 'empty', referer: 'http://localhost:9000/', 'accept-encoding': 'gzip, deflate, br, zstd', 'accept-language': 'en-GB,en-US;q=0.9,en;q=0.8,da;q=0.7' }, body: {} } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: i0ndOmpjCFyGs_lXAAHx New WebSocket connection: 2uca9e5qedJ3xoVnAAHz User status details: { is_blocked: 0, module_id: 8, store_id: 1 } Token created for user 7. Expires at: Wed Nov 19 2025 18:52:09 GMT+0100 (West Africa Standard Time) Login successful. Token generated. â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback User status details: { is_blocked: 0, module_id: 2, store_id: 1 } Token created for user 2. Expires at: Wed Nov 19 2025 18:52:45 GMT+0100 (West Africa Standard Time) Login successful. Token generated. â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: amrkj4BCiR6R0xnEAAH1 â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "DELETE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Unhandled route: { method: 'POST', path: '/api/auth/logout', headers: { host: 'localhost:3001', connection: 'keep-alive', 'content-length': '2', 'sec-ch-ua-platform': '"macOS"', authorization: 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Miwicm9sZV9pZCI6MSwibW9kdWxlX2lkIjoyLCJzdG9yZV9pZCI6MSwiaWF0IjoxNzYzNDg4MzY1LCJleHAiOjE3NjM1NzQ3NjV9.J92H6v8ZFmA7WNW9avodnXoOfWxke4m7AOeFp__Ee_I', 'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 OPR/122.0.0.0', accept: 'application/json, text/plain, */*', 'sec-ch-ua': '"Not)A;Brand";v="8", "Chromium";v="138", "Opera";v="122"', 'content-type': 'application/json', 'sec-ch-ua-mobile': '?0', origin: 'http://localhost:9000', 'sec-fetch-site': 'same-site', 'sec-fetch-mode': 'cors', 'sec-fetch-dest': 'empty', referer: 'http://localhost:9000/', 'accept-encoding': 'gzip, deflate, br, zstd', 'accept-language': 'en-GB,en-US;q=0.9,en;q=0.8,da;q=0.7' }, body: {} } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: amrkj4BCiR6R0xnEAAH1 New WebSocket connection: 3YOUuA3cNnW1-qFNAAH3 No user found with email: judge â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback User status details: { is_blocked: 0, module_id: 5, store_id: 1 } Token created for user 23. Expires at: Wed Nov 19 2025 18:54:45 GMT+0100 (West Africa Standard Time) Login successful. Token generated. â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: 0OWhKCPeHZFQtg5pAAH5 WebSocket disconnected: YS_AirqpoWHvUFAdAAHv WebSocket disconnected: GlzoGaPC0UIOQwZwAAHr WebSocket disconnected: hDfw_C-4rc2NBAgzAAHh WebSocket disconnected: 8S8fnoLFtP46m4XKAAHd WebSocket disconnected: 1mK_I0eUE0JOdzd2AAHb WebSocket disconnected: 0OWhKCPeHZFQtg5pAAH5 WebSocket disconnected: 3YOUuA3cNnW1-qFNAAH3 WebSocket disconnected: 2uca9e5qedJ3xoVnAAHz New WebSocket connection: ITpQZnapXVDtlc3uAAH7 Socket ITpQZnapXVDtlc3uAAH7 joined approvals room Socket ITpQZnapXVDtlc3uAAH7 joined procurement room User status details: { is_blocked: 0, module_id: 6, store_id: 1 } Token created for user 6. Expires at: Wed Nov 19 2025 18:55:00 GMT+0100 (West Africa Standard Time) Login successful. Token generated. â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: wGK3e8_7ajFLjuTBAAH- New WebSocket connection: CP__ZPgii_ZO1w55AAH_ WebSocket disconnected: 9kc5VvHzkJS5zVXiAAHJ WebSocket disconnected: 9jVJFTXasbmpygk6AAHM WebSocket disconnected: tlTkKuAgQNg_ITZaAAHN WebSocket disconnected: ITpQZnapXVDtlc3uAAH7 WebSocket disconnected: wGK3e8_7ajFLjuTBAAH- WebSocket disconnected: CP__ZPgii_ZO1w55AAH_ New WebSocket connection: sHAGeX-etCEmJDX8AAIB New WebSocket connection: KTWC8bKkT6ewKVaJAAID New WebSocket connection: 5r6Qne6ahm38onPRAAIF Socket 5r6Qne6ahm38onPRAAIF joined approvals room Socket 5r6Qne6ahm38onPRAAIF joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: r6CWDD1VE9FURegqAAIJ New WebSocket connection: 7nR0QmjlZMIVONtfAAIK Socket r6CWDD1VE9FURegqAAIJ joined approvals room Socket r6CWDD1VE9FURegqAAIJ joined procurement room New WebSocket connection: _HR9qHuB_qiICPR6AAIL WebSocket disconnected: sHAGeX-etCEmJDX8AAIB WebSocket disconnected: 5r6Qne6ahm38onPRAAIF WebSocket disconnected: KTWC8bKkT6ewKVaJAAID New WebSocket connection: 2-KvKjYpAbQnMdwrAAIN Socket 2-KvKjYpAbQnMdwrAAIN joined approvals room Socket 2-KvKjYpAbQnMdwrAAIN joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: 7U5UolfWZovN7VuqAAIQ New WebSocket connection: tKEVFJAa7H6sxTkdAAIR 🔍 MIDDLEWARE EXECUTING for path: /operations/register method: POST 🔍 authHeader: missing fallbackToken: supply-chain-service-token 🔍 Checking fallback token: supply-chain-service-token valid tokens: [ 'internal-service', 'supply-chain-service-token' ] ✅ Valid fallback token found, proceeding 🔍 Set req.serviceToken: { service: 'supply-chain-service', scopes: [ 'ops.register', 'ops.check', 'ops.queue' ] } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: 2-KvKjYpAbQnMdwrAAIN WebSocket disconnected: 7U5UolfWZovN7VuqAAIQ WebSocket disconnected: tKEVFJAa7H6sxTkdAAIR New WebSocket connection: -hoY10WGxxO-hyYHAAIT Socket -hoY10WGxxO-hyYHAAIT joined approvals room Socket -hoY10WGxxO-hyYHAAIT joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: d_lmF9OZee854jxwAAIW New WebSocket connection: LtBMlBnM725Mz5QzAAIX WebSocket disconnected: LtBMlBnM725Mz5QzAAIX WebSocket disconnected: d_lmF9OZee854jxwAAIW WebSocket disconnected: -hoY10WGxxO-hyYHAAIT New WebSocket connection: YVNv6dhRa-AWX7doAAIZ Socket YVNv6dhRa-AWX7doAAIZ joined approvals room Socket YVNv6dhRa-AWX7doAAIZ joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: 2RocfhriWudqTimgAAIc New WebSocket connection: ZAMmxAXs8LX1LKOvAAId Unhandled route: { method: 'POST', path: '/api/auth/logout', headers: { host: 'localhost:3001', connection: 'keep-alive', 'content-length': '2', 'sec-ch-ua-platform': '"macOS"', authorization: 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OCwicm9sZV9pZCI6MSwibW9kdWxlX2lkIjoxLCJzdG9yZV9pZCI6MSwiaWF0IjoxNzYzNDM4OTMzLCJleHAiOjE3NjM1MjUzMzN9.a46QvDtDOkIz89aXWpAYe4HeHqhfC17GW9psPIPjT3E', 'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36', accept: 'application/json, text/plain, */*', 'sec-ch-ua': '"Not)A;Brand";v="8", "Chromium";v="138", "Google Chrome";v="138"', 'content-type': 'application/json', 'sec-ch-ua-mobile': '?0', origin: 'http://localhost:9000', 'sec-fetch-site': 'same-site', 'sec-fetch-mode': 'cors', 'sec-fetch-dest': 'empty', referer: 'http://localhost:9000/', 'accept-encoding': 'gzip, deflate, br, zstd', 'accept-language': 'en-US,en;q=0.9' }, body: {} } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: ZAMmxAXs8LX1LKOvAAId New WebSocket connection: w-MrUdmPKax--AIaAAIf User status details: { is_blocked: 0, module_id: 1, store_id: 1 } Token created for user 8. Expires at: Thu Nov 20 2025 02:36:28 GMT+0100 (West Africa Standard Time) Login successful. Token generated. â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: 0e9bHb9JrSuLkZZ7AAIh 🔍 MIDDLEWARE EXECUTING for path: /operations/check method: POST 🔍 authHeader: missing fallbackToken: supply-chain-service-token 🔍 Checking fallback token: supply-chain-service-token valid tokens: [ 'internal-service', 'supply-chain-service-token' ] ✅ Valid fallback token found, proceeding 🔍 Set req.serviceToken: { service: 'supply-chain-service', scopes: [ 'ops.check' ] } 🔍 checkApprovalRequiredInternal called with: { module: 'supply_chain', operation: 'create_purchase_order' } No condition or payload, defaulting to requiresApproval = true â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 MIDDLEWARE EXECUTING for path: /operations/queue method: POST 🔍 authHeader: missing fallbackToken: supply-chain-service-token 🔍 Checking fallback token: supply-chain-service-token valid tokens: [ 'internal-service', 'supply-chain-service-token' ] ✅ Valid fallback token found, proceeding 🔍 Set req.serviceToken: { service: 'supply-chain-service', scopes: [ 'ops.queue' ] } 🔍 checkApprovalRequiredInternal called with: { module: 'supply_chain', operation: 'create_purchase_order' } No condition or payload, defaulting to requiresApproval = true Error logging system action: Error: Column 'step_id' cannot be null at PromisePool.query (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:36:22) at logSystemAction (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:33:18) at queueOperation (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:1417:23) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) { code: 'ER_BAD_NULL_ERROR', errno: 1048, sql: 'INSERT INTO approval_actions (request_id, step_id, actor_id, actor_name, action, comment)\n' + " VALUES (99, NULL, 0, 'System', 'request_created', 'Approval request created for supply_chain - create_purchase_order')", sqlState: '23000', sqlMessage: "Column 'step_id' cannot be null" } 🔍 initializeFirstStep called with requestId: 99 workflowId: 1 🔍 firstStep result: [ { id: 42, workflow_id: 1, step_order: 1, mode: 'serial', quorum: 3, assignees: [ [Object], [Object], [Object] ], sla_minutes: 1440, created_at: 2025-11-18T01:46:50.000Z, updated_at: 2025-11-18T01:46:50.000Z } ] 🔍 Found step: 42 🔍 Step progress inserted, result: ResultSetHeader { fieldCount: 0, affectedRows: 1, insertId: 148, info: '', serverStatus: 2, warningStatus: 0, changedRows: 0 } đŸ“Ŧ Workflow notification sent to user 8: approval_needed đŸ“Ŧ Workflow notification sent to user 4: approval_needed đŸ“Ŧ Workflow notification sent to user 2: approval_needed 📡 Emitted new_approval_request to room approvals: { requestId: 99, workflowId: 1, title: 'Supply Chain - Create Purchase Order', module: 'supply_chain', operation: 'create_purchase_order', requesterId: '8', requesterName: 'head supply', resourceRef: 'SUPPLY_CHAIN-CREATE_PURCHASE_ORDER-1763516786071', correlationId: 'SC-PO-1763516786071', timestamp: '2025-11-19T01:46:26.143Z' } Failed to create workflow notification: Error: Incorrect integer value: 'supply-chain-service' for column 'user_id' at row 1 at PromisePool.query (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:36:22) at Object.createNotification (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/services/notificationService.js:5:31) at notifyWorkflowEvent (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:112:35) at queueOperation (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:1437:27) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) { code: 'ER_TRUNCATED_WRONG_VALUE_FOR_FIELD', errno: 1366, sql: 'INSERT INTO notifications (user_id, title, message, link, type, priority, icon, source_module, payload)\n' + ` VALUES ('supply-chain-service', 'New Approval Request', 'supply_chain - create_purchase_order: Supply Chain - Create Purchase Order', '/dashboard/pending-approvals', 'info', 'normal', 'assignment', 'workflow', '{\\"requestId\\":99,\\"title\\":\\"Supply Chain - Create Purchase Order\\",\\"module\\":\\"supply_chain\\",\\"operation\\":\\"create_purchase_order\\"}')`, sqlState: 'HY000', sqlMessage: "Incorrect integer value: 'supply-chain-service' for column 'user_id' at row 1" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "DELETE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: 0e9bHb9JrSuLkZZ7AAIh WebSocket disconnected: w-MrUdmPKax--AIaAAIf WebSocket disconnected: 2RocfhriWudqTimgAAIc WebSocket disconnected: YVNv6dhRa-AWX7doAAIZ New WebSocket connection: hch4pWRh_94Gvz2gAAIj Socket hch4pWRh_94Gvz2gAAIj joined approvals room Socket hch4pWRh_94Gvz2gAAIj joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: BsgF4tEcYB0J0b6LAAIm New WebSocket connection: -LqtS0n70IE5ypJ8AAIn â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 MIDDLEWARE EXECUTING for path: /operations/check method: POST 🔍 authHeader: missing fallbackToken: supply-chain-service-token 🔍 Checking fallback token: supply-chain-service-token valid tokens: [ 'internal-service', 'supply-chain-service-token' ] ✅ Valid fallback token found, proceeding 🔍 Set req.serviceToken: { service: 'supply-chain-service', scopes: [ 'ops.check' ] } 🔍 checkApprovalRequiredInternal called with: { module: 'supply_chain', operation: 'create_purchase_order' } No condition or payload, defaulting to requiresApproval = true â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 MIDDLEWARE EXECUTING for path: /operations/queue method: POST 🔍 authHeader: missing fallbackToken: supply-chain-service-token 🔍 Checking fallback token: supply-chain-service-token valid tokens: [ 'internal-service', 'supply-chain-service-token' ] ✅ Valid fallback token found, proceeding 🔍 Set req.serviceToken: { service: 'supply-chain-service', scopes: [ 'ops.queue' ] } 🔍 checkApprovalRequiredInternal called with: { module: 'supply_chain', operation: 'create_purchase_order' } No condition or payload, defaulting to requiresApproval = true Error logging system action: Error: Column 'step_id' cannot be null at PromisePool.query (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:36:22) at logSystemAction (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:33:18) at queueOperation (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:1417:23) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) { code: 'ER_BAD_NULL_ERROR', errno: 1048, sql: 'INSERT INTO approval_actions (request_id, step_id, actor_id, actor_name, action, comment)\n' + " VALUES (100, NULL, 0, 'System', 'request_created', 'Approval request created for supply_chain - create_purchase_order')", sqlState: '23000', sqlMessage: "Column 'step_id' cannot be null" } 🔍 initializeFirstStep called with requestId: 100 workflowId: 1 🔍 firstStep result: [ { id: 42, workflow_id: 1, step_order: 1, mode: 'serial', quorum: 3, assignees: [ [Object], [Object], [Object] ], sla_minutes: 1440, created_at: 2025-11-18T01:46:50.000Z, updated_at: 2025-11-18T01:46:50.000Z } ] 🔍 Found step: 42 🔍 Step progress inserted, result: ResultSetHeader { fieldCount: 0, affectedRows: 1, insertId: 149, info: '', serverStatus: 2, warningStatus: 0, changedRows: 0 } đŸ“Ŧ Workflow notification sent to user 8: approval_needed đŸ“Ŧ Workflow notification sent to user 4: approval_needed đŸ“Ŧ Workflow notification sent to user 2: approval_needed 📡 Emitted new_approval_request to room approvals: { requestId: 100, workflowId: 1, title: 'Supply Chain - Create Purchase Order', module: 'supply_chain', operation: 'create_purchase_order', requesterId: '8', requesterName: 'head supply', resourceRef: 'SUPPLY_CHAIN-CREATE_PURCHASE_ORDER-1763517203680', correlationId: 'SC-PO-1763517203680', timestamp: '2025-11-19T01:53:23.731Z' } Failed to create workflow notification: Error: Incorrect integer value: 'supply-chain-service' for column 'user_id' at row 1 at PromisePool.query (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:36:22) at Object.createNotification (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/services/notificationService.js:5:31) at notifyWorkflowEvent (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:112:35) at queueOperation (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:1437:27) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) { code: 'ER_TRUNCATED_WRONG_VALUE_FOR_FIELD', errno: 1366, sql: 'INSERT INTO notifications (user_id, title, message, link, type, priority, icon, source_module, payload)\n' + ` VALUES ('supply-chain-service', 'New Approval Request', 'supply_chain - create_purchase_order: Supply Chain - Create Purchase Order', '/dashboard/pending-approvals', 'info', 'normal', 'assignment', 'workflow', '{\\"requestId\\":100,\\"title\\":\\"Supply Chain - Create Purchase Order\\",\\"module\\":\\"supply_chain\\",\\"operation\\":\\"create_purchase_order\\"}')`, sqlState: 'HY000', sqlMessage: "Incorrect integer value: 'supply-chain-service' for column 'user_id' at row 1" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "DELETE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 MIDDLEWARE EXECUTING for path: /operations/register method: POST 🔍 authHeader: missing fallbackToken: supply-chain-service-token 🔍 Checking fallback token: supply-chain-service-token valid tokens: [ 'internal-service', 'supply-chain-service-token' ] ✅ Valid fallback token found, proceeding 🔍 Set req.serviceToken: { service: 'supply-chain-service', scopes: [ 'ops.register', 'ops.check', 'ops.queue' ] } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 MIDDLEWARE EXECUTING for path: /operations/register method: POST 🔍 authHeader: missing fallbackToken: supply-chain-service-token 🔍 Checking fallback token: supply-chain-service-token valid tokens: [ 'internal-service', 'supply-chain-service-token' ] ✅ Valid fallback token found, proceeding 🔍 Set req.serviceToken: { service: 'supply-chain-service', scopes: [ 'ops.register', 'ops.check', 'ops.queue' ] } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 MIDDLEWARE EXECUTING for path: /operations/register method: POST 🔍 authHeader: missing fallbackToken: supply-chain-service-token 🔍 Checking fallback token: supply-chain-service-token valid tokens: [ 'internal-service', 'supply-chain-service-token' ] ✅ Valid fallback token found, proceeding 🔍 Set req.serviceToken: { service: 'supply-chain-service', scopes: [ 'ops.register', 'ops.check', 'ops.queue' ] } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 MIDDLEWARE EXECUTING for path: /operations/register method: POST 🔍 authHeader: missing fallbackToken: supply-chain-service-token 🔍 Checking fallback token: supply-chain-service-token valid tokens: [ 'internal-service', 'supply-chain-service-token' ] ✅ Valid fallback token found, proceeding 🔍 Set req.serviceToken: { service: 'supply-chain-service', scopes: [ 'ops.register', 'ops.check', 'ops.queue' ] } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 📡 Emitted request_approved to room approvals: { requestId: '99', stepId: 42, approverId: '8', approverName: 'head supply', comment: undefined, timestamp: '2025-11-19T01:57:58.420Z' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: _HR9qHuB_qiICPR6AAIL WebSocket disconnected: 7nR0QmjlZMIVONtfAAIK WebSocket disconnected: r6CWDD1VE9FURegqAAIJ â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: 7t80Xc86eRicvVomAAIr New WebSocket connection: aq06RRtzXW8Mkt-vAAIs Socket 7t80Xc86eRicvVomAAIr joined approvals room Socket 7t80Xc86eRicvVomAAIr joined procurement room New WebSocket connection: IjmYxw4Cl_zv5WTHAAIt â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Unhandled route: { method: 'POST', path: '/api/auth/logout', headers: { host: 'localhost:3001', connection: 'keep-alive', 'content-length': '2', 'sec-ch-ua-platform': '"macOS"', authorization: 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Niwicm9sZV9pZCI6MSwibW9kdWxlX2lkIjo2LCJzdG9yZV9pZCI6MSwiaWF0IjoxNzYzNDg4NTAwLCJleHAiOjE3NjM1NzQ5MDB9.p4_s3eq8qS4nARhKH-avYrNmBYG9YgYJN-QijpobfB8', 'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 OPR/122.0.0.0', accept: 'application/json, text/plain, */*', 'sec-ch-ua': '"Not)A;Brand";v="8", "Chromium";v="138", "Opera";v="122"', 'content-type': 'application/json', 'sec-ch-ua-mobile': '?0', origin: 'http://localhost:9000', 'sec-fetch-site': 'same-site', 'sec-fetch-mode': 'cors', 'sec-fetch-dest': 'empty', referer: 'http://localhost:9000/', 'accept-encoding': 'gzip, deflate, br, zstd', 'accept-language': 'en-GB,en-US;q=0.9,en;q=0.8,da;q=0.7' }, body: {} } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: IjmYxw4Cl_zv5WTHAAIt New WebSocket connection: ZAWhhvfCAsBLk7URAAIv User status details: { is_blocked: 0, module_id: 4, store_id: 1 } Token created for user 4. Expires at: Thu Nov 20 2025 02:59:04 GMT+0100 (West Africa Standard Time) Login successful. Token generated. â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: psIpPYDnWHyWEAaGAAIx â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: 7t80Xc86eRicvVomAAIr WebSocket disconnected: aq06RRtzXW8Mkt-vAAIs WebSocket disconnected: psIpPYDnWHyWEAaGAAIx WebSocket disconnected: ZAWhhvfCAsBLk7URAAIv New WebSocket connection: l1ljL4B4n-mjWGB0AAIz Socket l1ljL4B4n-mjWGB0AAIz joined approvals room Socket l1ljL4B4n-mjWGB0AAIz joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users New WebSocket connection: Zd12i0QgVTCw9R9dAAI1 â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: a6zy0H-uOEpFjHVXAAI3 Unhandled route: { method: 'POST', path: '/api/auth/logout', headers: { host: 'localhost:3001', connection: 'keep-alive', 'content-length': '2', 'sec-ch-ua-platform': '"macOS"', authorization: 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NCwicm9sZV9pZCI6MSwibW9kdWxlX2lkIjo0LCJzdG9yZV9pZCI6MSwiaWF0IjoxNzYzNTE3NTQ0LCJleHAiOjE3NjM2MDM5NDR9.zulz4hIetL6cFzWaTdrMNJK1Xt-YlMx756RhkBjbMKc', 'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 OPR/122.0.0.0', accept: 'application/json, text/plain, */*', 'sec-ch-ua': '"Not)A;Brand";v="8", "Chromium";v="138", "Opera";v="122"', 'content-type': 'application/json', 'sec-ch-ua-mobile': '?0', origin: 'http://localhost:9000', 'sec-fetch-site': 'same-site', 'sec-fetch-mode': 'cors', 'sec-fetch-dest': 'empty', referer: 'http://localhost:9000/', 'accept-encoding': 'gzip, deflate, br, zstd', 'accept-language': 'en-GB,en-US;q=0.9,en;q=0.8,da;q=0.7' }, body: {} } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: a6zy0H-uOEpFjHVXAAI3 New WebSocket connection: KNv0cHi0Ia4BDg7cAAI5 User status details: { is_blocked: 0, module_id: 2, store_id: 1 } Token created for user 2. Expires at: Thu Nov 20 2025 02:59:22 GMT+0100 (West Africa Standard Time) Login successful. Token generated. â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: LZMvitJX05meZe4gAAI7 â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: LZMvitJX05meZe4gAAI7 WebSocket disconnected: KNv0cHi0Ia4BDg7cAAI5 WebSocket disconnected: Zd12i0QgVTCw9R9dAAI1 WebSocket disconnected: l1ljL4B4n-mjWGB0AAIz â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: m-w1SstgoiAgjmmZAAI_ New WebSocket connection: ihk6dzSgz9sUnFlcAAJA Socket m-w1SstgoiAgjmmZAAI_ joined approvals room Socket m-w1SstgoiAgjmmZAAI_ joined procurement room New WebSocket connection: xpTU9R-RGOBHMZz6AAJB JWT verification error: jwt expired â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback JWT verification error: jwt expired â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback JWT verification error: jwt expired â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback JWT verification error: jwt expired â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: NqUS54hIKPvHd9MYAAJF New WebSocket connection: bRzwYR6aFO47oSWdAAJG New WebSocket connection: HrlI4rRZtXCZjbY_AAJH Socket NqUS54hIKPvHd9MYAAJF joined approvals room Socket NqUS54hIKPvHd9MYAAJF joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 📡 Emitted request_approved to room approvals: { requestId: '99', stepId: 42, approverId: '4', approverName: 'head accounts', comment: undefined, timestamp: '2025-11-19T01:59:52.474Z' } đŸ“Ŧ Workflow notification sent to user 8: request_approved â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: HrlI4rRZtXCZjbY_AAJH New WebSocket connection: K3bywFicQIxdId8cAAJJ User status details: { is_blocked: 0, module_id: 4, store_id: 1 } Token created for user 4. Expires at: Thu Nov 20 2025 03:00:20 GMT+0100 (West Africa Standard Time) Login successful. Token generated. â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: YmzqJ3F-ITt5YUG9AAJL â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error logging system action: Error: Data truncated for column 'action' at row 1 at PromisePool.query (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:36:22) at logSystemAction (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:33:18) at WorkflowController.updateStepProgress (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:2346:19) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async WorkflowController.approveRequest (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:2165:34) { code: 'WARN_DATA_TRUNCATED', errno: 1265, sql: 'INSERT INTO approval_actions (request_id, step_id, actor_id, actor_name, action, comment)\n' + " VALUES ('99', 42, 0, 'System', 'step_completed', 'Step 1 completed with 3 approval(s)')", sqlState: '01000', sqlMessage: "Data truncated for column 'action' at row 1" } Error logging system action: Error: Column 'step_id' cannot be null at PromisePool.query (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:36:22) at logSystemAction (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:33:18) at WorkflowController.finalizeApprovedRequest (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:2412:15) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async WorkflowController.approveRequest (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:2171:21) { code: 'ER_BAD_NULL_ERROR', errno: 1048, sql: 'INSERT INTO approval_actions (request_id, step_id, actor_id, actor_name, action, comment)\n' + " VALUES ('99', NULL, 0, 'System', 'workflow_completed', 'Workflow approved and completed')", sqlState: '23000', sqlMessage: "Column 'step_id' cannot be null" } 📡 EXECUTING CALLBACK: http://localhost:3003/api/purchase-orders/callbacks/approval for request 99 🔐 Added webhook signature header for request 99 🔍 MIDDLEWARE EXECUTING for path: /emit-event method: POST 🔍 authHeader: missing fallbackToken: supply-chain-service-token 🔍 Checking fallback token: supply-chain-service-token valid tokens: [ 'internal-service', 'supply-chain-service-token' ] ✅ Valid fallback token found, proceeding 🔍 Set req.serviceToken: { service: 'supply-chain-service', scopes: [ 'ops.register', 'ops.check', 'ops.queue' ] } 📡 Emitted purchase_order_approved to room procurement: { purchaseOrderId: 115, orderKey: 'PO3153', requestId: 99, supplierId: { code: 'CRT855', email: 'supplier_CRT855@email.com', label: 'YUSUF MUHAMMED MARABA', phone: '0800000855', value: 4621 }, branchId: 1, approvedBy: 'system', timestamp: '2025-11-19T02:00:47.706Z' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback đŸ“Ŧ Workflow notification sent to user 8: workflow_completed 📡 Emitted request_approved to room approvals: { requestId: '99', stepId: 42, approverId: '2', approverName: 'head of operation', comment: undefined, timestamp: '2025-11-19T02:00:47.956Z' } đŸ“Ŧ Workflow notification sent to user 8: request_approved â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 MIDDLEWARE EXECUTING for path: /operations/check method: POST 🔍 authHeader: missing fallbackToken: supply-chain-service-token 🔍 Checking fallback token: supply-chain-service-token valid tokens: [ 'internal-service', 'supply-chain-service-token' ] ✅ Valid fallback token found, proceeding 🔍 Set req.serviceToken: { service: 'supply-chain-service', scopes: [ 'ops.check' ] } 🔍 checkApprovalRequiredInternal called with: { module: 'supply_chain', operation: 'create_purchase_order' } No condition or payload, defaulting to requiresApproval = true â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 MIDDLEWARE EXECUTING for path: /operations/queue method: POST 🔍 authHeader: missing fallbackToken: supply-chain-service-token 🔍 Checking fallback token: supply-chain-service-token valid tokens: [ 'internal-service', 'supply-chain-service-token' ] ✅ Valid fallback token found, proceeding 🔍 Set req.serviceToken: { service: 'supply-chain-service', scopes: [ 'ops.queue' ] } 🔍 checkApprovalRequiredInternal called with: { module: 'supply_chain', operation: 'create_purchase_order' } No condition or payload, defaulting to requiresApproval = true Error logging system action: Error: Column 'step_id' cannot be null at PromisePool.query (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:36:22) at logSystemAction (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:33:18) at queueOperation (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:1417:23) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) { code: 'ER_BAD_NULL_ERROR', errno: 1048, sql: 'INSERT INTO approval_actions (request_id, step_id, actor_id, actor_name, action, comment)\n' + " VALUES (101, NULL, 0, 'System', 'request_created', 'Approval request created for supply_chain - create_purchase_order')", sqlState: '23000', sqlMessage: "Column 'step_id' cannot be null" } 🔍 initializeFirstStep called with requestId: 101 workflowId: 1 🔍 firstStep result: [ { id: 42, workflow_id: 1, step_order: 1, mode: 'serial', quorum: 3, assignees: [ [Object], [Object], [Object] ], sla_minutes: 1440, created_at: 2025-11-18T01:46:50.000Z, updated_at: 2025-11-18T01:46:50.000Z } ] 🔍 Found step: 42 🔍 Step progress inserted, result: ResultSetHeader { fieldCount: 0, affectedRows: 1, insertId: 150, info: '', serverStatus: 2, warningStatus: 0, changedRows: 0 } đŸ“Ŧ Workflow notification sent to user 8: approval_needed đŸ“Ŧ Workflow notification sent to user 4: approval_needed đŸ“Ŧ Workflow notification sent to user 2: approval_needed 📡 Emitted new_approval_request to room approvals: { requestId: 101, workflowId: 1, title: 'Supply Chain - Create Purchase Order', module: 'supply_chain', operation: 'create_purchase_order', requesterId: '8', requesterName: 'head supply', resourceRef: 'SUPPLY_CHAIN-CREATE_PURCHASE_ORDER-1763517700658', correlationId: 'SC-PO-1763517700658', timestamp: '2025-11-19T02:01:40.782Z' } Failed to create workflow notification: Error: Incorrect integer value: 'supply-chain-service' for column 'user_id' at row 1 at PromisePool.query (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:36:22) at Object.createNotification (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/services/notificationService.js:5:31) at notifyWorkflowEvent (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:112:35) at queueOperation (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:1437:27) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) { code: 'ER_TRUNCATED_WRONG_VALUE_FOR_FIELD', errno: 1366, sql: 'INSERT INTO notifications (user_id, title, message, link, type, priority, icon, source_module, payload)\n' + ` VALUES ('supply-chain-service', 'New Approval Request', 'supply_chain - create_purchase_order: Supply Chain - Create Purchase Order', '/dashboard/pending-approvals', 'info', 'normal', 'assignment', 'workflow', '{\\"requestId\\":101,\\"title\\":\\"Supply Chain - Create Purchase Order\\",\\"module\\":\\"supply_chain\\",\\"operation\\":\\"create_purchase_order\\"}')`, sqlState: 'HY000', sqlMessage: "Incorrect integer value: 'supply-chain-service' for column 'user_id' at row 1" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: hch4pWRh_94Gvz2gAAIj WebSocket disconnected: -LqtS0n70IE5ypJ8AAIn WebSocket disconnected: BsgF4tEcYB0J0b6LAAIm New WebSocket connection: vTbmqckYsOPMQ9ejAAJN Socket vTbmqckYsOPMQ9ejAAJN joined approvals room Socket vTbmqckYsOPMQ9ejAAJN joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: ZopXFJMtIQa90JvtAAJP New WebSocket connection: rf0k3-uyjWDM4U-0AAJR â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 📡 Emitted request_approved to room approvals: { requestId: '101', stepId: 42, approverId: '8', approverName: 'head supply', comment: undefined, timestamp: '2025-11-19T02:02:06.109Z' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: m-w1SstgoiAgjmmZAAI_ WebSocket disconnected: ihk6dzSgz9sUnFlcAAJA WebSocket disconnected: xpTU9R-RGOBHMZz6AAJB New WebSocket connection: SPmsAR14tOkbhKn5AAJT Socket SPmsAR14tOkbhKn5AAJT joined approvals room Socket SPmsAR14tOkbhKn5AAJT joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: RVtJTtx3B654mYoUAAJW New WebSocket connection: eTc09DTw7qShViJLAAJX â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 📡 Emitted request_approved to room approvals: { requestId: '101', stepId: 42, approverId: '4', approverName: 'head accounts', comment: undefined, timestamp: '2025-11-19T02:02:19.555Z' } đŸ“Ŧ Workflow notification sent to user 8: request_approved â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error logging system action: Error: Data truncated for column 'action' at row 1 at PromisePool.query (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:36:22) at logSystemAction (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:33:18) at WorkflowController.updateStepProgress (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:2346:19) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async WorkflowController.approveRequest (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:2165:34) { code: 'WARN_DATA_TRUNCATED', errno: 1265, sql: 'INSERT INTO approval_actions (request_id, step_id, actor_id, actor_name, action, comment)\n' + " VALUES ('101', 42, 0, 'System', 'step_completed', 'Step 1 completed with 3 approval(s)')", sqlState: '01000', sqlMessage: "Data truncated for column 'action' at row 1" } Error logging system action: Error: Column 'step_id' cannot be null at PromisePool.query (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:36:22) at logSystemAction (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:33:18) at WorkflowController.finalizeApprovedRequest (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:2412:15) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async WorkflowController.approveRequest (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:2171:21) { code: 'ER_BAD_NULL_ERROR', errno: 1048, sql: 'INSERT INTO approval_actions (request_id, step_id, actor_id, actor_name, action, comment)\n' + " VALUES ('101', NULL, 0, 'System', 'workflow_completed', 'Workflow approved and completed')", sqlState: '23000', sqlMessage: "Column 'step_id' cannot be null" } 📡 EXECUTING CALLBACK: http://localhost:3003/api/purchase-orders/callbacks/approval for request 101 🔐 Added webhook signature header for request 101 🔍 MIDDLEWARE EXECUTING for path: /emit-event method: POST 🔍 authHeader: missing fallbackToken: supply-chain-service-token 🔍 Checking fallback token: supply-chain-service-token valid tokens: [ 'internal-service', 'supply-chain-service-token' ] ✅ Valid fallback token found, proceeding 🔍 Set req.serviceToken: { service: 'supply-chain-service', scopes: [ 'ops.register', 'ops.check', 'ops.queue' ] } 📡 Emitted purchase_order_approved to room procurement: { purchaseOrderId: 116, orderKey: 'PO6809', requestId: 101, supplierId: 4634, branchId: 1, approvedBy: 'system', timestamp: '2025-11-19T02:02:22.834Z' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback đŸ“Ŧ Workflow notification sent to user 8: workflow_completed 📡 Emitted request_approved to room approvals: { requestId: '101', stepId: 42, approverId: '2', approverName: 'head of operation', comment: undefined, timestamp: '2025-11-19T02:02:22.966Z' } đŸ“Ŧ Workflow notification sent to user 8: request_approved â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: eTc09DTw7qShViJLAAJX â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: K7bMg2fVVQ1EzeXSAAJZ WebSocket disconnected: rf0k3-uyjWDM4U-0AAJR â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: DykmKSlfY-pMI9yQAAJb New WebSocket connection: L_ZOtPDjuvD4ndp0AAJd New WebSocket connection: 7R4vwZQHxMKDLGvdAAJf New WebSocket connection: lp7GFN8p073-hKMIAAJi New WebSocket connection: TQftpV7dRSvKr2VkAAJj WebSocket disconnected: YmzqJ3F-ITt5YUG9AAJL â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: VD7pRlrfLayEe2jhAAJl New WebSocket connection: 6bI6O1K0JafX4_iMAAJo New WebSocket connection: 58U84jwhNUSjT1wKAAJp WebSocket disconnected: K7bMg2fVVQ1EzeXSAAJZ WebSocket disconnected: RVtJTtx3B654mYoUAAJW WebSocket disconnected: SPmsAR14tOkbhKn5AAJT WebSocket disconnected: L_ZOtPDjuvD4ndp0AAJd WebSocket disconnected: DykmKSlfY-pMI9yQAAJb New WebSocket connection: 8MK_KJBqIEJD68yIAAJr Socket 8MK_KJBqIEJD68yIAAJr joined approvals room Socket 8MK_KJBqIEJD68yIAAJr joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: 2VfmauqUr8KNuFsdAAJu New WebSocket connection: dV8kFko4Wr4AT23JAAJv WebSocket disconnected: 8MK_KJBqIEJD68yIAAJr WebSocket disconnected: dV8kFko4Wr4AT23JAAJv WebSocket disconnected: 2VfmauqUr8KNuFsdAAJu â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: _5u_-EDQe3l5dHWjAAJz New WebSocket connection: 7HXWCoLXEYKdL_BcAAJ0 Socket _5u_-EDQe3l5dHWjAAJz joined approvals room Socket _5u_-EDQe3l5dHWjAAJz joined procurement room New WebSocket connection: 80ROSTRwrVSlhAfrAAJ1 â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: _5u_-EDQe3l5dHWjAAJz WebSocket disconnected: 80ROSTRwrVSlhAfrAAJ1 WebSocket disconnected: 7HXWCoLXEYKdL_BcAAJ0 â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: cLsyK998BOOziB7iAAJ5 New WebSocket connection: Tvc8dlwGvEw4tIUGAAJ6 Socket cLsyK998BOOziB7iAAJ5 joined approvals room Socket cLsyK998BOOziB7iAAJ5 joined procurement room New WebSocket connection: 4aYsZCDpHv7AX3bEAAJ7 â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Unhandled route: { method: 'POST', path: '/api/auth/logout', headers: { host: 'localhost:3001', connection: 'keep-alive', 'content-length': '2', 'sec-ch-ua-platform': '"macOS"', authorization: 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Miwicm9sZV9pZCI6MSwibW9kdWxlX2lkIjoyLCJzdG9yZV9pZCI6MSwiaWF0IjoxNzYzNTE3NTYyLCJleHAiOjE3NjM2MDM5NjJ9.QWZVgZSFIW3Id_xZqBii_LaXAvF5sDGV3B9XhR14ehM', 'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 OPR/122.0.0.0', accept: 'application/json, text/plain, */*', 'sec-ch-ua': '"Not)A;Brand";v="8", "Chromium";v="138", "Opera";v="122"', 'content-type': 'application/json', 'sec-ch-ua-mobile': '?0', origin: 'http://localhost:9000', 'sec-fetch-site': 'same-site', 'sec-fetch-mode': 'cors', 'sec-fetch-dest': 'empty', referer: 'http://localhost:9000/', 'accept-encoding': 'gzip, deflate, br, zstd', 'accept-language': 'en-GB,en-US;q=0.9,en;q=0.8,da;q=0.7' }, body: {} } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: 4aYsZCDpHv7AX3bEAAJ7 New WebSocket connection: SoNCYsu3ZW6flhmwAAJ9 User status details: { is_blocked: 0, module_id: 2, store_id: 1 } Token created for user 2. Expires at: Thu Nov 20 2025 03:07:18 GMT+0100 (West Africa Standard Time) Login successful. Token generated. â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: K-yubBxezH0LykR7AAJ_ 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Unhandled route: { method: 'POST', path: '/api/auth/logout', headers: { host: 'localhost:3001', connection: 'keep-alive', 'content-length': '2', 'sec-ch-ua-platform': '"macOS"', authorization: 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Miwicm9sZV9pZCI6MSwibW9kdWxlX2lkIjoyLCJzdG9yZV9pZCI6MSwiaWF0IjoxNzYzNTE4MDM4LCJleHAiOjE3NjM2MDQ0Mzh9.3EsyJQSH9oKcMqCe7UkkKQDqP6u8vOg2insBQ0MVQEI', 'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 OPR/122.0.0.0', accept: 'application/json, text/plain, */*', 'sec-ch-ua': '"Not)A;Brand";v="8", "Chromium";v="138", "Opera";v="122"', 'content-type': 'application/json', 'sec-ch-ua-mobile': '?0', origin: 'http://localhost:9000', 'sec-fetch-site': 'same-site', 'sec-fetch-mode': 'cors', 'sec-fetch-dest': 'empty', referer: 'http://localhost:9000/', 'accept-encoding': 'gzip, deflate, br, zstd', 'accept-language': 'en-GB,en-US;q=0.9,en;q=0.8,da;q=0.7' }, body: {} } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: K-yubBxezH0LykR7AAJ_ New WebSocket connection: VOOp8TO4g5M2bJOEAAKB User status details: { is_blocked: 0, module_id: 2, store_id: 1 } Token created for user 2. Expires at: Thu Nov 20 2025 03:08:24 GMT+0100 (West Africa Standard Time) Login successful. Token generated. â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: Ol5AhdBIYJm5T4r3AAKD â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Unhandled route: { method: 'POST', path: '/api/auth/logout', headers: { host: 'localhost:3001', connection: 'keep-alive', 'content-length': '2', 'sec-ch-ua-platform': '"macOS"', authorization: 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Miwicm9sZV9pZCI6MSwibW9kdWxlX2lkIjoyLCJzdG9yZV9pZCI6MSwiaWF0IjoxNzYzNTE4MTA0LCJleHAiOjE3NjM2MDQ1MDR9.8f3JyV5hTEgmgapisnch7pixM1fqKPQYlN0JbMgCH9E', 'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 OPR/122.0.0.0', accept: 'application/json, text/plain, */*', 'sec-ch-ua': '"Not)A;Brand";v="8", "Chromium";v="138", "Opera";v="122"', 'content-type': 'application/json', 'sec-ch-ua-mobile': '?0', origin: 'http://localhost:9000', 'sec-fetch-site': 'same-site', 'sec-fetch-mode': 'cors', 'sec-fetch-dest': 'empty', referer: 'http://localhost:9000/', 'accept-encoding': 'gzip, deflate, br, zstd', 'accept-language': 'en-GB,en-US;q=0.9,en;q=0.8,da;q=0.7' }, body: {} } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: Ol5AhdBIYJm5T4r3AAKD New WebSocket connection: SVolsNhUmoLmAQRfAAKF User status details: { is_blocked: 0, module_id: 1, store_id: 1 } Token created for user 8. Expires at: Thu Nov 20 2025 03:08:40 GMT+0100 (West Africa Standard Time) Login successful. Token generated. â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: VQXROA3Bwa7OXSfIAAKH â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Unhandled route: { method: 'POST', path: '/api/auth/logout', headers: { host: 'localhost:3001', connection: 'keep-alive', 'content-length': '2', 'sec-ch-ua-platform': '"macOS"', authorization: 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OCwicm9sZV9pZCI6MSwibW9kdWxlX2lkIjoxLCJzdG9yZV9pZCI6MSwiaWF0IjoxNzYzNTE4MTIwLCJleHAiOjE3NjM2MDQ1MjB9.lYgeTA229jUborl7uKbNL74gGaFJ7VDvRL_nhG37TM8', 'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 OPR/122.0.0.0', accept: 'application/json, text/plain, */*', 'sec-ch-ua': '"Not)A;Brand";v="8", "Chromium";v="138", "Opera";v="122"', 'content-type': 'application/json', 'sec-ch-ua-mobile': '?0', origin: 'http://localhost:9000', 'sec-fetch-site': 'same-site', 'sec-fetch-mode': 'cors', 'sec-fetch-dest': 'empty', referer: 'http://localhost:9000/', 'accept-encoding': 'gzip, deflate, br, zstd', 'accept-language': 'en-GB,en-US;q=0.9,en;q=0.8,da;q=0.7' }, body: {} } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: VQXROA3Bwa7OXSfIAAKH New WebSocket connection: LAJMgnW_pK6SdYr4AAKJ User status details: { is_blocked: 0, module_id: 4, store_id: 1 } Token created for user 4. Expires at: Thu Nov 20 2025 03:08:50 GMT+0100 (West Africa Standard Time) Login successful. Token generated. â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: 1XtO6cb0yTU5nsPjAAKL 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: 7R4vwZQHxMKDLGvdAAJf WebSocket disconnected: 1XtO6cb0yTU5nsPjAAKL â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: 8crpcOcVUPybwGGJAAKQ New WebSocket connection: ElTcoTjLh60JK9FoAAKR New WebSocket connection: wPGrDp2RBOgMXNyrAAKS New WebSocket connection: gMVlqRkA-71PnavYAAKT New WebSocket connection: DYeT9LpEdYgd6H01AAKV New WebSocket connection: rWBuJnQMSi6d5dhkAAKX WebSocket disconnected: VD7pRlrfLayEe2jhAAJl â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: WOtnVldTuX_b6fvYAAKZ New WebSocket connection: flU71ExmhyRbqbZSAAKc New WebSocket connection: MkUKKEvh0gfUsWL3AAKd WebSocket disconnected: WOtnVldTuX_b6fvYAAKZ â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: gMVlqRkA-71PnavYAAKT WebSocket disconnected: 8crpcOcVUPybwGGJAAKQ â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: T-Bil461MyOrid8rAAKh New WebSocket connection: SzKP_cAQlBNo4_ntAAKk New WebSocket connection: vOawggafqi4-BuUnAAKl New WebSocket connection: Jii1irbsghLoEq1lAAKm New WebSocket connection: oICLpjIEcyQS2k9AAAKo New WebSocket connection: t8-wXK6KVj0E7O0XAAKp New WebSocket connection: SmoeQV7CltQVGHoIAAKr New WebSocket connection: TeOgPkVPF9OInn4GAAKu New WebSocket connection: 6BP1SzKMWL8gScO5AAKv WebSocket disconnected: T-Bil461MyOrid8rAAKh WebSocket disconnected: Jii1irbsghLoEq1lAAKm â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: oICLpjIEcyQS2k9AAAKo â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: SFbIlZRG3ydrDqSDAAKy New WebSocket connection: ErhTg_ZmVuYP-5I3AAK2 New WebSocket connection: UBgmwZ_ephQkCEgNAAK3 New WebSocket connection: BvVlTGG7Cyvi0GtVAAK4 New WebSocket connection: H_5Pdu3bDlYKyMCpAAK7 New WebSocket connection: _BHENorV-AXsfaJVAAK9 New WebSocket connection: Y-WbfyzEfxLceB0HAAK_ New WebSocket connection: E7IxJoTruqs0JJebAALA New WebSocket connection: ZrnJth-2YheXwmamAALB WebSocket disconnected: SFbIlZRG3ydrDqSDAAKy WebSocket disconnected: BvVlTGG7Cyvi0GtVAAK4 â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: H_5Pdu3bDlYKyMCpAAK7 â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: C5g4TVLVa3KGufzoAALE New WebSocket connection: K3XzJJqSeh2rTrMMAALH New WebSocket connection: B8k2eaa_aoVP_YgUAALI New WebSocket connection: 4OYVN7a80qLATqz6AALM New WebSocket connection: tRkBFEusgN0YVN55AALN New WebSocket connection: fBVibIDDhVbqCG2aAALO New WebSocket connection: Exy0fqn8J70I0C6EAALP New WebSocket connection: bRvK1G684BtrGd2OAALR New WebSocket connection: HKc59OO_mbV34XpqAALT WebSocket disconnected: C5g4TVLVa3KGufzoAALE WebSocket disconnected: 4OYVN7a80qLATqz6AALM â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: Exy0fqn8J70I0C6EAALP â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: GHewY0WvaSq653IBAALW New WebSocket connection: xPF_aVzGgWbC3tEZAALa New WebSocket connection: elcdm3zHQkIlvAfsAALb New WebSocket connection: mM3chGcLkpEfyQTJAALd New WebSocket connection: YzQmM-lvpdhQx2MKAALf New WebSocket connection: rUdLl2fsZAqkxS1uAALg New WebSocket connection: 7nGub6S5I-0Od7y3AALi New WebSocket connection: -YkqrVE4i3lsZtVxAALk New WebSocket connection: qq8ytR-lDc_xkGasAALl WebSocket disconnected: -YkqrVE4i3lsZtVxAALk WebSocket disconnected: 7nGub6S5I-0Od7y3AALi WebSocket disconnected: rUdLl2fsZAqkxS1uAALg WebSocket disconnected: HKc59OO_mbV34XpqAALT WebSocket disconnected: bRvK1G684BtrGd2OAALR WebSocket disconnected: Y-WbfyzEfxLceB0HAAK_ WebSocket disconnected: _BHENorV-AXsfaJVAAK9 WebSocket disconnected: SmoeQV7CltQVGHoIAAKr WebSocket disconnected: t8-wXK6KVj0E7O0XAAKp WebSocket disconnected: wPGrDp2RBOgMXNyrAAKS WebSocket disconnected: ElTcoTjLh60JK9FoAAKR WebSocket disconnected: LAJMgnW_pK6SdYr4AAKJ WebSocket disconnected: SVolsNhUmoLmAQRfAAKF WebSocket disconnected: VOOp8TO4g5M2bJOEAAKB WebSocket disconnected: SoNCYsu3ZW6flhmwAAJ9 WebSocket disconnected: Tvc8dlwGvEw4tIUGAAJ6 WebSocket disconnected: cLsyK998BOOziB7iAAJ5 New WebSocket connection: SzMoV-Xrvn1whrS0AALn Socket SzMoV-Xrvn1whrS0AALn joined approvals room Socket SzMoV-Xrvn1whrS0AALn joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: 9PFzR3eL6x_H7S7jAALq New WebSocket connection: xVv5YGRvAkP0EAYIAALr â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 MIDDLEWARE EXECUTING for path: /operations/check method: POST 🔍 authHeader: missing fallbackToken: supply-chain-service-token 🔍 Checking fallback token: supply-chain-service-token valid tokens: [ 'internal-service', 'supply-chain-service-token' ] ✅ Valid fallback token found, proceeding 🔍 Set req.serviceToken: { service: 'supply-chain-service', scopes: [ 'ops.check' ] } 🔍 checkApprovalRequiredInternal called with: { module: 'supply_chain', operation: 'create_purchase_order' } No condition or payload, defaulting to requiresApproval = true â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 MIDDLEWARE EXECUTING for path: /operations/queue method: POST 🔍 authHeader: missing fallbackToken: supply-chain-service-token 🔍 Checking fallback token: supply-chain-service-token valid tokens: [ 'internal-service', 'supply-chain-service-token' ] ✅ Valid fallback token found, proceeding 🔍 Set req.serviceToken: { service: 'supply-chain-service', scopes: [ 'ops.queue' ] } 🔍 checkApprovalRequiredInternal called with: { module: 'supply_chain', operation: 'create_purchase_order' } No condition or payload, defaulting to requiresApproval = true Error logging system action: Error: Column 'step_id' cannot be null at PromisePool.query (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:36:22) at logSystemAction (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:33:18) at queueOperation (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:1417:23) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) { code: 'ER_BAD_NULL_ERROR', errno: 1048, sql: 'INSERT INTO approval_actions (request_id, step_id, actor_id, actor_name, action, comment)\n' + " VALUES (102, NULL, 0, 'System', 'request_created', 'Approval request created for supply_chain - create_purchase_order')", sqlState: '23000', sqlMessage: "Column 'step_id' cannot be null" } 🔍 initializeFirstStep called with requestId: 102 workflowId: 1 🔍 firstStep result: [ { id: 42, workflow_id: 1, step_order: 1, mode: 'serial', quorum: 3, assignees: [ [Object], [Object], [Object] ], sla_minutes: 1440, created_at: 2025-11-18T01:46:50.000Z, updated_at: 2025-11-18T01:46:50.000Z } ] 🔍 Found step: 42 🔍 Step progress inserted, result: ResultSetHeader { fieldCount: 0, affectedRows: 1, insertId: 151, info: '', serverStatus: 2, warningStatus: 0, changedRows: 0 } đŸ“Ŧ Workflow notification sent to user 8: approval_needed đŸ“Ŧ Workflow notification sent to user 4: approval_needed đŸ“Ŧ Workflow notification sent to user 2: approval_needed 📡 Emitted new_approval_request to room approvals: { requestId: 102, workflowId: 1, title: 'Supply Chain - Create Purchase Order', module: 'supply_chain', operation: 'create_purchase_order', requesterId: '8', requesterName: 'head supply', resourceRef: 'SUPPLY_CHAIN-CREATE_PURCHASE_ORDER-1763518425630', correlationId: 'SC-PO-1763518425630', timestamp: '2025-11-19T02:13:45.819Z' } Failed to create workflow notification: Error: Incorrect integer value: 'supply-chain-service' for column 'user_id' at row 1 at PromisePool.query (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:36:22) at Object.createNotification (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/services/notificationService.js:5:31) at notifyWorkflowEvent (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:112:35) at queueOperation (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:1437:27) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) { code: 'ER_TRUNCATED_WRONG_VALUE_FOR_FIELD', errno: 1366, sql: 'INSERT INTO notifications (user_id, title, message, link, type, priority, icon, source_module, payload)\n' + ` VALUES ('supply-chain-service', 'New Approval Request', 'supply_chain - create_purchase_order: Supply Chain - Create Purchase Order', '/dashboard/pending-approvals', 'info', 'normal', 'assignment', 'workflow', '{\\"requestId\\":102,\\"title\\":\\"Supply Chain - Create Purchase Order\\",\\"module\\":\\"supply_chain\\",\\"operation\\":\\"create_purchase_order\\"}')`, sqlState: 'HY000', sqlMessage: "Incorrect integer value: 'supply-chain-service' for column 'user_id' at row 1" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 📡 Emitted request_approved to room approvals: { requestId: '102', stepId: 42, approverId: '8', approverName: 'head supply', comment: undefined, timestamp: '2025-11-19T02:14:00.736Z' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 📡 Emitted request_approved to room approvals: { requestId: '102', stepId: 42, approverId: '4', approverName: 'head accounts', comment: undefined, timestamp: '2025-11-19T02:14:06.491Z' } đŸ“Ŧ Workflow notification sent to user 8: request_approved â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Unhandled route: { method: 'POST', path: '/api/auth/logout', headers: { host: 'localhost:3001', connection: 'keep-alive', 'content-length': '2', 'sec-ch-ua-platform': '"macOS"', authorization: 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NCwicm9sZV9pZCI6MSwibW9kdWxlX2lkIjo0LCJzdG9yZV9pZCI6MSwiaWF0IjoxNzYzNTE4MTMwLCJleHAiOjE3NjM2MDQ1MzB9.TzlEg_SCr_5HYLEp6eESJJ9NaCIO9iIiGw5slbytZz0', 'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 OPR/122.0.0.0', accept: 'application/json, text/plain, */*', 'sec-ch-ua': '"Not)A;Brand";v="8", "Chromium";v="138", "Opera";v="122"', 'content-type': 'application/json', 'sec-ch-ua-mobile': '?0', origin: 'http://localhost:9000', 'sec-fetch-site': 'same-site', 'sec-fetch-mode': 'cors', 'sec-fetch-dest': 'empty', referer: 'http://localhost:9000/', 'accept-encoding': 'gzip, deflate, br, zstd', 'accept-language': 'en-GB,en-US;q=0.9,en;q=0.8,da;q=0.7' }, body: {} } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: 9PFzR3eL6x_H7S7jAALq WebSocket disconnected: SzMoV-Xrvn1whrS0AALn WebSocket disconnected: xVv5YGRvAkP0EAYIAALr New WebSocket connection: b-l8bnqXzsyq2K8nAALt Socket b-l8bnqXzsyq2K8nAALt joined approvals room Socket b-l8bnqXzsyq2K8nAALt joined procurement room User status details: { is_blocked: 0, module_id: 4, store_id: 1 } Token created for user 4. Expires at: Thu Nov 20 2025 03:14:23 GMT+0100 (West Africa Standard Time) Login successful. Token generated. â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: WBhggEXsw9ITAfxCAALw New WebSocket connection: R435-sP__CECuYuQAALx â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Unhandled route: { method: 'POST', path: '/api/auth/logout', headers: { host: 'localhost:3001', accept: 'application/json, text/plain, */*', authorization: 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NCwicm9sZV9pZCI6MSwibW9kdWxlX2lkIjo0LCJzdG9yZV9pZCI6MSwiaWF0IjoxNzYzNTE3NjIwLCJleHAiOjE3NjM2MDQwMjB9.5XgnK2Z2aaHVjF2V7zLMFCLXpXT_mvqOcInVduFAuvA', 'sec-fetch-site': 'same-site', 'accept-language': 'en-us', 'accept-encoding': 'gzip, deflate', 'sec-fetch-mode': 'cors', 'content-type': 'application/json', origin: 'http://localhost:9000', 'content-length': '2', 'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6.1 Safari/605.1.15', referer: 'http://localhost:9000/', connection: 'keep-alive', 'sec-fetch-dest': 'empty' }, body: {} } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: elcdm3zHQkIlvAfsAALb WebSocket disconnected: bRzwYR6aFO47oSWdAAJG WebSocket disconnected: UBgmwZ_ephQkCEgNAAK3 WebSocket disconnected: MkUKKEvh0gfUsWL3AAKd WebSocket disconnected: vOawggafqi4-BuUnAAKl WebSocket disconnected: GHewY0WvaSq653IBAALW WebSocket disconnected: K3bywFicQIxdId8cAAJJ WebSocket disconnected: NqUS54hIKPvHd9MYAAJF WebSocket disconnected: flU71ExmhyRbqbZSAAKc WebSocket disconnected: 6bI6O1K0JafX4_iMAAJo WebSocket disconnected: ErhTg_ZmVuYP-5I3AAK2 WebSocket disconnected: B8k2eaa_aoVP_YgUAALI WebSocket disconnected: xPF_aVzGgWbC3tEZAALa WebSocket disconnected: K3XzJJqSeh2rTrMMAALH WebSocket disconnected: 58U84jwhNUSjT1wKAAJp WebSocket disconnected: SzKP_cAQlBNo4_ntAAKk New WebSocket connection: dE3M6A8BCZ-wFZ8kAALz Socket dE3M6A8BCZ-wFZ8kAALz joined approvals room Socket dE3M6A8BCZ-wFZ8kAALz joined procurement room User status details: { is_blocked: 0, module_id: 4, store_id: 1 } Token created for user 4. Expires at: Thu Nov 20 2025 03:15:16 GMT+0100 (West Africa Standard Time) Login successful. Token generated. â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: adp_N7AyNiuVoI-DAAL2 New WebSocket connection: c1MNMEg_dpNz-xXKAAL3 â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: R435-sP__CECuYuQAALx New WebSocket connection: q9LAJIYAQnE_v3ABAAL5 New WebSocket connection: Yj-wmTrL64IeRklmAAL7 User status details: { is_blocked: 0, module_id: 2, store_id: 1 } Token created for user 2. Expires at: Thu Nov 20 2025 03:15:30 GMT+0100 (West Africa Standard Time) Login successful. Token generated. â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: YysN1s1IIDLocd0SAAL9 â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error logging system action: Error: Data truncated for column 'action' at row 1 at PromisePool.query (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:36:22) at logSystemAction (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:33:18) at WorkflowController.updateStepProgress (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:2346:19) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async WorkflowController.approveRequest (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:2165:34) { code: 'WARN_DATA_TRUNCATED', errno: 1265, sql: 'INSERT INTO approval_actions (request_id, step_id, actor_id, actor_name, action, comment)\n' + " VALUES ('102', 42, 0, 'System', 'step_completed', 'Step 1 completed with 3 approval(s)')", sqlState: '01000', sqlMessage: "Data truncated for column 'action' at row 1" } Error logging system action: Error: Column 'step_id' cannot be null at PromisePool.query (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:36:22) at logSystemAction (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:33:18) at WorkflowController.finalizeApprovedRequest (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:2412:15) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async WorkflowController.approveRequest (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:2171:21) { code: 'ER_BAD_NULL_ERROR', errno: 1048, sql: 'INSERT INTO approval_actions (request_id, step_id, actor_id, actor_name, action, comment)\n' + " VALUES ('102', NULL, 0, 'System', 'workflow_completed', 'Workflow approved and completed')", sqlState: '23000', sqlMessage: "Column 'step_id' cannot be null" } 📡 EXECUTING CALLBACK: http://localhost:3003/api/purchase-orders/callbacks/approval for request 102 🔐 Added webhook signature header for request 102 🔍 MIDDLEWARE EXECUTING for path: /emit-event method: POST 🔍 authHeader: missing fallbackToken: supply-chain-service-token 🔍 Checking fallback token: supply-chain-service-token valid tokens: [ 'internal-service', 'supply-chain-service-token' ] ✅ Valid fallback token found, proceeding 🔍 Set req.serviceToken: { service: 'supply-chain-service', scopes: [ 'ops.register', 'ops.check', 'ops.queue' ] } 📡 Emitted purchase_order_approved to room procurement: { purchaseOrderId: 117, orderKey: 'PO6589', requestId: 102, supplierId: 4611, branchId: 1, approvedBy: 'system', timestamp: '2025-11-19T02:15:47.613Z' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback đŸ“Ŧ Workflow notification sent to user 8: workflow_completed 📡 Emitted request_approved to room approvals: { requestId: '102', stepId: 42, approverId: '2', approverName: 'head of operation', comment: undefined, timestamp: '2025-11-19T02:15:47.790Z' } đŸ“Ŧ Workflow notification sent to user 8: request_approved â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: vTbmqckYsOPMQ9ejAAJN WebSocket disconnected: rWBuJnQMSi6d5dhkAAKX WebSocket disconnected: DYeT9LpEdYgd6H01AAKV WebSocket disconnected: TQftpV7dRSvKr2VkAAJj WebSocket disconnected: lp7GFN8p073-hKMIAAJi WebSocket disconnected: ZopXFJMtIQa90JvtAAJP WebSocket disconnected: qq8ytR-lDc_xkGasAALl WebSocket disconnected: YzQmM-lvpdhQx2MKAALf WebSocket disconnected: mM3chGcLkpEfyQTJAALd WebSocket disconnected: fBVibIDDhVbqCG2aAALO WebSocket disconnected: tRkBFEusgN0YVN55AALN WebSocket disconnected: ZrnJth-2YheXwmamAALB WebSocket disconnected: E7IxJoTruqs0JJebAALA WebSocket disconnected: 6BP1SzKMWL8gScO5AAKv WebSocket disconnected: TeOgPkVPF9OInn4GAAKu New WebSocket connection: A2eFtDrqNj3zFEe1AAL_ Socket A2eFtDrqNj3zFEe1AAL_ joined approvals room Socket A2eFtDrqNj3zFEe1AAL_ joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 /workflows route hit 🔍 getWorkflows called 🔍 Database test result: [ { test: 1 } ] DB name: hybrid_users â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: RisPr_x1elRQElsXAAMC New WebSocket connection: EEsRWROr11nEy8b-AAMD â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: EEsRWROr11nEy8b-AAMD WebSocket disconnected: RisPr_x1elRQElsXAAMC WebSocket disconnected: A2eFtDrqNj3zFEe1AAL_ New WebSocket connection: tFOpyHGL9NUfXGyRAAMF Socket tFOpyHGL9NUfXGyRAAMF joined approvals room Socket tFOpyHGL9NUfXGyRAAMF joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: S9kKu33gTed1rrpCAAMI New WebSocket connection: jGRIcPG_IJLWmjZEAAMJ â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: jGRIcPG_IJLWmjZEAAMJ WebSocket disconnected: S9kKu33gTed1rrpCAAMI WebSocket disconnected: tFOpyHGL9NUfXGyRAAMF WebSocket disconnected: adp_N7AyNiuVoI-DAAL2 WebSocket disconnected: dE3M6A8BCZ-wFZ8kAALz WebSocket disconnected: c1MNMEg_dpNz-xXKAAL3 WebSocket disconnected: b-l8bnqXzsyq2K8nAALt WebSocket disconnected: q9LAJIYAQnE_v3ABAAL5 WebSocket disconnected: WBhggEXsw9ITAfxCAALw WebSocket disconnected: YysN1s1IIDLocd0SAAL9 WebSocket disconnected: Yj-wmTrL64IeRklmAAL7 New WebSocket connection: fTnVaSX29NMRyF0lAAML Socket fTnVaSX29NMRyF0lAAML joined approvals room Socket fTnVaSX29NMRyF0lAAML joined procurement room New WebSocket connection: 7kz_YWvLblbIiDhOAAMN Socket 7kz_YWvLblbIiDhOAAMN joined approvals room Socket 7kz_YWvLblbIiDhOAAMN joined procurement room New WebSocket connection: yHumtJ6uJ-9OL9UXAAMP Socket yHumtJ6uJ-9OL9UXAAMP joined approvals room Socket yHumtJ6uJ-9OL9UXAAMP joined procurement room WebSocket disconnected: yHumtJ6uJ-9OL9UXAAMP WebSocket disconnected: 7kz_YWvLblbIiDhOAAMN WebSocket disconnected: fTnVaSX29NMRyF0lAAML New WebSocket connection: bwiFnfXRRGs2-FzqAAMR Socket bwiFnfXRRGs2-FzqAAMR joined approvals room Socket bwiFnfXRRGs2-FzqAAMR joined procurement room New WebSocket connection: xZMLgU86gagLLIuyAAMT Socket xZMLgU86gagLLIuyAAMT joined approvals room Socket xZMLgU86gagLLIuyAAMT joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: SLVYJ9csb7gJgX0JAAMY New WebSocket connection: e9bzu99mojIPc5zLAAMZ New WebSocket connection: gr5cDc5OiGp1tCb5AAMa New WebSocket connection: Lrxo5YF_Ko4JjO96AAMb New WebSocket connection: -lEC7Cmj3K08G0iGAAMd Socket -lEC7Cmj3K08G0iGAAMd joined approvals room Socket -lEC7Cmj3K08G0iGAAMd joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: cUaq2HKzT83OUvVQAAMg New WebSocket connection: bN3-Mpk6xrnZVJQrAAMh â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: bN3-Mpk6xrnZVJQrAAMh WebSocket disconnected: cUaq2HKzT83OUvVQAAMg WebSocket disconnected: -lEC7Cmj3K08G0iGAAMd WebSocket disconnected: e9bzu99mojIPc5zLAAMZ WebSocket disconnected: SLVYJ9csb7gJgX0JAAMY WebSocket disconnected: bwiFnfXRRGs2-FzqAAMR WebSocket disconnected: Lrxo5YF_Ko4JjO96AAMb WebSocket disconnected: gr5cDc5OiGp1tCb5AAMa WebSocket disconnected: xZMLgU86gagLLIuyAAMT New WebSocket connection: Tijfj7u2qMbzoN4JAAMj Socket Tijfj7u2qMbzoN4JAAMj joined approvals room Socket Tijfj7u2qMbzoN4JAAMj joined procurement room New WebSocket connection: 6VPXvAoTTRP_0xzaAAMl Socket 6VPXvAoTTRP_0xzaAAMl joined approvals room Socket 6VPXvAoTTRP_0xzaAAMl joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: RayCIMOxKcGkXLC7AAMq New WebSocket connection: DRj6zQZ9qX1MP5_7AAMr New WebSocket connection: cYgXn_HAbtdDgdqkAAMs New WebSocket connection: THC15aXeQcN1gANrAAMt New WebSocket connection: DeNswQWMAZB7MluLAAMv Socket DeNswQWMAZB7MluLAAMv joined approvals room Socket DeNswQWMAZB7MluLAAMv joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: SEkRzp_SceUG02RIAAMy New WebSocket connection: J3YW5RzuMRCmvPCkAAMz â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: DeNswQWMAZB7MluLAAMv WebSocket disconnected: J3YW5RzuMRCmvPCkAAMz WebSocket disconnected: SEkRzp_SceUG02RIAAMy New WebSocket connection: 0ZIzqljyMUCUvcUPAAM1 Socket 0ZIzqljyMUCUvcUPAAM1 joined approvals room Socket 0ZIzqljyMUCUvcUPAAM1 joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: aP0_y4JX8vkcjNqGAAM4 New WebSocket connection: xFuBUUPbh7J-Y7zGAAM5 â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: aP0_y4JX8vkcjNqGAAM4 WebSocket disconnected: 0ZIzqljyMUCUvcUPAAM1 WebSocket disconnected: DRj6zQZ9qX1MP5_7AAMr WebSocket disconnected: 6VPXvAoTTRP_0xzaAAMl WebSocket disconnected: RayCIMOxKcGkXLC7AAMq WebSocket disconnected: xFuBUUPbh7J-Y7zGAAM5 New WebSocket connection: gX5vB3m0HFloBDbVAAM7 Socket gX5vB3m0HFloBDbVAAM7 joined approvals room Socket gX5vB3m0HFloBDbVAAM7 joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: Lr_xAqtBjQ2VCcHJAAM- New WebSocket connection: 3UsNi4D8mYg16tQ7AAM_ New WebSocket connection: 7C4qCppgfhl0SyRGAANB Socket 7C4qCppgfhl0SyRGAANB joined approvals room Socket 7C4qCppgfhl0SyRGAANB joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: 2mHSXwcGavqoporHAANE New WebSocket connection: BrQK-ripG7ACzSmmAANF WebSocket disconnected: gX5vB3m0HFloBDbVAAM7 WebSocket disconnected: Lr_xAqtBjQ2VCcHJAAM- WebSocket disconnected: 3UsNi4D8mYg16tQ7AAM_ WebSocket disconnected: 7C4qCppgfhl0SyRGAANB WebSocket disconnected: 2mHSXwcGavqoporHAANE WebSocket disconnected: BrQK-ripG7ACzSmmAANF New WebSocket connection: yVMLM1ca0HIt80IMAANH Socket yVMLM1ca0HIt80IMAANH joined approvals room Socket yVMLM1ca0HIt80IMAANH joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: tifiKGYsmNWL2VDeAANK New WebSocket connection: MInLb01-SPtbrcsDAANL New WebSocket connection: L_b9EKGGYntzmp1XAANN Socket L_b9EKGGYntzmp1XAANN joined approvals room Socket L_b9EKGGYntzmp1XAANN joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: YWhKD4ihgVmWKoZeAANQ New WebSocket connection: iGBUIfJRra_0kW4bAANR WebSocket disconnected: iGBUIfJRra_0kW4bAANR WebSocket disconnected: YWhKD4ihgVmWKoZeAANQ WebSocket disconnected: L_b9EKGGYntzmp1XAANN New WebSocket connection: wQMxumGJNC-QflN1AANT Socket wQMxumGJNC-QflN1AANT joined approvals room Socket wQMxumGJNC-QflN1AANT joined procurement room New WebSocket connection: 54LcVJnN1a6475cRAANV â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: 64ga_204Qe1IduMuAANX Unhandled route: { method: 'POST', path: '/api/auth/logout', headers: { host: 'localhost:3001', connection: 'keep-alive', 'content-length': '2', 'sec-ch-ua-platform': '"macOS"', authorization: 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OCwicm9sZV9pZCI6MSwibW9kdWxlX2lkIjoxLCJzdG9yZV9pZCI6MSwiaWF0IjoxNzYzNTE2MTg4LCJleHAiOjE3NjM2MDI1ODh9.C8lQ8movDJmVRIwTdxxAiBGL3GFCJfAB9s7lp1-RuN4', 'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36', accept: 'application/json, text/plain, */*', 'sec-ch-ua': '"Not)A;Brand";v="8", "Chromium";v="138", "Google Chrome";v="138"', 'content-type': 'application/json', 'sec-ch-ua-mobile': '?0', origin: 'http://localhost:9000', 'sec-fetch-site': 'same-site', 'sec-fetch-mode': 'cors', 'sec-fetch-dest': 'empty', referer: 'http://localhost:9000/', 'accept-encoding': 'gzip, deflate, br, zstd', 'accept-language': 'en-US,en;q=0.9' }, body: {} } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: 54LcVJnN1a6475cRAANV WebSocket disconnected: wQMxumGJNC-QflN1AANT WebSocket disconnected: 64ga_204Qe1IduMuAANX New WebSocket connection: _p8LqQphWSQOwByeAANZ Socket _p8LqQphWSQOwByeAANZ joined approvals room Socket _p8LqQphWSQOwByeAANZ joined procurement room User status details: { is_blocked: 0, module_id: 1, store_id: 1 } Token created for user 8. Expires at: Thu Nov 20 2025 03:56:22 GMT+0100 (West Africa Standard Time) Login successful. Token generated. â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: CAFdESS7Nq2dpkdmAANc New WebSocket connection: sTo8bSnrxd7encEAAANd â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: sTo8bSnrxd7encEAAANd WebSocket disconnected: CAFdESS7Nq2dpkdmAANc WebSocket disconnected: _p8LqQphWSQOwByeAANZ New WebSocket connection: ANpFUSqKvejV0qkeAANf Socket ANpFUSqKvejV0qkeAANf joined approvals room Socket ANpFUSqKvejV0qkeAANf joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: FsqzXI1ItvvLzW5HAANi New WebSocket connection: OKjVmwdPxzJ7cM1QAANj â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Unhandled route: { method: 'POST', path: '/api/auth/logout', headers: { host: 'localhost:3001', connection: 'keep-alive', 'content-length': '2', 'sec-ch-ua-platform': '"macOS"', authorization: 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6OCwicm9sZV9pZCI6MSwibW9kdWxlX2lkIjoxLCJzdG9yZV9pZCI6MSwiaWF0IjoxNzYzNTIwOTgyLCJleHAiOjE3NjM2MDczODJ9.WW3rNUa1rcwC6js7muTBx8-xnngT1oALLRumbUgJ6mo', 'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36', accept: 'application/json, text/plain, */*', 'sec-ch-ua': '"Not)A;Brand";v="8", "Chromium";v="138", "Google Chrome";v="138"', 'content-type': 'application/json', 'sec-ch-ua-mobile': '?0', origin: 'http://localhost:9000', 'sec-fetch-site': 'same-site', 'sec-fetch-mode': 'cors', 'sec-fetch-dest': 'empty', referer: 'http://localhost:9000/', 'accept-encoding': 'gzip, deflate, br, zstd', 'accept-language': 'en-US,en;q=0.9' }, body: {} } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: OKjVmwdPxzJ7cM1QAANj WebSocket disconnected: FsqzXI1ItvvLzW5HAANi WebSocket disconnected: ANpFUSqKvejV0qkeAANf New WebSocket connection: erapelKkXv0SZtyXAANl Socket erapelKkXv0SZtyXAANl joined approvals room Socket erapelKkXv0SZtyXAANl joined procurement room User status details: { is_blocked: 0, module_id: 1, store_id: 1 } Token created for user 8. Expires at: Thu Nov 20 2025 04:00:42 GMT+0100 (West Africa Standard Time) Login successful. Token generated. â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: acWFagB7lNV1HccnAANn New WebSocket connection: fPpr04tVKWHPqzEAAANp â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: acWFagB7lNV1HccnAANn WebSocket disconnected: erapelKkXv0SZtyXAANl WebSocket disconnected: fPpr04tVKWHPqzEAAANp â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: eNWDx3J85nBpXwY2AANt New WebSocket connection: xJzs2qod3Q9Is3urAANu Socket eNWDx3J85nBpXwY2AANt joined approvals room Socket eNWDx3J85nBpXwY2AANt joined procurement room New WebSocket connection: jQ62an9tU99XlhnMAANv WebSocket disconnected: jQ62an9tU99XlhnMAANv WebSocket disconnected: xJzs2qod3Q9Is3urAANu WebSocket disconnected: eNWDx3J85nBpXwY2AANt â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: zTnT0FO7Pfhg0VjiAANz New WebSocket connection: xgN84GJiopHE8Wv1AAN0 Socket zTnT0FO7Pfhg0VjiAANz joined approvals room Socket zTnT0FO7Pfhg0VjiAANz joined procurement room New WebSocket connection: as8CDvb1r_5hv39iAAN1 â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: as8CDvb1r_5hv39iAAN1 WebSocket disconnected: xgN84GJiopHE8Wv1AAN0 WebSocket disconnected: zTnT0FO7Pfhg0VjiAANz â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: GCZGfkmRQ-MzTFWVAAN5 New WebSocket connection: 7rvVpgSDOvPtx6p8AAN6 Socket GCZGfkmRQ-MzTFWVAAN5 joined approvals room Socket GCZGfkmRQ-MzTFWVAAN5 joined procurement room New WebSocket connection: nKtp6FrE5kK-_NkPAAN7 â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 MIDDLEWARE EXECUTING for path: /operations/register method: POST 🔍 authHeader: missing fallbackToken: supply-chain-service-token 🔍 Checking fallback token: supply-chain-service-token valid tokens: [ 'internal-service', 'supply-chain-service-token' ] ✅ Valid fallback token found, proceeding 🔍 Set req.serviceToken: { service: 'supply-chain-service', scopes: [ 'ops.register', 'ops.check', 'ops.queue' ] } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: GCZGfkmRQ-MzTFWVAAN5 WebSocket disconnected: nKtp6FrE5kK-_NkPAAN7 WebSocket disconnected: 7rvVpgSDOvPtx6p8AAN6 New WebSocket connection: uxKWamxM2xTgfzWfAAN- New WebSocket connection: fESD_KxwgsdBtqCQAAN_ â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Socket uxKWamxM2xTgfzWfAAN- joined approvals room Socket uxKWamxM2xTgfzWfAAN- joined procurement room New WebSocket connection: xq3NCnhUW7s3odXpAAOB â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: xq3NCnhUW7s3odXpAAOB WebSocket disconnected: fESD_KxwgsdBtqCQAAN_ WebSocket disconnected: uxKWamxM2xTgfzWfAAN- â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: r7PI4x0ZNKBBPXo1AAOF New WebSocket connection: m93TwWSSAuYC9kDUAAOG Socket r7PI4x0ZNKBBPXo1AAOF joined approvals room Socket r7PI4x0ZNKBBPXo1AAOF joined procurement room New WebSocket connection: 1Ede8hFIzDDQl9t3AAOH â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 MIDDLEWARE EXECUTING for path: /operations/check method: POST 🔍 authHeader: missing fallbackToken: supply-chain-service-token 🔍 Checking fallback token: supply-chain-service-token valid tokens: [ 'internal-service', 'supply-chain-service-token' ] ✅ Valid fallback token found, proceeding 🔍 Set req.serviceToken: { service: 'supply-chain-service', scopes: [ 'ops.check' ] } 🔍 checkApprovalRequiredInternal called with: { module: 'supply_chain', operation: 'create_purchase_order' } No condition or payload, defaulting to requiresApproval = true â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 MIDDLEWARE EXECUTING for path: /operations/queue method: POST 🔍 authHeader: missing fallbackToken: supply-chain-service-token 🔍 Checking fallback token: supply-chain-service-token valid tokens: [ 'internal-service', 'supply-chain-service-token' ] ✅ Valid fallback token found, proceeding 🔍 Set req.serviceToken: { service: 'supply-chain-service', scopes: [ 'ops.queue' ] } 🔍 checkApprovalRequiredInternal called with: { module: 'supply_chain', operation: 'create_purchase_order' } No condition or payload, defaulting to requiresApproval = true Error logging system action: Error: Column 'step_id' cannot be null at PromisePool.query (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:36:22) at logSystemAction (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:33:18) at queueOperation (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:1417:23) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) { code: 'ER_BAD_NULL_ERROR', errno: 1048, sql: 'INSERT INTO approval_actions (request_id, step_id, actor_id, actor_name, action, comment)\n' + " VALUES (103, NULL, 0, 'System', 'request_created', 'Approval request created for supply_chain - create_purchase_order')", sqlState: '23000', sqlMessage: "Column 'step_id' cannot be null" } 🔍 initializeFirstStep called with requestId: 103 workflowId: 1 🔍 firstStep result: [ { id: 42, workflow_id: 1, step_order: 1, mode: 'serial', quorum: 3, assignees: [ [Object], [Object], [Object] ], sla_minutes: 1440, created_at: 2025-11-18T01:46:50.000Z, updated_at: 2025-11-18T01:46:50.000Z } ] 🔍 Found step: 42 🔍 Step progress inserted, result: ResultSetHeader { fieldCount: 0, affectedRows: 1, insertId: 152, info: '', serverStatus: 2, warningStatus: 0, changedRows: 0 } đŸ“Ŧ Workflow notification sent to user 8: approval_needed đŸ“Ŧ Workflow notification sent to user 4: approval_needed đŸ“Ŧ Workflow notification sent to user 2: approval_needed 📡 Emitted new_approval_request to room approvals: { requestId: 103, workflowId: 1, title: 'Supply Chain - Create Purchase Order', module: 'supply_chain', operation: 'create_purchase_order', requesterId: '8', requesterName: 'head supply', resourceRef: 'SUPPLY_CHAIN-CREATE_PURCHASE_ORDER-1763522329226', correlationId: 'SC-PO-1763522329226', timestamp: '2025-11-19T03:18:49.281Z' } Failed to create workflow notification: Error: Incorrect integer value: 'supply-chain-service' for column 'user_id' at row 1 at PromisePool.query (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:36:22) at Object.createNotification (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/services/notificationService.js:5:31) at notifyWorkflowEvent (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:112:35) at queueOperation (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:1437:27) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) { code: 'ER_TRUNCATED_WRONG_VALUE_FOR_FIELD', errno: 1366, sql: 'INSERT INTO notifications (user_id, title, message, link, type, priority, icon, source_module, payload)\n' + ` VALUES ('supply-chain-service', 'New Approval Request', 'supply_chain - create_purchase_order: Supply Chain - Create Purchase Order', '/dashboard/pending-approvals', 'info', 'normal', 'assignment', 'workflow', '{\\"requestId\\":103,\\"title\\":\\"Supply Chain - Create Purchase Order\\",\\"module\\":\\"supply_chain\\",\\"operation\\":\\"create_purchase_order\\"}')`, sqlState: 'HY000', sqlMessage: "Incorrect integer value: 'supply-chain-service' for column 'user_id' at row 1" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: r7PI4x0ZNKBBPXo1AAOF WebSocket disconnected: 1Ede8hFIzDDQl9t3AAOH WebSocket disconnected: m93TwWSSAuYC9kDUAAOG â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: 7wh5qWwYfoX9q8n0AAOK Socket 7wh5qWwYfoX9q8n0AAOK joined approvals room Socket 7wh5qWwYfoX9q8n0AAOK joined procurement room New WebSocket connection: xx0QxzyW5j3AtBiBAAOM New WebSocket connection: BCerXnAkr2pKJas6AAON â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: 7wh5qWwYfoX9q8n0AAOK WebSocket disconnected: BCerXnAkr2pKJas6AAON WebSocket disconnected: xx0QxzyW5j3AtBiBAAOM â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: rMgHsgwbbDI08skSAAOR New WebSocket connection: ANsPLHJQvZGeUOKbAAOS Socket rMgHsgwbbDI08skSAAOR joined approvals room Socket rMgHsgwbbDI08skSAAOR joined procurement room New WebSocket connection: sVfiqQQ2sqVPITX-AAOT â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 MIDDLEWARE EXECUTING for path: /operations/check method: POST 🔍 authHeader: missing fallbackToken: supply-chain-service-token 🔍 Checking fallback token: supply-chain-service-token valid tokens: [ 'internal-service', 'supply-chain-service-token' ] ✅ Valid fallback token found, proceeding 🔍 Set req.serviceToken: { service: 'supply-chain-service', scopes: [ 'ops.check' ] } 🔍 checkApprovalRequiredInternal called with: { module: 'supply_chain', operation: 'create_purchase_order' } No condition or payload, defaulting to requiresApproval = true â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 MIDDLEWARE EXECUTING for path: /operations/queue method: POST 🔍 authHeader: missing fallbackToken: supply-chain-service-token 🔍 Checking fallback token: supply-chain-service-token valid tokens: [ 'internal-service', 'supply-chain-service-token' ] ✅ Valid fallback token found, proceeding 🔍 Set req.serviceToken: { service: 'supply-chain-service', scopes: [ 'ops.queue' ] } 🔍 checkApprovalRequiredInternal called with: { module: 'supply_chain', operation: 'create_purchase_order' } No condition or payload, defaulting to requiresApproval = true Error logging system action: Error: Column 'step_id' cannot be null at PromisePool.query (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:36:22) at logSystemAction (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:33:18) at queueOperation (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:1417:23) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) { code: 'ER_BAD_NULL_ERROR', errno: 1048, sql: 'INSERT INTO approval_actions (request_id, step_id, actor_id, actor_name, action, comment)\n' + " VALUES (104, NULL, 0, 'System', 'request_created', 'Approval request created for supply_chain - create_purchase_order')", sqlState: '23000', sqlMessage: "Column 'step_id' cannot be null" } 🔍 initializeFirstStep called with requestId: 104 workflowId: 1 🔍 firstStep result: [ { id: 42, workflow_id: 1, step_order: 1, mode: 'serial', quorum: 3, assignees: [ [Object], [Object], [Object] ], sla_minutes: 1440, created_at: 2025-11-18T01:46:50.000Z, updated_at: 2025-11-18T01:46:50.000Z } ] 🔍 Found step: 42 🔍 Step progress inserted, result: ResultSetHeader { fieldCount: 0, affectedRows: 1, insertId: 153, info: '', serverStatus: 2, warningStatus: 0, changedRows: 0 } đŸ“Ŧ Workflow notification sent to user 8: approval_needed đŸ“Ŧ Workflow notification sent to user 4: approval_needed đŸ“Ŧ Workflow notification sent to user 2: approval_needed 📡 Emitted new_approval_request to room approvals: { requestId: 104, workflowId: 1, title: 'Supply Chain - Create Purchase Order', module: 'supply_chain', operation: 'create_purchase_order', requesterId: '8', requesterName: 'head supply', resourceRef: 'SUPPLY_CHAIN-CREATE_PURCHASE_ORDER-1763522710234', correlationId: 'SC-PO-1763522710234', timestamp: '2025-11-19T03:25:10.341Z' } Failed to create workflow notification: Error: Incorrect integer value: 'supply-chain-service' for column 'user_id' at row 1 at PromisePool.query (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:36:22) at Object.createNotification (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/services/notificationService.js:5:31) at notifyWorkflowEvent (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:112:35) at queueOperation (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:1437:27) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) { code: 'ER_TRUNCATED_WRONG_VALUE_FOR_FIELD', errno: 1366, sql: 'INSERT INTO notifications (user_id, title, message, link, type, priority, icon, source_module, payload)\n' + ` VALUES ('supply-chain-service', 'New Approval Request', 'supply_chain - create_purchase_order: Supply Chain - Create Purchase Order', '/dashboard/pending-approvals', 'info', 'normal', 'assignment', 'workflow', '{\\"requestId\\":104,\\"title\\":\\"Supply Chain - Create Purchase Order\\",\\"module\\":\\"supply_chain\\",\\"operation\\":\\"create_purchase_order\\"}')`, sqlState: 'HY000', sqlMessage: "Incorrect integer value: 'supply-chain-service' for column 'user_id' at row 1" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: sVfiqQQ2sqVPITX-AAOT WebSocket disconnected: ANsPLHJQvZGeUOKbAAOS WebSocket disconnected: rMgHsgwbbDI08skSAAOR â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: t3TKAWJbIBlMRM9eAAOX New WebSocket connection: owwAfZWgQG1MJKpxAAOY Socket t3TKAWJbIBlMRM9eAAOX joined approvals room Socket t3TKAWJbIBlMRM9eAAOX joined procurement room New WebSocket connection: 34FDhBEauyyg_4jmAAOZ â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: 34FDhBEauyyg_4jmAAOZ WebSocket disconnected: owwAfZWgQG1MJKpxAAOY WebSocket disconnected: t3TKAWJbIBlMRM9eAAOX â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: E77GmBg3UtSOrsRzAAOd New WebSocket connection: _CqCSNGovD_lGrbOAAOe Socket E77GmBg3UtSOrsRzAAOd joined approvals room Socket E77GmBg3UtSOrsRzAAOd joined procurement room New WebSocket connection: L57Xl-sH1atc22s4AAOf â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: L57Xl-sH1atc22s4AAOf WebSocket disconnected: _CqCSNGovD_lGrbOAAOe WebSocket disconnected: E77GmBg3UtSOrsRzAAOd â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: IlHBVXYM8YoLbcVOAAOj New WebSocket connection: MOwb5qky1QsC5DFyAAOk Socket IlHBVXYM8YoLbcVOAAOj joined approvals room Socket IlHBVXYM8YoLbcVOAAOj joined procurement room New WebSocket connection: pa9lmB3JxVlqEWCeAAOl â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: MOwb5qky1QsC5DFyAAOk WebSocket disconnected: IlHBVXYM8YoLbcVOAAOj WebSocket disconnected: pa9lmB3JxVlqEWCeAAOl New WebSocket connection: GxWcK61A5eIIbbi5AAOo â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Socket GxWcK61A5eIIbbi5AAOo joined approvals room Socket GxWcK61A5eIIbbi5AAOo joined procurement room New WebSocket connection: 865s_musc5Knk8HKAAOp â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: n5cKed9S1GIjLHBwAAOr â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: 865s_musc5Knk8HKAAOp WebSocket disconnected: GxWcK61A5eIIbbi5AAOo WebSocket disconnected: n5cKed9S1GIjLHBwAAOr â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: ieE6vj5Oj2FGx2iVAAOv New WebSocket connection: NO_tQn_ulddsaV-zAAOw Socket ieE6vj5Oj2FGx2iVAAOv joined approvals room Socket ieE6vj5Oj2FGx2iVAAOv joined procurement room New WebSocket connection: N8LR2bAelIZPopPdAAOx â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 MIDDLEWARE EXECUTING for path: /operations/check method: POST 🔍 authHeader: missing fallbackToken: supply-chain-service-token 🔍 Checking fallback token: supply-chain-service-token valid tokens: [ 'internal-service', 'supply-chain-service-token' ] ✅ Valid fallback token found, proceeding 🔍 Set req.serviceToken: { service: 'supply-chain-service', scopes: [ 'ops.check' ] } 🔍 checkApprovalRequiredInternal called with: { module: 'supply_chain', operation: 'create_purchase_order' } No condition or payload, defaulting to requiresApproval = true â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 MIDDLEWARE EXECUTING for path: /operations/queue method: POST 🔍 authHeader: missing fallbackToken: supply-chain-service-token 🔍 Checking fallback token: supply-chain-service-token valid tokens: [ 'internal-service', 'supply-chain-service-token' ] ✅ Valid fallback token found, proceeding 🔍 Set req.serviceToken: { service: 'supply-chain-service', scopes: [ 'ops.queue' ] } 🔍 checkApprovalRequiredInternal called with: { module: 'supply_chain', operation: 'create_purchase_order' } No condition or payload, defaulting to requiresApproval = true Error logging system action: Error: Column 'step_id' cannot be null at PromisePool.query (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:36:22) at logSystemAction (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:33:18) at queueOperation (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:1417:23) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) { code: 'ER_BAD_NULL_ERROR', errno: 1048, sql: 'INSERT INTO approval_actions (request_id, step_id, actor_id, actor_name, action, comment)\n' + " VALUES (105, NULL, 0, 'System', 'request_created', 'Approval request created for supply_chain - create_purchase_order')", sqlState: '23000', sqlMessage: "Column 'step_id' cannot be null" } 🔍 initializeFirstStep called with requestId: 105 workflowId: 1 🔍 firstStep result: [ { id: 42, workflow_id: 1, step_order: 1, mode: 'serial', quorum: 3, assignees: [ [Object], [Object], [Object] ], sla_minutes: 1440, created_at: 2025-11-18T01:46:50.000Z, updated_at: 2025-11-18T01:46:50.000Z } ] 🔍 Found step: 42 🔍 Step progress inserted, result: ResultSetHeader { fieldCount: 0, affectedRows: 1, insertId: 154, info: '', serverStatus: 2, warningStatus: 0, changedRows: 0 } đŸ“Ŧ Workflow notification sent to user 8: approval_needed đŸ“Ŧ Workflow notification sent to user 4: approval_needed đŸ“Ŧ Workflow notification sent to user 2: approval_needed 📡 Emitted new_approval_request to room approvals: { requestId: 105, workflowId: 1, title: 'Supply Chain - Create Purchase Order', module: 'supply_chain', operation: 'create_purchase_order', requesterId: '8', requesterName: 'head supply', resourceRef: 'SUPPLY_CHAIN-CREATE_PURCHASE_ORDER-1763524108469', correlationId: 'SC-PO-1763524108469', timestamp: '2025-11-19T03:48:28.572Z' } Failed to create workflow notification: Error: Incorrect integer value: 'supply-chain-service' for column 'user_id' at row 1 at PromisePool.query (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:36:22) at Object.createNotification (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/services/notificationService.js:5:31) at notifyWorkflowEvent (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:112:35) at queueOperation (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:1437:27) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) { code: 'ER_TRUNCATED_WRONG_VALUE_FOR_FIELD', errno: 1366, sql: 'INSERT INTO notifications (user_id, title, message, link, type, priority, icon, source_module, payload)\n' + ` VALUES ('supply-chain-service', 'New Approval Request', 'supply_chain - create_purchase_order: Supply Chain - Create Purchase Order', '/dashboard/pending-approvals', 'info', 'normal', 'assignment', 'workflow', '{\\"requestId\\":105,\\"title\\":\\"Supply Chain - Create Purchase Order\\",\\"module\\":\\"supply_chain\\",\\"operation\\":\\"create_purchase_order\\"}')`, sqlState: 'HY000', sqlMessage: "Incorrect integer value: 'supply-chain-service' for column 'user_id' at row 1" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 MIDDLEWARE EXECUTING for path: /operations/check method: POST 🔍 authHeader: missing fallbackToken: supply-chain-service-token 🔍 Checking fallback token: supply-chain-service-token valid tokens: [ 'internal-service', 'supply-chain-service-token' ] ✅ Valid fallback token found, proceeding 🔍 Set req.serviceToken: { service: 'supply-chain-service', scopes: [ 'ops.check' ] } 🔍 checkApprovalRequiredInternal called with: { module: 'supply_chain', operation: 'create_purchase_order' } No condition or payload, defaulting to requiresApproval = true â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 MIDDLEWARE EXECUTING for path: /operations/queue method: POST 🔍 authHeader: missing fallbackToken: supply-chain-service-token 🔍 Checking fallback token: supply-chain-service-token valid tokens: [ 'internal-service', 'supply-chain-service-token' ] ✅ Valid fallback token found, proceeding 🔍 Set req.serviceToken: { service: 'supply-chain-service', scopes: [ 'ops.queue' ] } 🔍 checkApprovalRequiredInternal called with: { module: 'supply_chain', operation: 'create_purchase_order' } No condition or payload, defaulting to requiresApproval = true Error logging system action: Error: Column 'step_id' cannot be null at PromisePool.query (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:36:22) at logSystemAction (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:33:18) at queueOperation (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:1417:23) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) { code: 'ER_BAD_NULL_ERROR', errno: 1048, sql: 'INSERT INTO approval_actions (request_id, step_id, actor_id, actor_name, action, comment)\n' + " VALUES (106, NULL, 0, 'System', 'request_created', 'Approval request created for supply_chain - create_purchase_order')", sqlState: '23000', sqlMessage: "Column 'step_id' cannot be null" } 🔍 initializeFirstStep called with requestId: 106 workflowId: 1 🔍 firstStep result: [ { id: 42, workflow_id: 1, step_order: 1, mode: 'serial', quorum: 3, assignees: [ [Object], [Object], [Object] ], sla_minutes: 1440, created_at: 2025-11-18T01:46:50.000Z, updated_at: 2025-11-18T01:46:50.000Z } ] 🔍 Found step: 42 🔍 Step progress inserted, result: ResultSetHeader { fieldCount: 0, affectedRows: 1, insertId: 155, info: '', serverStatus: 2, warningStatus: 0, changedRows: 0 } đŸ“Ŧ Workflow notification sent to user 8: approval_needed đŸ“Ŧ Workflow notification sent to user 4: approval_needed đŸ“Ŧ Workflow notification sent to user 2: approval_needed 📡 Emitted new_approval_request to room approvals: { requestId: 106, workflowId: 1, title: 'Supply Chain - Create Purchase Order', module: 'supply_chain', operation: 'create_purchase_order', requesterId: '8', requesterName: 'head supply', resourceRef: 'SUPPLY_CHAIN-CREATE_PURCHASE_ORDER-1763524244765', correlationId: 'SC-PO-1763524244765', timestamp: '2025-11-19T03:50:45.000Z' } Failed to create workflow notification: Error: Incorrect integer value: 'supply-chain-service' for column 'user_id' at row 1 at PromisePool.query (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:36:22) at Object.createNotification (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/services/notificationService.js:5:31) at notifyWorkflowEvent (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:112:35) at queueOperation (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:1437:27) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) { code: 'ER_TRUNCATED_WRONG_VALUE_FOR_FIELD', errno: 1366, sql: 'INSERT INTO notifications (user_id, title, message, link, type, priority, icon, source_module, payload)\n' + ` VALUES ('supply-chain-service', 'New Approval Request', 'supply_chain - create_purchase_order: Supply Chain - Create Purchase Order', '/dashboard/pending-approvals', 'info', 'normal', 'assignment', 'workflow', '{\\"requestId\\":106,\\"title\\":\\"Supply Chain - Create Purchase Order\\",\\"module\\":\\"supply_chain\\",\\"operation\\":\\"create_purchase_order\\"}')`, sqlState: 'HY000', sqlMessage: "Incorrect integer value: 'supply-chain-service' for column 'user_id' at row 1" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: N8LR2bAelIZPopPdAAOx WebSocket disconnected: NO_tQn_ulddsaV-zAAOw WebSocket disconnected: ieE6vj5Oj2FGx2iVAAOv â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: ahbxL550S5-CMbz1AAO0 New WebSocket connection: ALnD9BDSnk8ELo-JAAO1 â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Socket ahbxL550S5-CMbz1AAO0 joined approvals room Socket ahbxL550S5-CMbz1AAO0 joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: RP7S5bqY_U6O5yvoAAO3 â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: ahbxL550S5-CMbz1AAO0 WebSocket disconnected: RP7S5bqY_U6O5yvoAAO3 WebSocket disconnected: ALnD9BDSnk8ELo-JAAO1 â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: DuMI80-S--k7lvO5AAO7 New WebSocket connection: aBA4UKhindKtFX0YAAO8 Socket DuMI80-S--k7lvO5AAO7 joined approvals room Socket DuMI80-S--k7lvO5AAO7 joined procurement room New WebSocket connection: xVph9SAqAovz18w3AAO9 â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: xVph9SAqAovz18w3AAO9 WebSocket disconnected: aBA4UKhindKtFX0YAAO8 WebSocket disconnected: DuMI80-S--k7lvO5AAO7 â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: WNcLn6TroHIMF_-vAAPB New WebSocket connection: WVqpFrK1_jzwiVnAAAPC Socket WNcLn6TroHIMF_-vAAPB joined approvals room Socket WNcLn6TroHIMF_-vAAPB joined procurement room New WebSocket connection: v64FXejfcfalkW0eAAPD â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: v64FXejfcfalkW0eAAPD WebSocket disconnected: WVqpFrK1_jzwiVnAAAPC WebSocket disconnected: WNcLn6TroHIMF_-vAAPB â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: wA2CpKl8kcJiB0TcAAPG New WebSocket connection: f-aCA27_UB7NL4ATAAPH Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Socket wA2CpKl8kcJiB0TcAAPG joined approvals room Socket wA2CpKl8kcJiB0TcAAPG joined procurement room New WebSocket connection: 5r5vttZL6zqcpze6AAPJ â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: wA2CpKl8kcJiB0TcAAPG WebSocket disconnected: f-aCA27_UB7NL4ATAAPH WebSocket disconnected: 5r5vttZL6zqcpze6AAPJ â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: rpE1K6Gb2lMuZOxHAAPM New WebSocket connection: crmVgnYrLEjiKbTlAAPN Socket rpE1K6Gb2lMuZOxHAAPM joined approvals room Socket rpE1K6Gb2lMuZOxHAAPM joined procurement room New WebSocket connection: L8CQ6gDfv8EXA6gBAAPP â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: rpE1K6Gb2lMuZOxHAAPM WebSocket disconnected: crmVgnYrLEjiKbTlAAPN WebSocket disconnected: L8CQ6gDfv8EXA6gBAAPP WebSocket disconnected: tifiKGYsmNWL2VDeAANK WebSocket disconnected: yVMLM1ca0HIt80IMAANH WebSocket disconnected: MInLb01-SPtbrcsDAANL â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: 7Ln0UaKvUQUT9zPIAAPT New WebSocket connection: gqz60C0HIc5ufkgjAAPU Socket 7Ln0UaKvUQUT9zPIAAPT joined approvals room Socket 7Ln0UaKvUQUT9zPIAAPT joined procurement room New WebSocket connection: 0x0TjjRchQ4RDoUuAAPV â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: 0x0TjjRchQ4RDoUuAAPV WebSocket disconnected: 7Ln0UaKvUQUT9zPIAAPT WebSocket disconnected: gqz60C0HIc5ufkgjAAPU â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: CcjIYIS871_vkM6GAAPY New WebSocket connection: TF-AmXbANzZ-ABQBAAPZ New WebSocket connection: oWDxv5dTOU7my2EqAAPc Socket oWDxv5dTOU7my2EqAAPc joined approvals room Socket oWDxv5dTOU7my2EqAAPc joined procurement room Socket CcjIYIS871_vkM6GAAPY joined approvals room Socket CcjIYIS871_vkM6GAAPY joined procurement room New WebSocket connection: fy-kVCoQOa_v8CcoAAPd â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: tJNPg0_JapeiMD89AAPf New WebSocket connection: 7JApFwms7PqyY7-kAAPh â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: fy-kVCoQOa_v8CcoAAPd WebSocket disconnected: oWDxv5dTOU7my2EqAAPc WebSocket disconnected: tJNPg0_JapeiMD89AAPf WebSocket disconnected: CcjIYIS871_vkM6GAAPY WebSocket disconnected: TF-AmXbANzZ-ABQBAAPZ WebSocket disconnected: 7JApFwms7PqyY7-kAAPh New WebSocket connection: 00-NO_FFqiHleqnyAAPj â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: TeMyiri7_y6unPy5AAPn New WebSocket connection: Lpo9IeZbDHrPv3xeAAPo â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Socket 00-NO_FFqiHleqnyAAPj joined approvals room Socket 00-NO_FFqiHleqnyAAPj joined procurement room New WebSocket connection: 59umyDu9hjnFf6KjAAPr Socket TeMyiri7_y6unPy5AAPn joined approvals room Socket TeMyiri7_y6unPy5AAPn joined procurement room New WebSocket connection: Fcw_8C2XY3hLfa-9AAPs New WebSocket connection: L1AuipbCY-8yhl0eAAPt â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: L1AuipbCY-8yhl0eAAPt WebSocket disconnected: 00-NO_FFqiHleqnyAAPj WebSocket disconnected: TeMyiri7_y6unPy5AAPn WebSocket disconnected: Lpo9IeZbDHrPv3xeAAPo WebSocket disconnected: Fcw_8C2XY3hLfa-9AAPs WebSocket disconnected: 59umyDu9hjnFf6KjAAPr New WebSocket connection: 4aZpDzQnvvYMCtD9AAPv Socket 4aZpDzQnvvYMCtD9AAPv joined approvals room Socket 4aZpDzQnvvYMCtD9AAPv joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: JdpmwUMfxkN8sEgnAAPz New WebSocket connection: L7Fzc32eMQ0EX_WjAAP0 â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: bUJhZCb8M2GpL8G-AAP3 Socket JdpmwUMfxkN8sEgnAAPz joined approvals room Socket JdpmwUMfxkN8sEgnAAPz joined procurement room New WebSocket connection: 7ebBF5DwKX1DSW3IAAP4 New WebSocket connection: FVspzsmT4w3gjhgrAAP5 â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: JdpmwUMfxkN8sEgnAAPz WebSocket disconnected: 7ebBF5DwKX1DSW3IAAP4 WebSocket disconnected: L7Fzc32eMQ0EX_WjAAP0 â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: xhBWijQFw-W-bIY4AAP8 New WebSocket connection: xeZl8Qi7-k4xGrYWAAP- Socket xhBWijQFw-W-bIY4AAP8 joined approvals room Socket xhBWijQFw-W-bIY4AAP8 joined procurement room New WebSocket connection: aXJlKIQrh0IUAyT-AAP_ â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: xhBWijQFw-W-bIY4AAP8 WebSocket disconnected: aXJlKIQrh0IUAyT-AAP_ WebSocket disconnected: xeZl8Qi7-k4xGrYWAAP- â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: l5u5b2U_nvoa4TkQAAQC New WebSocket connection: KpCJ0eHmIhOi8_8WAAQE Socket l5u5b2U_nvoa4TkQAAQC joined approvals room Socket l5u5b2U_nvoa4TkQAAQC joined procurement room New WebSocket connection: iRBfqmNJcrI2s4R-AAQF â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: l5u5b2U_nvoa4TkQAAQC WebSocket disconnected: iRBfqmNJcrI2s4R-AAQF WebSocket disconnected: KpCJ0eHmIhOi8_8WAAQE â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: sMkrO8i6vjbow2B7AAQJ New WebSocket connection: syQP9Sd22fPgy27dAAQK Socket sMkrO8i6vjbow2B7AAQJ joined approvals room Socket sMkrO8i6vjbow2B7AAQJ joined procurement room New WebSocket connection: 4Wj8qxwnsqXYNXm3AAQL â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: 4Wj8qxwnsqXYNXm3AAQL WebSocket disconnected: syQP9Sd22fPgy27dAAQK WebSocket disconnected: sMkrO8i6vjbow2B7AAQJ â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: HXDhesTjQ2Levo2NAAQP New WebSocket connection: Hr83ny_9hZweIx-5AAQQ New WebSocket connection: NbtXylZTIfVJO1_xAAQR Socket HXDhesTjQ2Levo2NAAQP joined approvals room Socket HXDhesTjQ2Levo2NAAQP joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: HXDhesTjQ2Levo2NAAQP WebSocket disconnected: NbtXylZTIfVJO1_xAAQR WebSocket disconnected: Hr83ny_9hZweIx-5AAQQ â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: cYPgI9wH53-p9BmfAAQV New WebSocket connection: U0ZCsMpSUe8eiMJKAAQW Socket cYPgI9wH53-p9BmfAAQV joined approvals room Socket cYPgI9wH53-p9BmfAAQV joined procurement room New WebSocket connection: xzmpVg5IKCFodmoIAAQX â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 MIDDLEWARE EXECUTING for path: /operations/check method: POST 🔍 authHeader: missing fallbackToken: supply-chain-service-token 🔍 Checking fallback token: supply-chain-service-token valid tokens: [ 'internal-service', 'supply-chain-service-token' ] ✅ Valid fallback token found, proceeding 🔍 Set req.serviceToken: { service: 'supply-chain-service', scopes: [ 'ops.check' ] } 🔍 checkApprovalRequiredInternal called with: { module: 'supply_chain', operation: 'create_purchase_order' } No condition or payload, defaulting to requiresApproval = true â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 🔍 MIDDLEWARE EXECUTING for path: /operations/queue method: POST 🔍 authHeader: missing fallbackToken: supply-chain-service-token 🔍 Checking fallback token: supply-chain-service-token valid tokens: [ 'internal-service', 'supply-chain-service-token' ] ✅ Valid fallback token found, proceeding 🔍 Set req.serviceToken: { service: 'supply-chain-service', scopes: [ 'ops.queue' ] } 🔍 checkApprovalRequiredInternal called with: { module: 'supply_chain', operation: 'create_purchase_order' } No condition or payload, defaulting to requiresApproval = true Error logging system action: Error: Column 'step_id' cannot be null at PromisePool.query (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:36:22) at logSystemAction (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:33:18) at queueOperation (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:1417:23) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) { code: 'ER_BAD_NULL_ERROR', errno: 1048, sql: 'INSERT INTO approval_actions (request_id, step_id, actor_id, actor_name, action, comment)\n' + " VALUES (107, NULL, 0, 'System', 'request_created', 'Approval request created for supply_chain - create_purchase_order')", sqlState: '23000', sqlMessage: "Column 'step_id' cannot be null" } 🔍 initializeFirstStep called with requestId: 107 workflowId: 1 🔍 firstStep result: [ { id: 42, workflow_id: 1, step_order: 1, mode: 'serial', quorum: 3, assignees: [ [Object], [Object], [Object] ], sla_minutes: 1440, created_at: 2025-11-18T01:46:50.000Z, updated_at: 2025-11-18T01:46:50.000Z } ] 🔍 Found step: 42 🔍 Step progress inserted, result: ResultSetHeader { fieldCount: 0, affectedRows: 1, insertId: 156, info: '', serverStatus: 2, warningStatus: 0, changedRows: 0 } đŸ“Ŧ Workflow notification sent to user 8: approval_needed đŸ“Ŧ Workflow notification sent to user 4: approval_needed đŸ“Ŧ Workflow notification sent to user 2: approval_needed 📡 Emitted new_approval_request to room approvals: { requestId: 107, workflowId: 1, title: 'Supply Chain - Create Purchase Order', module: 'supply_chain', operation: 'create_purchase_order', requesterId: '8', requesterName: 'head supply', resourceRef: 'SUPPLY_CHAIN-CREATE_PURCHASE_ORDER-1763529342991', correlationId: 'SC-PO-1763529342991', timestamp: '2025-11-19T05:15:43.092Z' } Failed to create workflow notification: Error: Incorrect integer value: 'supply-chain-service' for column 'user_id' at row 1 at PromisePool.query (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:36:22) at Object.createNotification (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/services/notificationService.js:5:31) at notifyWorkflowEvent (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:112:35) at queueOperation (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/workflowController.js:1437:27) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) { code: 'ER_TRUNCATED_WRONG_VALUE_FOR_FIELD', errno: 1366, sql: 'INSERT INTO notifications (user_id, title, message, link, type, priority, icon, source_module, payload)\n' + ` VALUES ('supply-chain-service', 'New Approval Request', 'supply_chain - create_purchase_order: Supply Chain - Create Purchase Order', '/dashboard/pending-approvals', 'info', 'normal', 'assignment', 'workflow', '{\\"requestId\\":107,\\"title\\":\\"Supply Chain - Create Purchase Order\\",\\"module\\":\\"supply_chain\\",\\"operation\\":\\"create_purchase_order\\"}')`, sqlState: 'HY000', sqlMessage: "Incorrect integer value: 'supply-chain-service' for column 'user_id' at row 1" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback 📡 Emitted request_approved to room approvals: { requestId: '107', stepId: 42, approverId: '8', approverName: 'head supply', comment: undefined, timestamp: '2025-11-19T05:15:56.231Z' } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "CREATE" (length: 6) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: xzmpVg5IKCFodmoIAAQX WebSocket disconnected: U0ZCsMpSUe8eiMJKAAQW WebSocket disconnected: cYPgI9wH53-p9BmfAAQV â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: O2mwLu8AZ1-9xCFBAAQa Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: 2BzQOUdHIOaJ39IfAAQb Socket O2mwLu8AZ1-9xCFBAAQa joined approvals room Socket O2mwLu8AZ1-9xCFBAAQa joined procurement room New WebSocket connection: INdU9a8Qkg5SiqjsAAQd â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: INdU9a8Qkg5SiqjsAAQd WebSocket disconnected: 2BzQOUdHIOaJ39IfAAQb WebSocket disconnected: O2mwLu8AZ1-9xCFBAAQa â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: QRJqXYxVZt0UGt77AAQg New WebSocket connection: EIh3YWmCo0JdqIIbAAQh Socket QRJqXYxVZt0UGt77AAQg joined approvals room Socket QRJqXYxVZt0UGt77AAQg joined procurement room New WebSocket connection: 95kJfqbsKn77KjKQAAQj â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: bUJhZCb8M2GpL8G-AAP3 WebSocket disconnected: FVspzsmT4w3gjhgrAAP5 WebSocket disconnected: QRJqXYxVZt0UGt77AAQg WebSocket disconnected: EIh3YWmCo0JdqIIbAAQh WebSocket disconnected: 95kJfqbsKn77KjKQAAQj WebSocket disconnected: 4aZpDzQnvvYMCtD9AAPv New WebSocket connection: cYZZhpNENHDNk0kyAAQn New WebSocket connection: Fxl_hQV0m_E-XmmKAAQo New WebSocket connection: ypRu0qTGp_ARGj8DAAQp Socket Fxl_hQV0m_E-XmmKAAQo joined approvals room Socket Fxl_hQV0m_E-XmmKAAQo joined procurement room WebSocket disconnected: Fxl_hQV0m_E-XmmKAAQo WebSocket disconnected: cYZZhpNENHDNk0kyAAQn WebSocket disconnected: ypRu0qTGp_ARGj8DAAQp New WebSocket connection: 4CNNj47FGrPapf_RAAQt New WebSocket connection: AhyDDQBXcy5skGySAAQu New WebSocket connection: t6rDIhMZddYi8mIqAAQv Socket t6rDIhMZddYi8mIqAAQv joined approvals room Socket t6rDIhMZddYi8mIqAAQv joined procurement room WebSocket disconnected: 4CNNj47FGrPapf_RAAQt WebSocket disconnected: t6rDIhMZddYi8mIqAAQv WebSocket disconnected: AhyDDQBXcy5skGySAAQu New WebSocket connection: U4Mz8ur4R_OfzrKyAAQy Socket U4Mz8ur4R_OfzrKyAAQy joined approvals room Socket U4Mz8ur4R_OfzrKyAAQy joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: 0Yd3Sz4RRMAG7P-6AAQ2 New WebSocket connection: Tp50zbtQA1jdamtwAAQ4 New WebSocket connection: jAofALx2q9740O99AAQ5 New WebSocket connection: oqU-W41UNHl7jfllAAQ6 â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: pqUwf9wPg6EzZCFyAAQ8 Socket pqUwf9wPg6EzZCFyAAQ8 joined approvals room Socket pqUwf9wPg6EzZCFyAAQ8 joined procurement room WebSocket disconnected: oqU-W41UNHl7jfllAAQ6 WebSocket disconnected: jAofALx2q9740O99AAQ5 WebSocket disconnected: pqUwf9wPg6EzZCFyAAQ8 â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: SLoDHyLJOpgfhw8EAARA New WebSocket connection: KQRDEphWi3KWm9VwAARB Socket SLoDHyLJOpgfhw8EAARA joined approvals room Socket SLoDHyLJOpgfhw8EAARA joined procurement room New WebSocket connection: zE5TM-65Klb40zgrAARC WebSocket disconnected: zE5TM-65Klb40zgrAARC WebSocket disconnected: KQRDEphWi3KWm9VwAARB WebSocket disconnected: SLoDHyLJOpgfhw8EAARA â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: YguPyd8O11QuS0W5AARG New WebSocket connection: qDEmc-RLPiaJY4O7AARH Socket YguPyd8O11QuS0W5AARG joined approvals room Socket YguPyd8O11QuS0W5AARG joined procurement room New WebSocket connection: iRLB0fksQHcWDmxCAARI WebSocket disconnected: YguPyd8O11QuS0W5AARG WebSocket disconnected: iRLB0fksQHcWDmxCAARI WebSocket disconnected: qDEmc-RLPiaJY4O7AARH â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: OgKjodsxVU_OO8pGAARM New WebSocket connection: qG54fZyGWNdbebvHAARN New WebSocket connection: 0MnQ8waZrcKf76pcAARO Socket OgKjodsxVU_OO8pGAARM joined approvals room Socket OgKjodsxVU_OO8pGAARM joined procurement room WebSocket disconnected: 0MnQ8waZrcKf76pcAARO WebSocket disconnected: qG54fZyGWNdbebvHAARN WebSocket disconnected: OgKjodsxVU_OO8pGAARM â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: hJ0kztWYYpqSVmR8AARS New WebSocket connection: mirNL8UfjXQkSR4aAART Socket hJ0kztWYYpqSVmR8AARS joined approvals room Socket hJ0kztWYYpqSVmR8AARS joined procurement room New WebSocket connection: Qgd6_IwS6ZeauLcLAARU â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: mirNL8UfjXQkSR4aAART WebSocket disconnected: hJ0kztWYYpqSVmR8AARS WebSocket disconnected: Qgd6_IwS6ZeauLcLAARU â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: jyuRCtG2UoxxMgfLAARY New WebSocket connection: JtFizH1JDWrdZeqEAARZ Socket jyuRCtG2UoxxMgfLAARY joined approvals room Socket jyuRCtG2UoxxMgfLAARY joined procurement room New WebSocket connection: 2V5hN_4K21gnyc8qAARa â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback WebSocket disconnected: jyuRCtG2UoxxMgfLAARY WebSocket disconnected: 2V5hN_4K21gnyc8qAARa WebSocket disconnected: JtFizH1JDWrdZeqEAARZ New WebSocket connection: MyzXZw67mmqmPgiGAARc â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Socket MyzXZw67mmqmPgiGAARc joined approvals room Socket MyzXZw67mmqmPgiGAARc joined procurement room New WebSocket connection: j6MxWcJC_Nj3SBYmAARe New WebSocket connection: _VFq-0isaxZbPKusAARg WebSocket disconnected: _VFq-0isaxZbPKusAARg WebSocket disconnected: j6MxWcJC_Nj3SBYmAARe WebSocket disconnected: MyzXZw67mmqmPgiGAARc New WebSocket connection: UfStohXJXu5QoG9iAARi â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Socket UfStohXJXu5QoG9iAARi joined approvals room Socket UfStohXJXu5QoG9iAARi joined procurement room New WebSocket connection: NCwwS1xIEnqpQwR4AARl New WebSocket connection: EfUJncNdOQ1ilFbYAARm WebSocket disconnected: U4Mz8ur4R_OfzrKyAAQy WebSocket disconnected: 0Yd3Sz4RRMAG7P-6AAQ2 WebSocket disconnected: Tp50zbtQA1jdamtwAAQ4 WebSocket disconnected: UfStohXJXu5QoG9iAARi WebSocket disconnected: NCwwS1xIEnqpQwR4AARl WebSocket disconnected: EfUJncNdOQ1ilFbYAARm New WebSocket connection: M1S25k9KUS_ZS6NnAARo Socket M1S25k9KUS_ZS6NnAARo joined approvals room Socket M1S25k9KUS_ZS6NnAARo joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: XASv8Z_uLMoST2CAAARs Socket XASv8Z_uLMoST2CAAARs joined approvals room Socket XASv8Z_uLMoST2CAAARs joined procurement room New WebSocket connection: 4k-3T8x_nfoDvD91AARt â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: GyeHaLv8pV_vLPulAARw New WebSocket connection: qWBN_oyF4LNFlGkWAARx New WebSocket connection: DW6JiYq5e1836j-cAARy WebSocket disconnected: M1S25k9KUS_ZS6NnAARo WebSocket disconnected: GyeHaLv8pV_vLPulAARw WebSocket disconnected: qWBN_oyF4LNFlGkWAARx WebSocket disconnected: XASv8Z_uLMoST2CAAARs WebSocket disconnected: 4k-3T8x_nfoDvD91AARt WebSocket disconnected: DW6JiYq5e1836j-cAARy New WebSocket connection: JEtC9dfim9HldavgAAR0 Socket JEtC9dfim9HldavgAAR0 joined approvals room Socket JEtC9dfim9HldavgAAR0 joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: 7RVK3WETUy46d_rUAAR3 New WebSocket connection: TmBe6NPOqLomGCd9AAR4 â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: I0HwxD26phaoIzZxAAR8 New WebSocket connection: lgn3_s_jLNPCENi7AAR9 Socket I0HwxD26phaoIzZxAAR8 joined approvals room Socket I0HwxD26phaoIzZxAAR8 joined procurement room New WebSocket connection: 6mNzbjzeocaZWuEKAAR- WebSocket disconnected: 7RVK3WETUy46d_rUAAR3 WebSocket disconnected: JEtC9dfim9HldavgAAR0 WebSocket disconnected: TmBe6NPOqLomGCd9AAR4 WebSocket disconnected: I0HwxD26phaoIzZxAAR8 WebSocket disconnected: lgn3_s_jLNPCENi7AAR9 WebSocket disconnected: 6mNzbjzeocaZWuEKAAR- New WebSocket connection: zbFRb49mL4P33HHKAASA Socket zbFRb49mL4P33HHKAASA joined approvals room Socket zbFRb49mL4P33HHKAASA joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: kXxslOPsWeHmXtn0AASD New WebSocket connection: FM82AePgBke9x5vtAASE â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: gNx392cwMCzFZBcvAASI New WebSocket connection: hvgOvWShXRTgABUQAASJ Socket gNx392cwMCzFZBcvAASI joined approvals room Socket gNx392cwMCzFZBcvAASI joined procurement room New WebSocket connection: y_y35mjqv1GwWrQUAASK WebSocket disconnected: zbFRb49mL4P33HHKAASA WebSocket disconnected: kXxslOPsWeHmXtn0AASD WebSocket disconnected: FM82AePgBke9x5vtAASE WebSocket disconnected: gNx392cwMCzFZBcvAASI WebSocket disconnected: hvgOvWShXRTgABUQAASJ WebSocket disconnected: y_y35mjqv1GwWrQUAASK New WebSocket connection: _rjvhwUq6e8RSAt5AASM Socket _rjvhwUq6e8RSAt5AASM joined approvals room Socket _rjvhwUq6e8RSAt5AASM joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: HXjtIXFGamxSPJpKAASP New WebSocket connection: 7Ho5TZuiBMnetpN0AASQ â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: 0N6lgh_MaVQXYB0CAASU New WebSocket connection: gD7ztoYNzpR_fHlvAASV Socket 0N6lgh_MaVQXYB0CAASU joined approvals room Socket 0N6lgh_MaVQXYB0CAASU joined procurement room New WebSocket connection: cwVyNklQkfrLQwPjAASW WebSocket disconnected: _rjvhwUq6e8RSAt5AASM WebSocket disconnected: HXjtIXFGamxSPJpKAASP WebSocket disconnected: 7Ho5TZuiBMnetpN0AASQ WebSocket disconnected: 0N6lgh_MaVQXYB0CAASU WebSocket disconnected: gD7ztoYNzpR_fHlvAASV WebSocket disconnected: cwVyNklQkfrLQwPjAASW New WebSocket connection: NjEuHgAGcJpokykiAASY Socket NjEuHgAGcJpokykiAASY joined approvals room Socket NjEuHgAGcJpokykiAASY joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: JZ9XgWvgHSTeL4SVAASb New WebSocket connection: Gk8qZfX1iI-u4rmvAASc â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: PBkyA_qSgSJNcNKuAASg New WebSocket connection: GA5NFOLzJntkNObcAASh Socket PBkyA_qSgSJNcNKuAASg joined approvals room Socket PBkyA_qSgSJNcNKuAASg joined procurement room New WebSocket connection: tmcz1jX3nLt8MWv1AASi WebSocket disconnected: NjEuHgAGcJpokykiAASY WebSocket disconnected: JZ9XgWvgHSTeL4SVAASb WebSocket disconnected: Gk8qZfX1iI-u4rmvAASc WebSocket disconnected: PBkyA_qSgSJNcNKuAASg WebSocket disconnected: GA5NFOLzJntkNObcAASh WebSocket disconnected: tmcz1jX3nLt8MWv1AASi New WebSocket connection: 83R6IaWW603oYqcxAASk Socket 83R6IaWW603oYqcxAASk joined approvals room Socket 83R6IaWW603oYqcxAASk joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: F5ZlAptiA1uVRkEgAASn New WebSocket connection: TM1WLDUo6c62V7JfAASo â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: wSfye_SHgT_gpcWAAASs New WebSocket connection: fQ4loLOTFS3yijbEAASt Socket wSfye_SHgT_gpcWAAASs joined approvals room Socket wSfye_SHgT_gpcWAAASs joined procurement room New WebSocket connection: gcf1kmY56QPx_L3XAASu WebSocket disconnected: wSfye_SHgT_gpcWAAASs WebSocket disconnected: fQ4loLOTFS3yijbEAASt WebSocket disconnected: gcf1kmY56QPx_L3XAASu WebSocket disconnected: 83R6IaWW603oYqcxAASk WebSocket disconnected: F5ZlAptiA1uVRkEgAASn WebSocket disconnected: TM1WLDUo6c62V7JfAASo New WebSocket connection: AXG41DPoNKQTdj4SAASw Socket AXG41DPoNKQTdj4SAASw joined approvals room Socket AXG41DPoNKQTdj4SAASw joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: H9wrCm_PbYV418jIAASz New WebSocket connection: RUGZwhYB9wDh7M4dAAS0 â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: olNHBv3YPC8RBVhGAAS4 New WebSocket connection: 65K3ym3ve0vnmSi2AAS5 Socket olNHBv3YPC8RBVhGAAS4 joined approvals room Socket olNHBv3YPC8RBVhGAAS4 joined procurement room New WebSocket connection: fXK_PFtjGQm3qXfBAAS6 WebSocket disconnected: RUGZwhYB9wDh7M4dAAS0 WebSocket disconnected: AXG41DPoNKQTdj4SAASw WebSocket disconnected: H9wrCm_PbYV418jIAASz WebSocket disconnected: olNHBv3YPC8RBVhGAAS4 WebSocket disconnected: 65K3ym3ve0vnmSi2AAS5 WebSocket disconnected: fXK_PFtjGQm3qXfBAAS6 New WebSocket connection: U5JVx6bhCnIT1vLfAAS8 Socket U5JVx6bhCnIT1vLfAAS8 joined approvals room Socket U5JVx6bhCnIT1vLfAAS8 joined procurement room Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: shcwdMC6o868FnOIAAS_ New WebSocket connection: 3FZS6VxP71eJ3lzuAATA â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: ipbxrKS3SgUEM2dAAATD New WebSocket connection: Vn9Jp5iNT6uPX2EqAATF Socket ipbxrKS3SgUEM2dAAATD joined approvals room Socket ipbxrKS3SgUEM2dAAATD joined procurement room New WebSocket connection: YSGYp_i_gVwgosBeAATG WebSocket disconnected: U5JVx6bhCnIT1vLfAAS8 WebSocket disconnected: shcwdMC6o868FnOIAAS_ WebSocket disconnected: 3FZS6VxP71eJ3lzuAATA WebSocket disconnected: ipbxrKS3SgUEM2dAAATD WebSocket disconnected: Vn9Jp5iNT6uPX2EqAATF WebSocket disconnected: YSGYp_i_gVwgosBeAATG New WebSocket connection: WZUPA0UOdJq4Btx4AATI Socket WZUPA0UOdJq4Btx4AATI joined approvals room Socket WZUPA0UOdJq4Btx4AATI joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: fgffeTw3Q_2HWnxkAATL New WebSocket connection: 0PGgZynfIgZ4kh9WAATM â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: QsnDSyEBOeuAGALQAATQ New WebSocket connection: E_O-X8FW07Hcq0nMAATR Socket QsnDSyEBOeuAGALQAATQ joined approvals room Socket QsnDSyEBOeuAGALQAATQ joined procurement room New WebSocket connection: Hhp_iWn1wsvbzb9pAATS WebSocket disconnected: WZUPA0UOdJq4Btx4AATI WebSocket disconnected: fgffeTw3Q_2HWnxkAATL WebSocket disconnected: 0PGgZynfIgZ4kh9WAATM WebSocket disconnected: Hhp_iWn1wsvbzb9pAATS WebSocket disconnected: QsnDSyEBOeuAGALQAATQ WebSocket disconnected: E_O-X8FW07Hcq0nMAATR New WebSocket connection: LospbifkceHc7MFNAATU Socket LospbifkceHc7MFNAATU joined approvals room Socket LospbifkceHc7MFNAATU joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: DzrdVaCScmQVtK5zAATX New WebSocket connection: jiaAT8XxDgS6XUGiAATY â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: _GIEy5_5hOKbsbpeAATb Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: M-M-_DyJ_2i3UgV7AATc Socket _GIEy5_5hOKbsbpeAATb joined approvals room Socket _GIEy5_5hOKbsbpeAATb joined procurement room New WebSocket connection: HEmLaM5kLjGIrSlrAATe WebSocket disconnected: DzrdVaCScmQVtK5zAATX WebSocket disconnected: LospbifkceHc7MFNAATU WebSocket disconnected: jiaAT8XxDgS6XUGiAATY WebSocket disconnected: _GIEy5_5hOKbsbpeAATb WebSocket disconnected: M-M-_DyJ_2i3UgV7AATc WebSocket disconnected: HEmLaM5kLjGIrSlrAATe New WebSocket connection: a7uMGE6PQuAykFzEAATg Socket a7uMGE6PQuAykFzEAATg joined approvals room Socket a7uMGE6PQuAykFzEAATg joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: fPv-iid72EN2vm_DAATj New WebSocket connection: FvAhVNJuxsdemOy6AATk â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: 2XRjBjLUvvVqjGp5AATo New WebSocket connection: k8e3ftA3blmU861wAATp Socket 2XRjBjLUvvVqjGp5AATo joined approvals room Socket 2XRjBjLUvvVqjGp5AATo joined procurement room New WebSocket connection: ixK19NNFCL3ECwBKAATq WebSocket disconnected: FvAhVNJuxsdemOy6AATk WebSocket disconnected: a7uMGE6PQuAykFzEAATg WebSocket disconnected: fPv-iid72EN2vm_DAATj WebSocket disconnected: 2XRjBjLUvvVqjGp5AATo WebSocket disconnected: ixK19NNFCL3ECwBKAATq WebSocket disconnected: k8e3ftA3blmU861wAATp New WebSocket connection: TEyh5UrVQjXgoeKBAATs Socket TEyh5UrVQjXgoeKBAATs joined approvals room Socket TEyh5UrVQjXgoeKBAATs joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: -N0nm1-kff-x6I-sAATv New WebSocket connection: IQUterHEro4IhTwyAATw â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: DEXBTatzVpGcn5FJAAT0 New WebSocket connection: K4FkxDZiFZ7sDJjzAAT1 Socket DEXBTatzVpGcn5FJAAT0 joined approvals room Socket DEXBTatzVpGcn5FJAAT0 joined procurement room New WebSocket connection: syk6UbdA-ggl6ggMAAT2 WebSocket disconnected: TEyh5UrVQjXgoeKBAATs WebSocket disconnected: IQUterHEro4IhTwyAATw WebSocket disconnected: -N0nm1-kff-x6I-sAATv WebSocket disconnected: DEXBTatzVpGcn5FJAAT0 WebSocket disconnected: K4FkxDZiFZ7sDJjzAAT1 WebSocket disconnected: syk6UbdA-ggl6ggMAAT2 New WebSocket connection: 4FpdWX20xB3hJ2VTAAT4 Socket 4FpdWX20xB3hJ2VTAAT4 joined approvals room Socket 4FpdWX20xB3hJ2VTAAT4 joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: Ai9cSF27BcsGeBioAAT7 New WebSocket connection: -VkeY2HNKfoY6DdtAAT8 â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: JcfQFqli8lORyrxJAAUA New WebSocket connection: oAJ-FZi4MBf6dxD1AAUB Socket JcfQFqli8lORyrxJAAUA joined approvals room Socket JcfQFqli8lORyrxJAAUA joined procurement room New WebSocket connection: YxaS4H5z2mMtrCtdAAUC WebSocket disconnected: 4FpdWX20xB3hJ2VTAAT4 WebSocket disconnected: Ai9cSF27BcsGeBioAAT7 WebSocket disconnected: -VkeY2HNKfoY6DdtAAT8 WebSocket disconnected: oAJ-FZi4MBf6dxD1AAUB WebSocket disconnected: JcfQFqli8lORyrxJAAUA WebSocket disconnected: YxaS4H5z2mMtrCtdAAUC New WebSocket connection: C9kTYh5jYq5ck4anAAUE Socket C9kTYh5jYq5ck4anAAUE joined approvals room Socket C9kTYh5jYq5ck4anAAUE joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: fF-Xq5Cs0gUVpIGyAAUH New WebSocket connection: lLXa86tyjryN1FhXAAUI â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: _Y6aNpSMJtHh77hUAAUM New WebSocket connection: muAK9m5nah6DRPBDAAUN Socket _Y6aNpSMJtHh77hUAAUM joined approvals room Socket _Y6aNpSMJtHh77hUAAUM joined procurement room New WebSocket connection: _SsWInJ3hUuCYwI6AAUO WebSocket disconnected: lLXa86tyjryN1FhXAAUI WebSocket disconnected: C9kTYh5jYq5ck4anAAUE WebSocket disconnected: fF-Xq5Cs0gUVpIGyAAUH WebSocket disconnected: _Y6aNpSMJtHh77hUAAUM WebSocket disconnected: muAK9m5nah6DRPBDAAUN WebSocket disconnected: _SsWInJ3hUuCYwI6AAUO New WebSocket connection: DPEgIIN7aTaAPDF2AAUQ Socket DPEgIIN7aTaAPDF2AAUQ joined approvals room Socket DPEgIIN7aTaAPDF2AAUQ joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: 6Yc2O2VXrA2i3y5AAAUT New WebSocket connection: dQ8UjrFv9fAvX1PzAAUU â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: ooCvz0YXLYamXJbaAAUX New WebSocket connection: POwhI_wgA2_RqWw5AAUY Socket ooCvz0YXLYamXJbaAAUX joined approvals room Socket ooCvz0YXLYamXJbaAAUX joined procurement room New WebSocket connection: 4rasPUl_YkZb-OgIAAUa WebSocket disconnected: DPEgIIN7aTaAPDF2AAUQ WebSocket disconnected: 6Yc2O2VXrA2i3y5AAAUT WebSocket disconnected: dQ8UjrFv9fAvX1PzAAUU WebSocket disconnected: ooCvz0YXLYamXJbaAAUX WebSocket disconnected: POwhI_wgA2_RqWw5AAUY WebSocket disconnected: 4rasPUl_YkZb-OgIAAUa New WebSocket connection: K4Dm7qUSx0PC2UVnAAUc Socket K4Dm7qUSx0PC2UVnAAUc joined approvals room Socket K4Dm7qUSx0PC2UVnAAUc joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: 90yhQZiOs8-WFmSaAAUe â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: NPvbJM0gSMxODDTKAAUg â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: BHPKtkt3FTxeUn6CAAUk New WebSocket connection: faX6UPnPkHNgrhOAAAUl Socket BHPKtkt3FTxeUn6CAAUk joined approvals room Socket BHPKtkt3FTxeUn6CAAUk joined procurement room New WebSocket connection: ug_lwFOMyVNeTP7jAAUm WebSocket disconnected: K4Dm7qUSx0PC2UVnAAUc WebSocket disconnected: 90yhQZiOs8-WFmSaAAUe WebSocket disconnected: NPvbJM0gSMxODDTKAAUg WebSocket disconnected: faX6UPnPkHNgrhOAAAUl WebSocket disconnected: BHPKtkt3FTxeUn6CAAUk WebSocket disconnected: ug_lwFOMyVNeTP7jAAUm New WebSocket connection: _f5PzHx3Y_n79qSkAAUo Socket _f5PzHx3Y_n79qSkAAUo joined approvals room Socket _f5PzHx3Y_n79qSkAAUo joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: 0zBFVsNBTD51M9-bAAUr New WebSocket connection: V_ErjTsCyy1m6goEAAUs â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: ux5uEIJHOpK-JWkqAAUv New WebSocket connection: MEolSb2_AqU85T_8AAUx Socket ux5uEIJHOpK-JWkqAAUv joined approvals room Socket ux5uEIJHOpK-JWkqAAUv joined procurement room New WebSocket connection: PEh7kYvLxhTT60Y9AAUy WebSocket disconnected: ux5uEIJHOpK-JWkqAAUv WebSocket disconnected: _f5PzHx3Y_n79qSkAAUo WebSocket disconnected: 0zBFVsNBTD51M9-bAAUr WebSocket disconnected: V_ErjTsCyy1m6goEAAUs WebSocket disconnected: MEolSb2_AqU85T_8AAUx WebSocket disconnected: PEh7kYvLxhTT60Y9AAUy New WebSocket connection: 01C2AsDDpYKLBPIaAAU0 Socket 01C2AsDDpYKLBPIaAAU0 joined approvals room Socket 01C2AsDDpYKLBPIaAAU0 joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: xrP2aYp5sTxctGYwAAU3 New WebSocket connection: 1cXhKBmyXL9uALB0AAU4 â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: CoOtOzdcZLEuBtqwAAU8 New WebSocket connection: 6IVz8Q-9sw9sC8nZAAU9 Socket CoOtOzdcZLEuBtqwAAU8 joined approvals room Socket CoOtOzdcZLEuBtqwAAU8 joined procurement room New WebSocket connection: DTQCHfysbAkON-YkAAU- WebSocket disconnected: 01C2AsDDpYKLBPIaAAU0 WebSocket disconnected: xrP2aYp5sTxctGYwAAU3 WebSocket disconnected: 1cXhKBmyXL9uALB0AAU4 WebSocket disconnected: CoOtOzdcZLEuBtqwAAU8 WebSocket disconnected: 6IVz8Q-9sw9sC8nZAAU9 WebSocket disconnected: DTQCHfysbAkON-YkAAU- New WebSocket connection: 49795Pn-w5ehs_DrAAVA Socket 49795Pn-w5ehs_DrAAVA joined approvals room Socket 49795Pn-w5ehs_DrAAVA joined procurement room â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: xqlpnypVjpQvDdymAAVD New WebSocket connection: qudVWXbX_KXvTUvKAAVE â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback Error getting user conversations: Error: Unknown column 'message_content' in 'field list' at PromisePool.execute (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/mysql2/lib/promise/pool.js:54:22) at ChatModel.getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/models/chatModel.js:68:37) at getUserConversations (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/controllers/chatController.js:47:51) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:149:13) at Route.dispatch (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/route.js:119:3) at Layer.handle [as handle_request] (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/layer.js:95:5) at /Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:284:15 at Function.process_params (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:346:12) at next (/Users/maiabdu/app/hybrid-all/API-Hybrid-Auth/node_modules/express/lib/router/index.js:280:10) { code: 'ER_BAD_FIELD_ERROR', errno: 1054, sql: '\n' + ' SELECT \n' + ' c.id,\n' + ' c.title,\n' + ' c.type,\n' + ' c.created_at,\n' + ' c.updated_at,\n' + ' COUNT(cp.user_id) as participant_count,\n' + ' (SELECT message_content FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message,\n' + ' (SELECT created_at FROM messages WHERE conversation_id = c.id ORDER BY created_at DESC LIMIT 1) as last_message_time,\n' + ' (SELECT u2.name FROM messages m2 INNER JOIN users u2 ON m2.sender_id = u2.id WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_name,\n' + ' (SELECT m2.sender_id FROM messages m2 WHERE m2.conversation_id = c.id ORDER BY m2.created_at DESC LIMIT 1) as last_message_sender_id,\n' + ' COALESCE((\n' + ' SELECT COUNT(*)\n' + ' FROM messages m\n' + ' WHERE m.conversation_id = c.id\n' + " AND m.created_at > COALESCE(cp.last_read_at, '1970-01-01')\n" + ' ), 0) as unread_count\n' + ' FROM conversations c\n' + ' INNER JOIN conversation_participants cp ON c.id = cp.conversation_id\n' + ' WHERE cp.user_id = ?\n' + ' GROUP BY c.id, cp.last_read_at\n' + ' ORDER BY c.updated_at DESC\n' + ' ', sqlState: '42S22', sqlMessage: "Unknown column 'message_content' in 'field list'" } â„šī¸ LOGGING_API_URL not configured, skipping external logging ❌ Failed to send log to external server: LOGGING_API_URL not configured 🔍 Attempting to insert log with event_type: "READ" (length: 4) đŸšĢ Temporarily skipping database insert to avoid truncation error ✅ Log saved to local database as a fallback New WebSocket connection: sz9LJp77hpmbDfjTAAVI New WebSocket connection: -Azg3xliWjzzfMOKAAVJ Socket sz9LJp77hpmbDfjTAAVI joined approvals room Socket sz9LJp77hpmbDfjTAAVI joined procurement room New WebSocket connection: 8JS4ptxdVv4hVxtgAAVK