Dzień dobry,
NASK udostępnia informacje co oznaczają poszczególne kody błędów? Po zalogowaniu do aplikacji EZD RP jako administrator podmiotu pojawia się błąd z kodem e87d3b11.
Dzień dobry,
podpinam się pod pytanie. Otrzymujemy błąd “problem z logowaniem” podczas wdrażania struktury roboczej w KUIP. Co ciekawe, struktura wdraża się jako aktualna, mimo wystąpienia błędu.
Poniżej log poda kuip-api:
2024-10-08T13:22:03.855940767Z {"@t":"2024-10-08T13:22:03.8543329Z","@mt":"Problem z logowaniem","@l":"Error","@x":"ICE.Infrastructure.Exceptions.BusinessException: Problem z logowaniem\n at EZDRP.Common.Access.ContextValidator.Validate() in /home/rancher/work/ad5b4b8ac61f326a/BUILD/ezdrp/common/EZDRP.Common/Core/Access/context/ContextValidator.cs:line 67\n at EZDRP.Common.Access.AccessValidator.<>c__DisplayClass2_0.<<Validate>b__0>d.MoveNext() in /home/rancher/work/ad5b4b8ac61f326a/BUILD/ezdrp/common/EZDRP.Common/Core/Access/AccessValidator.cs:line 65\n--- End of stack trace from previous location ---\n at .PreHandle(IContai
nerScope , ICommandDto )\n at .Handle(ICommandDto , Dictionary`2 )\n at Rundev_EZDRP_Core.LoggerHelper.Enrich(IContainerScope scope, IAction action, Func`1 next) in /home/rancher/work/ad5b4b8ac61f326a/BUILD/ezdrp/rundev/EZDRP.App/Startup/Logger/LoggerHelper.cs:line 57\n at .Receive(IContainerScope , ICommandDto , Func`1 )\n at (TaskAwaiter`1& )\n at .Handle(HttpContext , Type )\n at ...MoveNext()\n--- End of stack trace from previous location ---\n at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)\n at ...MoveNext()\n--- End of stack trace from previous location ---\n at .Send(ICommandDto )\n at .Send(ICommandDto )\n at KUIP.AppServices.AsCommands.Struktura.Commands.WdrozPlanowanaStrukturaOrganizacyjnaHandler.InvokeAsync(WdrozPlanowanaStrukturaOrganizacyjnaCommand input, Dictionary`2 properties)\n at .(ICommandDto , Dictionary`2 , Type , ICommandHandlerBase )\n at .Handle(IContainerScope , ICommandDto , Func`1 )\n at .Handle(ICommandDto , Dictionary`2 )\n at .Receive(IContainerScope , ICommandDto , Func`1 )\n at (TaskAwaiter`1& )\n at .Handle(HttpContext , Type )\n at ...MoveNext()\n--- End of stack trace from previous location ---\n at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)\n at ...MoveNext()","E
rrorId":"77bd0e09c334411989f452b1853ee985","ErrorResponseBody":"{\n \"errorId\": \"77bd0e09c334411989f452b1853ee985\",\n \"instance\": \"/wdroz-planowana-struktura-organizacyjna\",\n \"status\": 400,\n \"type\": \"https://httpstatuses.io/400\",\n \"title\": \"Problem z logowaniem\",\n \"detail\": \"40e5da76: Problem z logowaniem\",\n \"messages\": [\n {\n \"text\": \"Problem z logowaniem\",\n \"code\": \"40e5da76\",\n \"fields\": []\n }\n ]\n}","SourceContext":"LoggerMiddleware","ApplicationName":"KUIP","UID":"3abed8ca80c24ce596abadddc456162a","PID":"5e009669bc87422fa9e79a60418b55c6","RequestId":"0HN77J3IA5CJ8:00000015","RequestPath":"/wdroz-planowana-struktura-organizacyjna","ConnectionId":"0HN77J3IA5CJ8","ExceptionDetail":{"HResult":-2146233088,"Message":"Problem z logowaniem","Source":"EZDRP.Common","TargetSite":"Void MoveNext()","Messages":[{"Text":"Problem z logowaniem","Code":"40e5da76","Fields":[]}],"HttpCode":null,"IsLogged":true,"ErrorId":"77bd0e09c334411989f452b1853ee985","Type":"ICE.Infrastructure.Exceptions.BusinessException"},"ConsoleLogger":"true","IceHost":"KUIP","InstanceName":"ezd-test.un.pl","SeqLogger":"true"}
Z tego co wnioskuję z tego loga, problem leży w requeście, zakładam że przesyłanym z kup-web do kuip-api. Niestety nie wiem gdzie szukać przyczyny. Struktura oraz użytkownicy byli importowani z pliku. Pliki wypełnione zgodnie z przykładami przedstawionymi w podręcznikach
Podobny błąd występuje w ezdrp-api. W tym przypadku również niestety struktura nie aktualizuje się w webie
2024-10-11T09:41:40.337178230Z {"@t":"2024-10-11T09:41:40.3357249Z","@mt":"Problem z logowaniem",
"@l":"Error","@x":"ICE.Infrastructure.Exceptions.BusinessException: Problem z logowaniem
at EZDRP.Common.Access.ContextValidator.Validate() in /home/rancher/work/ad5b4b8ac61f326a/BUILD/ezdrp/common/EZDRP.Common/Core/Access/context/ContextValidator.cs:line 67
at EZDRP.Common.Access.AccessValidator.<>c__DisplayClass2_0.<<Validate>b__0>d.MoveNext() in /home/rancher/work/ad5b4b8ac61f326a/BUILD/ezdrp/common/EZDRP.Common/Core/Access/AccessValidator.cs:line 65
--- End of stack trace from previous location ---
at .PreHandle(IContainerScope , ICommandDto )
at .Handle(ICommandDto , Dictionary`2 )
at Rundev_EZDRP_Core.LoggerHelper.Enrich(IContainerScope scope, IAction action, Func`1 next) in /home/rancher/work/ad5b4b8ac61f326a/BUILD/ezdrp/rundev/EZDRP.App/Startup/Logger/LoggerHelper.cs:line 57
at .Receive(IContainerScope , ICommandDto , Func`1 )
at (TaskAwaiter`1& )
at .Handle(HttpContext , Type )
at ...MoveNext()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at ...MoveNext()","ErrorId":"3e5575fb9cc547ca8ee0091501954cea","ErrorResponseBody":"{
\"errorId\": \"3e5575fb9cc547ca8ee0091501954cea\",
\"instance\": \"/ezdrp/administracja/menu/operacje/pobierz\",
\"status\": 400,
\"type\": \"https://httpstatuses.io/400\",
\"title\": \"Problem z logowaniem\",
\"detail\": \"40e5da76: Problem z logowaniem\",
\"messages\": [
{
\"text\": \"Problem z logowaniem\",
\"code\": \"40e5da76\",
\"fields\": []
}
]
}","SourceContext":"LoggerMiddleware","RequestId":"0HN77J3AKLT3E:00000007","RequestPath":"/ezdrp/administracja/menu/o
peracje/pobierz","ConnectionId":"0HN77J3AKLT3E","MachineName":"ezdrp-api-59876d59c9-d8w9v","ExceptionDetail":{"HResult":-2146233088,"Message":"Problem z logowaniem","Source":"EZDRP.Common","TargetSite":"Void Validate()","Messages":[{"Text":"Problem z logowaniem","Code":"40e5da76","Fields":[]}],"HttpCode":null,"IsLogged":true,"ErrorId":"3e5575fb9cc547ca8ee0091501954cea","Type":"ICE.Infrastructure.Exceptions.BusinessException"},"ConsoleLogger":"true","IceHost":"EZDRP","InstanceName":"ezd-test.un.pl","SeqLogger":"true"}
2024-10-11T09:41:40.337220540Z {"@t":"2024-10-11T09:41:40.3357249Z","@mt":"Problem z logowaniem","@l":"Error","@x":"ICE.Infrastructure.Exceptions.BusinessException: Problem z logowaniem
at EZDRP.Common.Access.ContextValidator.Validate() in /home/rancher/work/ad5b4b8ac61f326a/BUILD/ezdrp/common/EZDRP.Common/Core/Access/context/ContextValidator.cs:line 67
at EZDRP.Common.Access.AccessValidator.<>c__DisplayClass2_0.<<Validate>b__0>d.MoveNext() in /home/rancher/work/ad5b4b8ac61f326a/BUILD/ezdrp/common/EZDRP.Common/Core/Access/AccessValidator.cs:line 65
--- End of stack trace from previous location ---
at .PreHandle(IContainerScope , ICommandDto )
at .Handle(ICommandDto , Dictionary`2 )
at Rundev_EZDRP_Core.LoggerHelper.Enrich(IContainerScope scope, IAction action, Func`1 next) in /home/rancher/work/ad5b4b8ac61f326a/BUILD/ezdrp/rundev/EZDRP.App/Startup/Logger/LoggerHelper.cs:line 57
at .Receive(IContainerScope , ICommandDto , Func`1 )
at (TaskAwaiter`1& )
at .Handle(HttpContext , Type )
at ...MoveNext()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at ..�
��.MoveNext()","ErrorId":"aaf2b6c2b18845a5b111812ab93e8a51","ErrorResponseBody":"{
\"errorId\": \"aaf2b6c2b18845a5b111812ab93e8a51\",
\"instance\": \"/pobierz-ustawienie\",
\"status\": 400,
\"type\": \"https://httpstatuses.io/400\",
\"title\": \"Problem z logowaniem\",
\"detail\": \"40e5da76: Problem z logowaniem\",
\"messages\": [
{
\"text\": \"Problem z logowaniem\",
\"code\": \"40e5da76\",
\"fields\": []
}
]
}","SourceContext":"LoggerMiddleware","RequestId":"0HN77J3AKLT3D:0000000B","RequestPath":"/pobierz-ustawienie","ConnectionId":"0HN77J3AKLT3D","MachineName":"ezdrp-api-59876d59c9-d8w9v","ExceptionDetail":{"HResult":-2146233088,"Message":"Problem z logowaniem","Source":"EZDRP.Common","TargetSite":"Void Validate()","Messages":[{"Text":"Problem z logowaniem","Code":"40e5da76","Fields":[]}],"HttpCode":null,"IsLogged":true,"ErrorId":"aaf2b6c2b18845a5b111812ab93e8a51","Type":"ICE.Infrastructure.Exceptions.BusinessException"},"ConsoleLogger":"true","IceHost":"EZDRP","InstanceName":"ezd-test.un.pl","SeqLogger":"true"}
2024-10-11T09:41:40.337956761Z {"@t":"2024-10-11T09:41:40.3377409Z","@mt":"Handle command {HandlerName}","HandlerName":"PobierzUstawieniaQuery","SourceContext":"CommandInterceptor","Body":"{\"WartoscDomyslna\":null,\"Klucze\":[\"EZDRP.System.PotwierdzeniePrawidlowejOperacji\"],\"PoziomUstawienia\":null}","Referer":"/unauthorized","ApplicationName":"EZDRP","InstanceVersion":"19.7.56","InstanceName":"ezd-test.un.pl","RequestId":"tyzkltkrglaln01odpc3i:2","ConnectionId":"tyzkltkrglaln01odpc3i","TID":null,"SID":null,"UID":"3abed8ca80c24ce596abadddc456162a","PID":"5e009669bc87422fa9e79a60418b55c6","RequestPath":"/pobierz-ustawienie","MachineName":"ezdrp-api-59876d59c9-d8w9v","ConsoleLogger":"true","IceHost":"EZDRP","SeqLogger":"true"}
2024-10-11T09:41:40.339668284Z {"@t":"2024-10-11T09:41:40.3386798Z","@mt":"Problem z logowaniem","@l":"Error","@x":"ICE.Infrastructure.Exceptions.BusinessException: Problem z logowaniem
at EZDRP.Common.Access
.ContextValidator.Validate() in /home/rancher/work/ad5b4b8ac61f326a/BUILD/ezdrp/common/EZDRP.Common/Core/Access/context/ContextValidator.cs:line 67
at EZDRP.Common.Access.AccessValidator.<>c__DisplayClass2_0.<<Validate>b__0>d.MoveNext() in /home/rancher/work/ad5b4b8ac61f326a/BUILD/ezdrp/common/EZDRP.Common/Core/Access/AccessValidator.cs:line 65
--- End of stack trace from previous location ---
at .PreHandle(IContainerScope , ICommandDto )
at .Handle(ICommandDto , Dictionary`2 )
at Rundev_EZDRP_Core.LoggerHelper.Enrich(IContainerScope scope, IAction action, Func`1 next) in /home/rancher/work/ad5b4b8ac61f326a/BUILD/ezdrp/rundev/EZDRP.App/Startup/Logger/LoggerHelper.cs:line 57
at .Receive(IContainerScope , ICommandDto , Func`1 )
at (TaskAwaiter`1& )
at .Handle(HttpContext , Type )
at ...MoveNext()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at ...MoveNext()","ErrorId":"e2b3b3e5d4614c63b29a3f3bd0bcacd2","ErrorResponseBody":"{
\"errorId\": \"e2b3b3e5d4614c63b29a3f3bd0bcacd2\",
\"instance\": \"/pobierz-ustawienie\",
\"status\": 400,
\"type\": \"https://httpstatuses.io/400\",
\"title\": \"Problem z logowaniem\",
\"detail\": \"40e5da76: Problem z logowaniem\",
\"messages\": [
{
\"text\": \"Problem z logowaniem\",
\"code\": \"40e5da76\",
\"fields\": []
}
]
}","SourceContext":"LoggerMiddleware","RequestId":"0HN77J3AKLT3F:0000000C","RequestPath":"/pobierz-ustawienie","ConnectionId":"0HN77J3AKLT3F","MachineName":"ezdrp-api-59876d59c9-d8w9v","ExceptionDetail":{"HResult":-2146233088,"Message":"Problem z logowani
em","Source":"EZDRP.Common","TargetSite":"Void Validate()","Messages":[{"Text":"Problem z logowaniem","Code":"40e5da76","Fields":[]}],"HttpCode":null,"IsLogged":true,"ErrorId":"e2b3b3e5d4614c63b29a3f3bd0bcacd2","Type":"ICE.Infrastructure.Exceptions.BusinessException"},"ConsoleLogger":"true","IceHost":"EZDRP","InstanceName":"ezd-test.un.pl","SeqLogger":"true"}