Files
SerpentRace/SerpentRace_Backend/logs/2025-09/serpentrace-2025-09-15T14-54-38-736Z.log
T
2025-09-15 19:00:35 +02:00

61 lines
15 KiB
Plaintext

# SerpentRace Backend Logs
# Started: 2025-09-15T14:54:38.736Z
# Max entries per file: 10000
2025-09-15T14:54:40.403Z | [STARTUP] | SerpentRace Backend starting up | Meta:{"environment":"development","port":"3000","nodeVersion":"v20.19.5","chatInactivityTimeout":"30"}
2025-09-15T14:54:40.417Z | [STARTUP] | Server started successfully | Meta:{"port":"3000","environment":"development","timestamp":"2025-09-15T14:54:40.417Z","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-15T14:54:41.229Z | [CONNECTION] | Database connection established | Meta:{"connectionType":"postgresql","status":"success","type":"postgres","host":"postgres","database":"serpentrace"}
2025-09-15T14:54:41.233Z | [REQUEST] | WebSocket service initialized | Meta:{"chatTimeoutMinutes":30}
2025-09-15T14:54:41.234Z | [STARTUP] | WebSocket service initialized | Meta:{"chatInactivityTimeout":"30"}
2025-09-15T14:54:41.235Z | [STARTUP] | Redis client connected successfully
2025-09-15T14:54:44.323Z | [REQUEST] | Incoming request | ReqId:r0wu4jdjh | IP:::ffff:172.20.0.1 | POST /api/games/9e7ae048-8bc7-4d4b-b3aa-c173465bb003/start | UA:PostmanRuntime/7.45.0
2025-09-15T14:54:44.325Z | [REQUEST] | POST /api/games/9e7ae048-8bc7-4d4b-b3aa-c173465bb003/start | ReqId:r0wu4jdjh | IP:::ffff:172.20.0.1 | POST /api/games/9e7ae048-8bc7-4d4b-b3aa-c173465bb003/start | Status:200 | UA:PostmanRuntime/7.45.0
2025-09-15T14:54:44.330Z | [AUTH] | Authentication successful | ReqId:r0wu4jdjh | 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-15T14:54:44.331Z | [REQUEST] | Start gameplay endpoint accessed | ReqId:r0wu4jdjh | 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-15T14:54:44.333Z | [OTHER] | GameService.startGamePlay called | Meta:{"gameId":"9e7ae048-8bc7-4d4b-b3aa-c173465bb003","userId":"ffa31617-2cf9-403e-ab9d-87eeec85ce58"}
2025-09-15T14:54:44.334Z | [OTHER] | Start game play input validation passed | Meta:{"gameId":"9e7ae048-8bc7-4d4b-b3aa-c173465bb003"}
2025-09-15T14:54:44.336Z | [OTHER] | Starting game play | Meta:"gameId: 9e7ae048-8bc7-4d4b-b3aa-c173465bb003, userId: ffa31617-2cf9-403e-ab9d-87eeec85ce58"
2025-09-15T14:54:44.345Z | [DATABASE] | Game findById completed | Meta:{"query":"executionTime: 8ms, gameId: 9e7ae048-8bc7-4d4b-b3aa-c173465bb003, found: true"}
2025-09-15T14:54:44.352Z | [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:103:19)\n at StartGamePlayCommandHandler.handle (/app/src/Application/Game/commands/StartGamePlayCommandHandler.ts:56:18)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async GameService.startGamePlay (/app/src/Application/Game/GameService.ts:177:26)\n at async /app/src/Api/routers/gameRouter.ts:256:24"}
2025-09-15T14:54:44.354Z | [OTHER] | Game start failed | Meta:{"gameId":"9e7ae048-8bc7-4d4b-b3aa-c173465bb003","userId":"ffa31617-2cf9-403e-ab9d-87eeec85ce58","executionTime":11}
2025-09-15T14:54:44.355Z | [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:103:19)\n at StartGamePlayCommandHandler.handle (/app/src/Application/Game/commands/StartGamePlayCommandHandler.ts:56:18)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async GameService.startGamePlay (/app/src/Application/Game/GameService.ts:177:26)\n at async /app/src/Api/routers/gameRouter.ts:256:24"}
2025-09-15T14:54:44.357Z | [OTHER] | Game play start failed | Meta:{"gameId":"9e7ae048-8bc7-4d4b-b3aa-c173465bb003","userId":"ffa31617-2cf9-403e-ab9d-87eeec85ce58","executionTime":23,"error":"Game is not in waiting state and cannot be started"}
2025-09-15T14:54:44.358Z | [ERROR] | Start gameplay endpoint error | ReqId:r0wu4jdjh | 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:103:19)\n at StartGamePlayCommandHandler.handle (/app/src/Application/Game/commands/StartGamePlayCommandHandler.ts:56:18)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async GameService.startGamePlay (/app/src/Application/Game/GameService.ts:177:26)\n at async /app/src/Api/routers/gameRouter.ts:256:24"}
2025-09-15T14:54:44.361Z | [REQUEST] | Request completed | ReqId:r0wu4jdjh | UserId:ffa31617-2cf9-403e-ab9d-87eeec85ce58 | IP:::ffff:172.20.0.1 | POST /api/games/9e7ae048-8bc7-4d4b-b3aa-c173465bb003/start | Status:500 | Time:38ms | UA:PostmanRuntime/7.45.0
2025-09-15T14:55:21.586Z | [REQUEST] | Incoming request | ReqId:2fgicgl4c | IP:::ffff:172.20.0.1 | POST /api/games/9e7ae048-8bc7-4d4b-b3aa-c173465bb003/start | UA:PostmanRuntime/7.45.0
2025-09-15T14:55:21.588Z | [REQUEST] | POST /api/games/9e7ae048-8bc7-4d4b-b3aa-c173465bb003/start | ReqId:2fgicgl4c | IP:::ffff:172.20.0.1 | POST /api/games/9e7ae048-8bc7-4d4b-b3aa-c173465bb003/start | Status:200 | UA:PostmanRuntime/7.45.0
2025-09-15T14:55:21.593Z | [AUTH] | Authentication successful | ReqId:2fgicgl4c | 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-15T14:55:21.596Z | [REQUEST] | Start gameplay endpoint accessed | ReqId:2fgicgl4c | 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-15T14:55:21.598Z | [OTHER] | GameService.startGamePlay called | Meta:{"gameId":"9e7ae048-8bc7-4d4b-b3aa-c173465bb003","userId":"ffa31617-2cf9-403e-ab9d-87eeec85ce58"}
2025-09-15T14:55:21.599Z | [OTHER] | Start game play input validation passed | Meta:{"gameId":"9e7ae048-8bc7-4d4b-b3aa-c173465bb003"}
2025-09-15T14:55:21.601Z | [OTHER] | Starting game play | Meta:"gameId: 9e7ae048-8bc7-4d4b-b3aa-c173465bb003, userId: ffa31617-2cf9-403e-ab9d-87eeec85ce58"
2025-09-15T14:55:21.615Z | [DATABASE] | Game findById completed | Meta:{"query":"executionTime: 12ms, gameId: 9e7ae048-8bc7-4d4b-b3aa-c173465bb003, found: true"}
2025-09-15T14:55:21.617Z | [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:103:19)\n at StartGamePlayCommandHandler.handle (/app/src/Application/Game/commands/StartGamePlayCommandHandler.ts:56:18)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async GameService.startGamePlay (/app/src/Application/Game/GameService.ts:177:26)\n at async /app/src/Api/routers/gameRouter.ts:256:24"}
2025-09-15T14:55:21.619Z | [OTHER] | Game start failed | Meta:{"gameId":"9e7ae048-8bc7-4d4b-b3aa-c173465bb003","userId":"ffa31617-2cf9-403e-ab9d-87eeec85ce58","executionTime":16}
2025-09-15T14:55:21.621Z | [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:103:19)\n at StartGamePlayCommandHandler.handle (/app/src/Application/Game/commands/StartGamePlayCommandHandler.ts:56:18)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async GameService.startGamePlay (/app/src/Application/Game/GameService.ts:177:26)\n at async /app/src/Api/routers/gameRouter.ts:256:24"}
2025-09-15T14:55:21.622Z | [OTHER] | Game play start failed | Meta:{"gameId":"9e7ae048-8bc7-4d4b-b3aa-c173465bb003","userId":"ffa31617-2cf9-403e-ab9d-87eeec85ce58","executionTime":23,"error":"Game is not in waiting state and cannot be started"}
2025-09-15T14:55:21.623Z | [ERROR] | Start gameplay endpoint error | ReqId:2fgicgl4c | 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:103:19)\n at StartGamePlayCommandHandler.handle (/app/src/Application/Game/commands/StartGamePlayCommandHandler.ts:56:18)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async GameService.startGamePlay (/app/src/Application/Game/GameService.ts:177:26)\n at async /app/src/Api/routers/gameRouter.ts:256:24"}
2025-09-15T14:55:21.625Z | [REQUEST] | Request completed | ReqId:2fgicgl4c | UserId:ffa31617-2cf9-403e-ab9d-87eeec85ce58 | IP:::ffff:172.20.0.1 | POST /api/games/9e7ae048-8bc7-4d4b-b3aa-c173465bb003/start | Status:500 | Time:39ms | UA:PostmanRuntime/7.45.0
2025-09-15T14:55:55.741Z | [REQUEST] | Incoming request | ReqId:n01v9yqwa | IP:::ffff:172.20.0.1 | POST /api/games/9e7ae048-8bc7-4d4b-b3aa-c173465bb003/start | UA:PostmanRuntime/7.45.0
2025-09-15T14:55:55.743Z | [REQUEST] | POST /api/games/9e7ae048-8bc7-4d4b-b3aa-c173465bb003/start | ReqId:n01v9yqwa | IP:::ffff:172.20.0.1 | POST /api/games/9e7ae048-8bc7-4d4b-b3aa-c173465bb003/start | Status:200 | UA:PostmanRuntime/7.45.0
2025-09-15T14:55:55.746Z | [AUTH] | Authentication successful | ReqId:n01v9yqwa | 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-15T14:55:55.748Z | [REQUEST] | Start gameplay endpoint accessed | ReqId:n01v9yqwa | 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-15T14:55:55.750Z | [OTHER] | GameService.startGamePlay called | Meta:{"gameId":"9e7ae048-8bc7-4d4b-b3aa-c173465bb003","userId":"ffa31617-2cf9-403e-ab9d-87eeec85ce58"}
2025-09-15T14:55:55.751Z | [OTHER] | Start game play input validation passed | Meta:{"gameId":"9e7ae048-8bc7-4d4b-b3aa-c173465bb003"}
2025-09-15T14:55:55.753Z | [OTHER] | Starting game play | Meta:"gameId: 9e7ae048-8bc7-4d4b-b3aa-c173465bb003, userId: ffa31617-2cf9-403e-ab9d-87eeec85ce58"
2025-09-15T14:55:55.766Z | [DATABASE] | Game findById completed | Meta:{"query":"executionTime: 12ms, gameId: 9e7ae048-8bc7-4d4b-b3aa-c173465bb003, found: true"}
2025-09-15T14:55:55.767Z | [OTHER] | Game start validation passed | Meta:{"gameId":"9e7ae048-8bc7-4d4b-b3aa-c173465bb003","gameCode":"6BDKNI","playerCount":2,"gameState":0,"isGameMaster":true}
2025-09-15T14:55:55.769Z | [OTHER] | Waiting for board generation for game 9e7ae048-8bc7-4d4b-b3aa-c173465bb003 | Meta:{"maxWaitTime":20,"pollInterval":500,"redisKey":"game_board_9e7ae048-8bc7-4d4b-b3aa-c173465bb003"}
2025-09-15T14:55:55.771Z | [OTHER] | Board generation check for game 9e7ae048-8bc7-4d4b-b3aa-c173465bb003 | Meta:{"attempt":1,"hasData":true,"dataLength":5526,"waitTime":2}
2025-09-15T14:55:55.772Z | [OTHER] | Board data found for game 9e7ae048-8bc7-4d4b-b3aa-c173465bb003 | Meta:{"generationComplete":true,"hasError":false,"fieldsCount":100,"borderLength":100,"totalErrorRate":34.47}
2025-09-15T14:55:55.774Z | [OTHER] | Board generation completed for game 9e7ae048-8bc7-4d4b-b3aa-c173465bb003 | Meta:{"errorRate":34.47,"fieldCount":100,"borderLength":100,"waitTime":5}
2025-09-15T14:55:55.781Z | [DATABASE] | Game findById completed | Meta:{"query":"executionTime: 1ms, gameId: 9e7ae048-8bc7-4d4b-b3aa-c173465bb003, found: true"}
2025-09-15T14:55:55.782Z | [DATABASE] | Game update completed | Meta:{"query":"executionTime: 7ms, gameId: 9e7ae048-8bc7-4d4b-b3aa-c173465bb003, updated: true"}
2025-09-15T14:55:55.784Z | [OTHER] | Player positions initialized | Meta:{"playerCount":2,"turnOrders":[2,1],"playersData":[{"playerId":"ffa31617-2cf9-403e-ab9d-87eeec85ce58","position":0,"turnOrder":2},{"playerId":"0c7bfa37-77c9-4c73-a7f7-ca4199055456","position":0,"turnOrder":1}]}
2025-09-15T14:55:55.787Z | [OTHER] | Game play initialized in Redis | Meta:{"gameId":"9e7ae048-8bc7-4d4b-b3aa-c173465bb003","gameCode":"6BDKNI","playerCount":2,"turnSequence":["0c7bfa37-77c9-4c73-a7f7-ca4199055456","ffa31617-2cf9-403e-ab9d-87eeec85ce58"],"currentPlayer":"0c7bfa37-77c9-4c73-a7f7-ca4199055456","redisKey":"gameplay:9e7ae048-8bc7-4d4b-b3aa-c173465bb003"}
2025-09-15T14:55:55.788Z | [OTHER] | Game start notifications prepared | Meta:{"gameId":"9e7ae048-8bc7-4d4b-b3aa-c173465bb003","gameCode":"6BDKNI","playerCount":2,"websocketRoom":"game_6BDKNI"}
2025-09-15T14:55:55.790Z | [OTHER] | Game play started successfully | Meta:{"gameId":"9e7ae048-8bc7-4d4b-b3aa-c173465bb003","gameCode":"6BDKNI","playerCount":2,"executionTime":37}
2025-09-15T14:55:55.791Z | [OTHER] | Game play started successfully | Meta:{"gameId":"9e7ae048-8bc7-4d4b-b3aa-c173465bb003","gameCode":"6BDKNI","playerCount":2,"gameState":1,"executionTime":41}
2025-09-15T14:55:55.793Z | [REQUEST] | Game gameplay started successfully | ReqId:n01v9yqwa | 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","playerCount":2}
2025-09-15T14:55:55.794Z | [REQUEST] | Request completed | ReqId:n01v9yqwa | UserId:ffa31617-2cf9-403e-ab9d-87eeec85ce58 | IP:::ffff:172.20.0.1 | POST /api/games/9e7ae048-8bc7-4d4b-b3aa-c173465bb003/start | Status:200 | Time:53ms | UA:PostmanRuntime/7.45.0