Files
SerpentRace/SerpentRace_Backend/logs/2025-09/serpentrace-2025-09-15T13-05-05-594Z.log
2025-09-15 19:00:35 +02:00

49 lines
10 KiB
Plaintext

# SerpentRace Backend Logs
# Started: 2025-09-15T13:05:05.594Z
# Max entries per file: 10000
2025-09-15T13:05:07.337Z | [STARTUP] | SerpentRace Backend starting up | Meta:{"environment":"development","port":"3000","nodeVersion":"v20.19.5","chatInactivityTimeout":"30"}
2025-09-15T13:05:07.351Z | [STARTUP] | Server started successfully | Meta:{"port":"3000","environment":"development","timestamp":"2025-09-15T13:05:07.351Z","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-15T13:05:08.342Z | [CONNECTION] | Database connection established | Meta:{"connectionType":"postgresql","status":"success","type":"postgres","host":"postgres","database":"serpentrace"}
2025-09-15T13:05:08.347Z | [REQUEST] | WebSocket service initialized | Meta:{"chatTimeoutMinutes":30}
2025-09-15T13:05:08.349Z | [STARTUP] | WebSocket service initialized | Meta:{"chatInactivityTimeout":"30"}
2025-09-15T13:05:08.350Z | [STARTUP] | Redis client connected successfully
2025-09-15T13:05:16.809Z | [REQUEST] | Incoming request | ReqId:1f3eifswo | IP:::ffff:172.20.0.1 | POST /api/users/create | UA:PostmanRuntime/7.45.0
2025-09-15T13:05:16.812Z | [REQUEST] | POST /api/users/create | ReqId:1f3eifswo | IP:::ffff:172.20.0.1 | POST /api/users/create | Status:200 | UA:PostmanRuntime/7.45.0
2025-09-15T13:05:16.816Z | [REQUEST] | Create user endpoint accessed | ReqId:1f3eifswo | IP:::ffff:172.20.0.1 | POST /api/users/create | Status:200 | UA:PostmanRuntime/7.45.0 | Meta:{"username":"TesztAdmin","email":"user@example.com"}
2025-09-15T13:05:17.010Z | [ERROR] | UserRepository.create error | Meta:{"name":"QueryFailedError","message":"duplicate key value violates unique constraint \"UQ_ffc81a3b97dcbf8e320d5106c0d\"","stack":"QueryFailedError: duplicate key value violates unique constraint \"UQ_ffc81a3b97dcbf8e320d5106c0d\"\n at PostgresQueryRunner.query (/app/node_modules/typeorm/src/driver/postgres/PostgresQueryRunner.ts:325:19)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async InsertQueryBuilder.execute (/app/node_modules/src/query-builder/InsertQueryBuilder.ts:164:33)\n at async SubjectExecutor.executeInsertOperations (/app/node_modules/src/persistence/SubjectExecutor.ts:435:42)\n at async SubjectExecutor.execute (/app/node_modules/src/persistence/SubjectExecutor.ts:137:9)\n at async EntityPersistExecutor.execute (/app/node_modules/src/persistence/EntityPersistExecutor.ts:182:21)\n at async UserRepository.create (/app/src/Infrastructure/Repository/UserRepository.ts:16:28)\n at async CreateUserCommandHandler.execute (/app/src/Application/User/commands/CreateUserCommandHandler.ts:44:23)\n at async /app/src/Api/routers/userRouter.ts:77:18"}
2025-09-15T13:05:17.014Z | [REQUEST] | Request completed | ReqId:1f3eifswo | IP:::ffff:172.20.0.1 | POST /api/users/create | Status:409 | Time:205ms | UA:PostmanRuntime/7.45.0
2025-09-15T13:06:06.365Z | [REQUEST] | Incoming request | ReqId:faaxhg3i1 | IP:::ffff:172.20.0.1 | POST /api/users/login | UA:PostmanRuntime/7.45.0
2025-09-15T13:06:06.367Z | [REQUEST] | POST /api/users/login | ReqId:faaxhg3i1 | IP:::ffff:172.20.0.1 | POST /api/users/login | Status:200 | UA:PostmanRuntime/7.45.0
2025-09-15T13:06:06.369Z | [REQUEST] | Login endpoint accessed | ReqId:faaxhg3i1 | IP:::ffff:172.20.0.1 | POST /api/users/login | Status:200 | UA:PostmanRuntime/7.45.0 | Meta:{"username":"TesztAdmin"}
2025-09-15T13:06:06.371Z | [AUTH] | Login attempt | Meta:{"username":"TesztAdmin"}
2025-09-15T13:06:06.394Z | [DATABASE] | User findByUsername query completed | Meta:{"query":"findOneBy({ username: TesztAdmin })","executionTime":20,"found":true,"username":"TesztAdmin"}
2025-09-15T13:06:06.396Z | [DATABASE] | User lookup completed | Meta:{"executionTime":25,"found":true,"searchBy":"username"}
2025-09-15T13:06:06.550Z | [AUTH] | Password verification completed | Meta:{"userId":"ffa31617-2cf9-403e-ab9d-87eeec85ce58","valid":true,"verificationTime":151}
2025-09-15T13:06:06.556Z | [AUTH] | Login successful | Meta:{"userId":"ffa31617-2cf9-403e-ab9d-87eeec85ce58","authLevel":1,"userStatus":5,"orgId":"","requiresOrgReauth":false,"totalLoginTime":185}
2025-09-15T13:06:06.558Z | [AUTH] | User login successful | ReqId:faaxhg3i1 | IP:::ffff:172.20.0.1 | POST /api/users/login | Status:200 | UA:PostmanRuntime/7.45.0 | Meta:{"userId":"ffa31617-2cf9-403e-ab9d-87eeec85ce58","username":"TesztAdmin"}
2025-09-15T13:06:06.560Z | [REQUEST] | Request completed | ReqId:faaxhg3i1 | IP:::ffff:172.20.0.1 | POST /api/users/login | Status:200 | Time:195ms | UA:PostmanRuntime/7.45.0
2025-09-15T13:07:03.023Z | [REQUEST] | Incoming request | ReqId:148mhu0kz | IP:::ffff:172.20.0.1 | GET /api-docs/ | UA:Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:143.0
2025-09-15T13:07:03.025Z | [REQUEST] | GET /api-docs/ | ReqId:148mhu0kz | IP:::ffff:172.20.0.1 | GET /api-docs/ | Status:200 | UA:Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:143.0
2025-09-15T13:07:03.031Z | [REQUEST] | Request completed | ReqId:148mhu0kz | IP:::ffff:172.20.0.1 | GET /api-docs/ | Status:304 | Time:8ms | UA:Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:143.0
2025-09-15T13:07:03.056Z | [REQUEST] | Incoming request | ReqId:cr24npsy5 | IP:::ffff:172.20.0.1 | GET /api-docs/swagger-ui.css | UA:Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:143.0
2025-09-15T13:07:03.059Z | [REQUEST] | GET /api-docs/swagger-ui.css | ReqId:cr24npsy5 | IP:::ffff:172.20.0.1 | GET /api-docs/swagger-ui.css | Status:200 | UA:Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:143.0
2025-09-15T13:07:03.061Z | [REQUEST] | Incoming request | ReqId:qmgartctm | IP:::ffff:172.20.0.1 | GET /api-docs/swagger-ui-bundle.js | UA:Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:143.0
2025-09-15T13:07:03.063Z | [REQUEST] | GET /api-docs/swagger-ui-bundle.js | ReqId:qmgartctm | IP:::ffff:172.20.0.1 | GET /api-docs/swagger-ui-bundle.js | Status:200 | UA:Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:143.0
2025-09-15T13:07:03.066Z | [REQUEST] | Request completed | ReqId:cr24npsy5 | IP:::ffff:172.20.0.1 | GET /api-docs/swagger-ui.css | Status:304 | Time:10ms | UA:Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:143.0
2025-09-15T13:07:03.068Z | [REQUEST] | Request completed | ReqId:qmgartctm | IP:::ffff:172.20.0.1 | GET /api-docs/swagger-ui-bundle.js | Status:304 | Time:7ms | UA:Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:143.0
2025-09-15T13:07:03.072Z | [REQUEST] | Incoming request | ReqId:qm5m8ga8e | IP:::ffff:172.20.0.1 | GET /api-docs/swagger-ui-standalone-preset.js | UA:Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:143.0
2025-09-15T13:07:03.074Z | [REQUEST] | GET /api-docs/swagger-ui-standalone-preset.js | ReqId:qm5m8ga8e | IP:::ffff:172.20.0.1 | GET /api-docs/swagger-ui-standalone-preset.js | Status:200 | UA:Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:143.0
2025-09-15T13:07:03.078Z | [REQUEST] | Request completed | ReqId:qm5m8ga8e | IP:::ffff:172.20.0.1 | GET /api-docs/swagger-ui-standalone-preset.js | Status:304 | Time:6ms | UA:Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:143.0
2025-09-15T13:07:03.080Z | [REQUEST] | Incoming request | ReqId:hbywdbqe2 | IP:::ffff:172.20.0.1 | GET /api-docs/swagger-ui-init.js | UA:Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:143.0
2025-09-15T13:07:03.085Z | [REQUEST] | GET /api-docs/swagger-ui-init.js | ReqId:hbywdbqe2 | IP:::ffff:172.20.0.1 | GET /api-docs/swagger-ui-init.js | Status:200 | UA:Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:143.0
2025-09-15T13:07:03.089Z | [REQUEST] | Request completed | ReqId:hbywdbqe2 | IP:::ffff:172.20.0.1 | GET /api-docs/swagger-ui-init.js | Status:304 | Time:9ms | UA:Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:143.0
2025-09-15T13:21:56.108Z | [REQUEST] | Incoming request | ReqId:dyxy3fe8v | IP:::ffff:172.20.0.1 | POST /api/decks/ | UA:PostmanRuntime/7.45.0
2025-09-15T13:21:56.110Z | [REQUEST] | POST /api/decks/ | ReqId:dyxy3fe8v | IP:::ffff:172.20.0.1 | POST /api/decks/ | Status:200 | UA:PostmanRuntime/7.45.0
2025-09-15T13:21:56.115Z | [AUTH] | Authentication successful | ReqId:dyxy3fe8v | IP:::ffff:172.20.0.1 | POST /api/decks/ | UA:PostmanRuntime/7.45.0 | Meta:{"userId":"ffa31617-2cf9-403e-ab9d-87eeec85ce58","authLevel":1,"orgId":""}
2025-09-15T13:21:56.117Z | [REQUEST] | Create deck endpoint accessed | ReqId:dyxy3fe8v | UserId:ffa31617-2cf9-403e-ab9d-87eeec85ce58 | IP:::ffff:172.20.0.1 | POST /api/decks/ | Status:200 | UA:PostmanRuntime/7.45.0 | Meta:{"name":"TestLuckCard","userId":"ffa31617-2cf9-403e-ab9d-87eeec85ce58"}
2025-09-15T13:21:56.128Z | [DATABASE] | User findById query completed | Meta:{"query":"findOneBy({ id: undefined })","executionTime":9,"found":true}
2025-09-15T13:21:56.130Z | [AUTH] | ADMIN_BYPASS: CREATE_DECK_BYPASS | Meta:{"userId":"ffa31617-2cf9-403e-ab9d-87eeec85ce58","targetId":"new-deck","action":"CREATE_DECK_BYPASS","bypassReason":"Admin privileges","timestamp":"2025-09-15T13:21:56.130Z","deckName":"TestLuckCard","deckType":2,"cardCount":3}
2025-09-15T13:21:56.145Z | [ERROR] | Create deck endpoint error | ReqId:dyxy3fe8v | UserId:ffa31617-2cf9-403e-ab9d-87eeec85ce58 | IP:::ffff:172.20.0.1 | POST /api/decks/ | Status:200 | UA:PostmanRuntime/7.45.0 | Meta:{"name":"QueryFailedError","message":"null value in column \"user_id\" of relation \"Decks\" violates not-null constraint","stack":"QueryFailedError: null value in column \"user_id\" of relation \"Decks\" violates not-null constraint\n at PostgresQueryRunner.query (/app/node_modules/typeorm/src/driver/postgres/PostgresQueryRunner.ts:325:19)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async InsertQueryBuilder.execute (/app/node_modules/src/query-builder/InsertQueryBuilder.ts:164:33)\n at async SubjectExecutor.executeInsertOperations (/app/node_modules/src/persistence/SubjectExecutor.ts:435:42)\n at async SubjectExecutor.execute (/app/node_modules/src/persistence/SubjectExecutor.ts:137:9)\n at async EntityPersistExecutor.execute (/app/node_modules/src/persistence/EntityPersistExecutor.ts:182:21)\n at async CreateDeckCommandHandler.createDeck (/app/src/Application/Deck/commands/CreateDeckCommandHandler.ts:112:21)\n at async /app/src/Api/routers/deckRouter.ts:64:18"}
2025-09-15T13:21:56.148Z | [REQUEST] | Request completed | ReqId:dyxy3fe8v | UserId:ffa31617-2cf9-403e-ab9d-87eeec85ce58 | IP:::ffff:172.20.0.1 | POST /api/decks/ | Status:500 | Time:40ms | UA:PostmanRuntime/7.45.0