{
    "timestamp": "2026-07-27 07:51:41",
    "level": "ERROR",
    "data": {
        "message": "Lỗi hệ thống tại processWorkflowAfterGrading: App\\Services\\IclScoreService::calculateWritingScore(): Argument #2 ($scores) must be of type array, float given, called in \/var\/www\/html\/lms_hocmai\/app\/Services\/AbnormalityCheckService.php on line 598",
        "idHistoryContest": "6a66ab5985bb2b3349cfb22b",
        "exception": "#0 \/var\/www\/html\/lms_hocmai\/app\/Services\/AbnormalityCheckService.php(598): App\\Services\\IclScoreService->calculateWritingScore()\n#1 \/var\/www\/html\/lms_hocmai\/app\/Services\/AbnormalityCheckService.php(531): App\\Services\\AbnormalityCheckService->checkScoreDiscrepancies()\n#2 \/var\/www\/html\/lms_hocmai\/app\/Services\/AbnormalityCheckService.php(92): App\\Services\\AbnormalityCheckService->checkExamAbnormalitiesWithData()\n#3 \/var\/www\/html\/lms_hocmai\/app\/Jobs\/ProcessExamWorkflowJob.php(37): App\\Services\\AbnormalityCheckService->processWorkflowAfterGrading()\n#4 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): App\\Jobs\\ProcessExamWorkflowJob->handle()\n#5 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(43): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#6 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(95): Illuminate\\Container\\Util::unwrapIfClosure()\n#7 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(35): Illuminate\\Container\\BoundMethod::callBoundMethod()\n#8 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(696): Illuminate\\Container\\BoundMethod::call()\n#9 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Bus\/Dispatcher.php(126): Illuminate\\Container\\Container->call()\n#10 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(170): Illuminate\\Bus\\Dispatcher->Illuminate\\Bus\\{closure}()\n#11 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(127): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()\n#12 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Bus\/Dispatcher.php(130): Illuminate\\Pipeline\\Pipeline->then()\n#13 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Queue\/CallQueuedHandler.php(126): Illuminate\\Bus\\Dispatcher->dispatchNow()\n#14 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(170): Illuminate\\Queue\\CallQueuedHandler->Illuminate\\Queue\\{closure}()\n#15 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(127): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()\n#16 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Queue\/CallQueuedHandler.php(121): Illuminate\\Pipeline\\Pipeline->then()\n#17 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Queue\/CallQueuedHandler.php(69): Illuminate\\Queue\\CallQueuedHandler->dispatchThroughMiddleware()\n#18 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Queue\/Jobs\/Job.php(102): Illuminate\\Queue\\CallQueuedHandler->call()\n#19 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Queue\/Worker.php(461): Illuminate\\Queue\\Jobs\\Job->fire()\n#20 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Queue\/Worker.php(411): Illuminate\\Queue\\Worker->process()\n#21 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Queue\/Worker.php(189): Illuminate\\Queue\\Worker->runJob()\n#22 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Queue\/Console\/WorkCommand.php(150): Illuminate\\Queue\\Worker->daemon()\n#23 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Queue\/Console\/WorkCommand.php(133): Illuminate\\Queue\\Console\\WorkCommand->runWorker()\n#24 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Illuminate\\Queue\\Console\\WorkCommand->handle()\n#25 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(43): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#26 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(95): Illuminate\\Container\\Util::unwrapIfClosure()\n#27 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(35): Illuminate\\Container\\BoundMethod::callBoundMethod()\n#28 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(696): Illuminate\\Container\\BoundMethod::call()\n#29 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(213): Illuminate\\Container\\Container->call()\n#30 \/var\/www\/html\/lms_hocmai\/vendor\/symfony\/console\/Command\/Command.php(341): Illuminate\\Console\\Command->execute()\n#31 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(182): Symfony\\Component\\Console\\Command\\Command->run()\n#32 \/var\/www\/html\/lms_hocmai\/vendor\/symfony\/console\/Application.php(1117): Illuminate\\Console\\Command->run()\n#33 \/var\/www\/html\/lms_hocmai\/vendor\/symfony\/console\/Application.php(356): Symfony\\Component\\Console\\Application->doRunCommand()\n#34 \/var\/www\/html\/lms_hocmai\/vendor\/symfony\/console\/Application.php(195): Symfony\\Component\\Console\\Application->doRun()\n#35 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(198): Symfony\\Component\\Console\\Application->run()\n#36 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Application.php(1235): Illuminate\\Foundation\\Console\\Kernel->handle()\n#37 \/var\/www\/html\/lms_hocmai\/artisan(13): Illuminate\\Foundation\\Application->handleCommand()\n#38 {main}"
    }
}
{
    "timestamp": "2026-07-27 09:11:13",
    "level": "ERROR",
    "data": {
        "message": "Lỗi hệ thống tại processWorkflowAfterGrading: App\\Services\\IclScoreService::calculateWritingScore(): Argument #2 ($scores) must be of type array, float given, called in \/var\/www\/html\/lms_hocmai\/app\/Services\/AbnormalityCheckService.php on line 598",
        "idHistoryContest": "6a66be0885bb2b3349cfb395",
        "exception": "#0 \/var\/www\/html\/lms_hocmai\/app\/Services\/AbnormalityCheckService.php(598): App\\Services\\IclScoreService->calculateWritingScore()\n#1 \/var\/www\/html\/lms_hocmai\/app\/Services\/AbnormalityCheckService.php(531): App\\Services\\AbnormalityCheckService->checkScoreDiscrepancies()\n#2 \/var\/www\/html\/lms_hocmai\/app\/Services\/AbnormalityCheckService.php(92): App\\Services\\AbnormalityCheckService->checkExamAbnormalitiesWithData()\n#3 \/var\/www\/html\/lms_hocmai\/app\/Jobs\/ProcessExamWorkflowJob.php(37): App\\Services\\AbnormalityCheckService->processWorkflowAfterGrading()\n#4 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): App\\Jobs\\ProcessExamWorkflowJob->handle()\n#5 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(43): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#6 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(95): Illuminate\\Container\\Util::unwrapIfClosure()\n#7 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(35): Illuminate\\Container\\BoundMethod::callBoundMethod()\n#8 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(696): Illuminate\\Container\\BoundMethod::call()\n#9 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Bus\/Dispatcher.php(126): Illuminate\\Container\\Container->call()\n#10 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(170): Illuminate\\Bus\\Dispatcher->Illuminate\\Bus\\{closure}()\n#11 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(127): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()\n#12 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Bus\/Dispatcher.php(130): Illuminate\\Pipeline\\Pipeline->then()\n#13 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Queue\/CallQueuedHandler.php(126): Illuminate\\Bus\\Dispatcher->dispatchNow()\n#14 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(170): Illuminate\\Queue\\CallQueuedHandler->Illuminate\\Queue\\{closure}()\n#15 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(127): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()\n#16 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Queue\/CallQueuedHandler.php(121): Illuminate\\Pipeline\\Pipeline->then()\n#17 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Queue\/CallQueuedHandler.php(69): Illuminate\\Queue\\CallQueuedHandler->dispatchThroughMiddleware()\n#18 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Queue\/Jobs\/Job.php(102): Illuminate\\Queue\\CallQueuedHandler->call()\n#19 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Queue\/Worker.php(461): Illuminate\\Queue\\Jobs\\Job->fire()\n#20 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Queue\/Worker.php(411): Illuminate\\Queue\\Worker->process()\n#21 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Queue\/Worker.php(189): Illuminate\\Queue\\Worker->runJob()\n#22 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Queue\/Console\/WorkCommand.php(150): Illuminate\\Queue\\Worker->daemon()\n#23 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Queue\/Console\/WorkCommand.php(133): Illuminate\\Queue\\Console\\WorkCommand->runWorker()\n#24 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Illuminate\\Queue\\Console\\WorkCommand->handle()\n#25 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(43): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#26 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(95): Illuminate\\Container\\Util::unwrapIfClosure()\n#27 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(35): Illuminate\\Container\\BoundMethod::callBoundMethod()\n#28 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(696): Illuminate\\Container\\BoundMethod::call()\n#29 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(213): Illuminate\\Container\\Container->call()\n#30 \/var\/www\/html\/lms_hocmai\/vendor\/symfony\/console\/Command\/Command.php(341): Illuminate\\Console\\Command->execute()\n#31 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(182): Symfony\\Component\\Console\\Command\\Command->run()\n#32 \/var\/www\/html\/lms_hocmai\/vendor\/symfony\/console\/Application.php(1117): Illuminate\\Console\\Command->run()\n#33 \/var\/www\/html\/lms_hocmai\/vendor\/symfony\/console\/Application.php(356): Symfony\\Component\\Console\\Application->doRunCommand()\n#34 \/var\/www\/html\/lms_hocmai\/vendor\/symfony\/console\/Application.php(195): Symfony\\Component\\Console\\Application->doRun()\n#35 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(198): Symfony\\Component\\Console\\Application->run()\n#36 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Application.php(1235): Illuminate\\Foundation\\Console\\Kernel->handle()\n#37 \/var\/www\/html\/lms_hocmai\/artisan(13): Illuminate\\Foundation\\Application->handleCommand()\n#38 {main}"
    }
}
{
    "timestamp": "2026-07-27 09:13:10",
    "level": "ERROR",
    "data": {
        "message": "Lỗi hệ thống tại processWorkflowAfterGrading: App\\Services\\IclScoreService::calculateWritingScore(): Argument #2 ($scores) must be of type array, null given, called in \/var\/www\/html\/lms_hocmai\/app\/Services\/AbnormalityCheckService.php on line 598",
        "idHistoryContest": "6a647a69d4c2ec76067e39d6",
        "exception": "#0 \/var\/www\/html\/lms_hocmai\/app\/Services\/AbnormalityCheckService.php(598): App\\Services\\IclScoreService->calculateWritingScore()\n#1 \/var\/www\/html\/lms_hocmai\/app\/Services\/AbnormalityCheckService.php(531): App\\Services\\AbnormalityCheckService->checkScoreDiscrepancies()\n#2 \/var\/www\/html\/lms_hocmai\/app\/Services\/AbnormalityCheckService.php(92): App\\Services\\AbnormalityCheckService->checkExamAbnormalitiesWithData()\n#3 \/var\/www\/html\/lms_hocmai\/app\/Jobs\/ProcessExamWorkflowJob.php(37): App\\Services\\AbnormalityCheckService->processWorkflowAfterGrading()\n#4 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): App\\Jobs\\ProcessExamWorkflowJob->handle()\n#5 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(43): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#6 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(95): Illuminate\\Container\\Util::unwrapIfClosure()\n#7 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(35): Illuminate\\Container\\BoundMethod::callBoundMethod()\n#8 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(696): Illuminate\\Container\\BoundMethod::call()\n#9 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Bus\/Dispatcher.php(126): Illuminate\\Container\\Container->call()\n#10 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(170): Illuminate\\Bus\\Dispatcher->Illuminate\\Bus\\{closure}()\n#11 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(127): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()\n#12 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Bus\/Dispatcher.php(130): Illuminate\\Pipeline\\Pipeline->then()\n#13 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Queue\/CallQueuedHandler.php(126): Illuminate\\Bus\\Dispatcher->dispatchNow()\n#14 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(170): Illuminate\\Queue\\CallQueuedHandler->Illuminate\\Queue\\{closure}()\n#15 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(127): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()\n#16 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Queue\/CallQueuedHandler.php(121): Illuminate\\Pipeline\\Pipeline->then()\n#17 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Queue\/CallQueuedHandler.php(69): Illuminate\\Queue\\CallQueuedHandler->dispatchThroughMiddleware()\n#18 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Queue\/Jobs\/Job.php(102): Illuminate\\Queue\\CallQueuedHandler->call()\n#19 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Queue\/Worker.php(461): Illuminate\\Queue\\Jobs\\Job->fire()\n#20 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Queue\/Worker.php(411): Illuminate\\Queue\\Worker->process()\n#21 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Queue\/Worker.php(189): Illuminate\\Queue\\Worker->runJob()\n#22 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Queue\/Console\/WorkCommand.php(150): Illuminate\\Queue\\Worker->daemon()\n#23 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Queue\/Console\/WorkCommand.php(133): Illuminate\\Queue\\Console\\WorkCommand->runWorker()\n#24 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Illuminate\\Queue\\Console\\WorkCommand->handle()\n#25 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(43): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#26 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(95): Illuminate\\Container\\Util::unwrapIfClosure()\n#27 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(35): Illuminate\\Container\\BoundMethod::callBoundMethod()\n#28 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(696): Illuminate\\Container\\BoundMethod::call()\n#29 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(213): Illuminate\\Container\\Container->call()\n#30 \/var\/www\/html\/lms_hocmai\/vendor\/symfony\/console\/Command\/Command.php(341): Illuminate\\Console\\Command->execute()\n#31 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(182): Symfony\\Component\\Console\\Command\\Command->run()\n#32 \/var\/www\/html\/lms_hocmai\/vendor\/symfony\/console\/Application.php(1117): Illuminate\\Console\\Command->run()\n#33 \/var\/www\/html\/lms_hocmai\/vendor\/symfony\/console\/Application.php(356): Symfony\\Component\\Console\\Application->doRunCommand()\n#34 \/var\/www\/html\/lms_hocmai\/vendor\/symfony\/console\/Application.php(195): Symfony\\Component\\Console\\Application->doRun()\n#35 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(198): Symfony\\Component\\Console\\Application->run()\n#36 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Application.php(1235): Illuminate\\Foundation\\Console\\Kernel->handle()\n#37 \/var\/www\/html\/lms_hocmai\/artisan(13): Illuminate\\Foundation\\Application->handleCommand()\n#38 {main}"
    }
}
{
    "timestamp": "2026-07-27 09:13:24",
    "level": "ERROR",
    "data": {
        "message": "Lỗi hệ thống tại processWorkflowAfterGrading: App\\Services\\IclScoreService::calculateWritingScore(): Argument #2 ($scores) must be of type array, null given, called in \/var\/www\/html\/lms_hocmai\/app\/Services\/AbnormalityCheckService.php on line 598",
        "idHistoryContest": "6a647a69d4c2ec76067e39d6",
        "exception": "#0 \/var\/www\/html\/lms_hocmai\/app\/Services\/AbnormalityCheckService.php(598): App\\Services\\IclScoreService->calculateWritingScore()\n#1 \/var\/www\/html\/lms_hocmai\/app\/Services\/AbnormalityCheckService.php(531): App\\Services\\AbnormalityCheckService->checkScoreDiscrepancies()\n#2 \/var\/www\/html\/lms_hocmai\/app\/Services\/AbnormalityCheckService.php(92): App\\Services\\AbnormalityCheckService->checkExamAbnormalitiesWithData()\n#3 \/var\/www\/html\/lms_hocmai\/app\/Jobs\/ProcessExamWorkflowJob.php(37): App\\Services\\AbnormalityCheckService->processWorkflowAfterGrading()\n#4 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): App\\Jobs\\ProcessExamWorkflowJob->handle()\n#5 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(43): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#6 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(95): Illuminate\\Container\\Util::unwrapIfClosure()\n#7 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(35): Illuminate\\Container\\BoundMethod::callBoundMethod()\n#8 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(696): Illuminate\\Container\\BoundMethod::call()\n#9 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Bus\/Dispatcher.php(126): Illuminate\\Container\\Container->call()\n#10 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(170): Illuminate\\Bus\\Dispatcher->Illuminate\\Bus\\{closure}()\n#11 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(127): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()\n#12 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Bus\/Dispatcher.php(130): Illuminate\\Pipeline\\Pipeline->then()\n#13 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Queue\/CallQueuedHandler.php(126): Illuminate\\Bus\\Dispatcher->dispatchNow()\n#14 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(170): Illuminate\\Queue\\CallQueuedHandler->Illuminate\\Queue\\{closure}()\n#15 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Pipeline\/Pipeline.php(127): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()\n#16 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Queue\/CallQueuedHandler.php(121): Illuminate\\Pipeline\\Pipeline->then()\n#17 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Queue\/CallQueuedHandler.php(69): Illuminate\\Queue\\CallQueuedHandler->dispatchThroughMiddleware()\n#18 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Queue\/Jobs\/Job.php(102): Illuminate\\Queue\\CallQueuedHandler->call()\n#19 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Queue\/Worker.php(461): Illuminate\\Queue\\Jobs\\Job->fire()\n#20 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Queue\/Worker.php(411): Illuminate\\Queue\\Worker->process()\n#21 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Queue\/Worker.php(189): Illuminate\\Queue\\Worker->runJob()\n#22 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Queue\/Console\/WorkCommand.php(150): Illuminate\\Queue\\Worker->daemon()\n#23 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Queue\/Console\/WorkCommand.php(133): Illuminate\\Queue\\Console\\WorkCommand->runWorker()\n#24 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(36): Illuminate\\Queue\\Console\\WorkCommand->handle()\n#25 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Util.php(43): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#26 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(95): Illuminate\\Container\\Util::unwrapIfClosure()\n#27 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/BoundMethod.php(35): Illuminate\\Container\\BoundMethod::callBoundMethod()\n#28 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Container\/Container.php(696): Illuminate\\Container\\BoundMethod::call()\n#29 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(213): Illuminate\\Container\\Container->call()\n#30 \/var\/www\/html\/lms_hocmai\/vendor\/symfony\/console\/Command\/Command.php(341): Illuminate\\Console\\Command->execute()\n#31 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Console\/Command.php(182): Symfony\\Component\\Console\\Command\\Command->run()\n#32 \/var\/www\/html\/lms_hocmai\/vendor\/symfony\/console\/Application.php(1117): Illuminate\\Console\\Command->run()\n#33 \/var\/www\/html\/lms_hocmai\/vendor\/symfony\/console\/Application.php(356): Symfony\\Component\\Console\\Application->doRunCommand()\n#34 \/var\/www\/html\/lms_hocmai\/vendor\/symfony\/console\/Application.php(195): Symfony\\Component\\Console\\Application->doRun()\n#35 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Console\/Kernel.php(198): Symfony\\Component\\Console\\Application->run()\n#36 \/var\/www\/html\/lms_hocmai\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Application.php(1235): Illuminate\\Foundation\\Console\\Kernel->handle()\n#37 \/var\/www\/html\/lms_hocmai\/artisan(13): Illuminate\\Foundation\\Application->handleCommand()\n#38 {main}"
    }
}
{
    "timestamp": "2026-07-27 10:29:47",
    "level": "INFO",
    "data": {
        "message": "Tab switch count: 0"
    }
}
{
    "timestamp": "2026-07-27 10:29:47",
    "level": "INFO",
    "data": {
        "message": "Kết quả check bất thường cho score_id 5418",
        "idHistoryContest": "6a66d09285bb2b3349cfb4ec",
        "student_score_id": 5418,
        "abnormal_check": {
            "status": true,
            "is_abnormal": false,
            "abnormal_reasons": []
        }
    }
}
{
    "timestamp": "2026-07-27 10:30:32",
    "level": "INFO",
    "data": {
        "message": "Tab switch count: 0"
    }
}
{
    "timestamp": "2026-07-27 10:30:32",
    "level": "INFO",
    "data": {
        "message": "Kết quả check bất thường cho score_id 5419",
        "idHistoryContest": "6a66d0c3863b40e2114bed23",
        "student_score_id": 5419,
        "abnormal_check": {
            "status": true,
            "is_abnormal": false,
            "abnormal_reasons": []
        }
    }
}
{
    "timestamp": "2026-07-27 10:31:50",
    "level": "INFO",
    "data": {
        "message": "Tab switch count: 0"
    }
}
{
    "timestamp": "2026-07-27 10:31:50",
    "level": "INFO",
    "data": {
        "message": "Kết quả check bất thường cho score_id 5420",
        "idHistoryContest": "6a66d111863b40e2114bedee",
        "student_score_id": 5420,
        "abnormal_check": {
            "status": true,
            "is_abnormal": false,
            "abnormal_reasons": []
        }
    }
}
{
    "timestamp": "2026-07-27 16:15:46",
    "level": "INFO",
    "data": {
        "message": "Không tìm thấy StudentScore cho idHistoryContest: 6a6721ae5e56ff24d00f4f46",
        "idHistoryContest": "6a6721ae5e56ff24d00f4f46"
    }
}
{
    "timestamp": "2026-07-27 16:57:54",
    "level": "INFO",
    "data": {
        "message": "Tab switch count: 1"
    }
}
{
    "timestamp": "2026-07-27 16:57:54",
    "level": "INFO",
    "data": {
        "message": "Kết quả check bất thường cho score_id 5428",
        "idHistoryContest": "6a672b11863b40e2114beec7",
        "student_score_id": 5428,
        "abnormal_check": {
            "status": true,
            "is_abnormal": false,
            "abnormal_reasons": []
        }
    }
}
{
    "timestamp": "2026-07-27 17:02:06",
    "level": "INFO",
    "data": {
        "message": "Không tìm thấy StudentScore cho idHistoryContest: 6a672c8d5e56ff24d00f51e5",
        "idHistoryContest": "6a672c8d5e56ff24d00f51e5"
    }
}
{
    "timestamp": "2026-07-27 17:08:46",
    "level": "INFO",
    "data": {
        "message": "Không tìm thấy StudentScore cho idHistoryContest: 6a672e1f5e56ff24d00f53b3",
        "idHistoryContest": "6a672e1f5e56ff24d00f53b3"
    }
}
{
    "timestamp": "2026-07-27 17:29:30",
    "level": "INFO",
    "data": {
        "message": "Không tìm thấy StudentScore cho idHistoryContest: 6a6732fd8dd80451c30923ea",
        "idHistoryContest": "6a6732fd8dd80451c30923ea"
    }
}
