# SerpentRace Backend Logs # Started: 2025-09-15T15:02:49.386Z # Max entries per file: 10000 2025-09-15T15:02:51.122Z | [STARTUP] | SerpentRace Backend starting up | Meta:{"environment":"development","port":"3000","nodeVersion":"v20.19.5","chatInactivityTimeout":"30"} 2025-09-15T15:02:51.135Z | [STARTUP] | Server started successfully | Meta:{"port":"3000","environment":"development","timestamp":"2025-09-15T15:02:51.135Z","endpoints":{"health":"/health","swagger":"/api-docs","users":"/api/users","organizations":"/api/organizations","decks":"/api/decks","chats":"/api/chats"},"websocket":{"enabled":true,"chatInactivityTimeout":"30 minutes"}} 2025-09-15T15:02:52.038Z | [CONNECTION] | Database connection established | Meta:{"connectionType":"postgresql","status":"success","type":"postgres","host":"postgres","database":"serpentrace"} 2025-09-15T15:02:52.042Z | [REQUEST] | WebSocket service initialized | Meta:{"chatTimeoutMinutes":30} 2025-09-15T15:02:52.044Z | [STARTUP] | WebSocket service initialized | Meta:{"chatInactivityTimeout":"30"} 2025-09-15T15:02:52.046Z | [STARTUP] | Redis client connected successfully 2025-09-15T15:02:55.984Z | [REQUEST] | Incoming request | ReqId:teg470jjc | IP:::ffff:172.20.0.1 | POST /api/games/9e7ae048-8bc7-4d4b-b3aa-c173465bb003/start | UA:PostmanRuntime/7.45.0 2025-09-15T15:02:55.986Z | [REQUEST] | POST /api/games/9e7ae048-8bc7-4d4b-b3aa-c173465bb003/start | ReqId:teg470jjc | IP:::ffff:172.20.0.1 | POST /api/games/9e7ae048-8bc7-4d4b-b3aa-c173465bb003/start | Status:200 | UA:PostmanRuntime/7.45.0 2025-09-15T15:02:55.992Z | [AUTH] | Authentication successful | ReqId:teg470jjc | IP:::ffff:172.20.0.1 | POST /api/games/9e7ae048-8bc7-4d4b-b3aa-c173465bb003/start | UA:PostmanRuntime/7.45.0 | Meta:{"userId":"ffa31617-2cf9-403e-ab9d-87eeec85ce58","authLevel":1,"orgId":""} 2025-09-15T15:02:55.994Z | [REQUEST] | Start gameplay endpoint accessed | ReqId:teg470jjc | UserId:ffa31617-2cf9-403e-ab9d-87eeec85ce58 | IP:::ffff:172.20.0.1 | POST /api/games/9e7ae048-8bc7-4d4b-b3aa-c173465bb003/start | Status:200 | UA:PostmanRuntime/7.45.0 | Meta:{"userId":"ffa31617-2cf9-403e-ab9d-87eeec85ce58","gameId":"9e7ae048-8bc7-4d4b-b3aa-c173465bb003"} 2025-09-15T15:02:55.996Z | [OTHER] | GameService.startGamePlay called | Meta:{"gameId":"9e7ae048-8bc7-4d4b-b3aa-c173465bb003","userId":"ffa31617-2cf9-403e-ab9d-87eeec85ce58"} 2025-09-15T15:02:55.998Z | [OTHER] | Start game play input validation passed | Meta:{"gameId":"9e7ae048-8bc7-4d4b-b3aa-c173465bb003"} 2025-09-15T15:02:55.999Z | [OTHER] | Starting game play | Meta:"gameId: 9e7ae048-8bc7-4d4b-b3aa-c173465bb003, userId: ffa31617-2cf9-403e-ab9d-87eeec85ce58" 2025-09-15T15:02:56.010Z | [DATABASE] | Game findById completed | Meta:{"query":"executionTime: 9ms, gameId: 9e7ae048-8bc7-4d4b-b3aa-c173465bb003, found: true"} 2025-09-15T15:02:56.017Z | [ERROR] | Failed to start game play | Meta:{"name":"Error","message":"Game is not in waiting state and cannot be started","stack":"Error: Game is not in waiting state and cannot be started\n at StartGamePlayCommandHandler.validateGameCanStart (/app/src/Application/Game/commands/StartGamePlayCommandHandler.ts:111:19)\n at StartGamePlayCommandHandler.handle (/app/src/Application/Game/commands/StartGamePlayCommandHandler.ts:61:18)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async GameService.startGamePlay (/app/src/Application/Game/GameService.ts:177:28)\n at async /app/src/Api/routers/gameRouter.ts:256:24"} 2025-09-15T15:02:56.019Z | [OTHER] | Game start failed | Meta:{"gameId":"9e7ae048-8bc7-4d4b-b3aa-c173465bb003","userId":"ffa31617-2cf9-403e-ab9d-87eeec85ce58","executionTime":12} 2025-09-15T15:02:56.021Z | [ERROR] | GameService.startGamePlay failed | Meta:{"name":"Error","message":"Game is not in waiting state and cannot be started","stack":"Error: Game is not in waiting state and cannot be started\n at StartGamePlayCommandHandler.validateGameCanStart (/app/src/Application/Game/commands/StartGamePlayCommandHandler.ts:111:19)\n at StartGamePlayCommandHandler.handle (/app/src/Application/Game/commands/StartGamePlayCommandHandler.ts:61:18)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async GameService.startGamePlay (/app/src/Application/Game/GameService.ts:177:28)\n at async /app/src/Api/routers/gameRouter.ts:256:24"} 2025-09-15T15:02:56.023Z | [OTHER] | Game play start failed | Meta:{"gameId":"9e7ae048-8bc7-4d4b-b3aa-c173465bb003","userId":"ffa31617-2cf9-403e-ab9d-87eeec85ce58","executionTime":25,"error":"Game is not in waiting state and cannot be started"} 2025-09-15T15:02:56.024Z | [ERROR] | Start gameplay endpoint error | ReqId:teg470jjc | UserId:ffa31617-2cf9-403e-ab9d-87eeec85ce58 | IP:::ffff:172.20.0.1 | POST /api/games/9e7ae048-8bc7-4d4b-b3aa-c173465bb003/start | Status:200 | UA:PostmanRuntime/7.45.0 | Meta:{"name":"Error","message":"Game is not in waiting state and cannot be started","stack":"Error: Game is not in waiting state and cannot be started\n at StartGamePlayCommandHandler.validateGameCanStart (/app/src/Application/Game/commands/StartGamePlayCommandHandler.ts:111:19)\n at StartGamePlayCommandHandler.handle (/app/src/Application/Game/commands/StartGamePlayCommandHandler.ts:61:18)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async GameService.startGamePlay (/app/src/Application/Game/GameService.ts:177:28)\n at async /app/src/Api/routers/gameRouter.ts:256:24"} 2025-09-15T15:02:56.028Z | [REQUEST] | Request completed | ReqId:teg470jjc | UserId:ffa31617-2cf9-403e-ab9d-87eeec85ce58 | IP:::ffff:172.20.0.1 | POST /api/games/9e7ae048-8bc7-4d4b-b3aa-c173465bb003/start | Status:500 | Time:44ms | UA:PostmanRuntime/7.45.0