Witam,
podczas testowania systemu napotkałem błąd generowania podglądu pliku XML. Zgodnie z logiem, aplikacja przekracza czas określony w konfiguracji i zwraca timeout podczas obsługi żądania. Problem polega na tym, że nie wiem jaki dokładnie komponent odpowiada za generowanie podglądów. Czy mógłbym w związku z tym prosić o podpowiedź gdzie szukać przyczyny?
Z góry dziękuję
Poniżej log:
{"@t":"2025-04-08T09:51:10.5748040Z","@mt":"Błąd generowania podglądu.","@l":"Warning","@x":"System.Threading.Tasks.TaskCanceledException: The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.\n ---> System.TimeoutException: A task was canceled.\n ---> System.Threading.Tasks.TaskCanceledException: A task was canceled.\n at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)\n at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)\n at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)\n at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)\n at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)\n at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.<SendCoreAsync>g__Core|5_0(HttpRequestMessage request, Boolean useAsync, CancellationToken cancellationToken)\n at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)\n --- End of inner exception stack trace ---\n --- End of inner exception stack trace ---\n at System.Net.Http.HttpClient.HandleFailure(Exception e, Boolean telemetryStarted, HttpResponseMessage response, CancellationTokenSource cts, CancellationToken cancellationToken, CancellationTokenSource pendingRequestsCts)\n at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)\n at ICE.Infrastructure.HttpClient.HttpClient.SendByAction(String url, String method, HttpClientRequest clientRequest, CancellationToken cancellationToken, HttpCompletionOption completionOption)\n at ICE.Infrastructure.HttpClient.HttpClient.SendAndReceiveBytes(String url, HttpClientRequest request, String method, CancellationToken cancellationToken)\n at EZDRP.Xslt.Commands.Handlers.WygenerujTransformateXmlHandler.PobierzXslZUriAsync(String uri) in /home/rancher/work/5346f41d54014263/src/xslt/EZDRP.Xslt.Commands/Handlers/WygenerujTransformateXmlHandler.cs:line 196\n at EZDRP.Xslt.Commands.Handlers.WygenerujTransformateXmlHandler.PobierzXslZXmlStylesheetAsync(XDocument xDoc, String idPlikStorage) in /home/rancher/work/5346f41d54014263/src/xslt/EZDRP.Xslt.Commands/Handlers/WygenerujTransformateXmlHandler.cs:line 229\n at EZDRP.Xslt.Commands.Handlers.WygenerujTransformateXmlHandler.PobierzTransformacje(String xmlNamespace, XDocument xDoc, String idPlikStorage) in /home/rancher/work/5346f41d54014263/src/xslt/EZDRP.Xslt.Commands/Handlers/WygenerujTransformateXmlHandler.cs:line 133\n at EZDRP.Xslt.Commands.Handlers.WygenerujTransformateXmlHandler.InvokeAsync(WygenerujTransformateXmlCommand input, Dictionary`2 properties) in /home/rancher/work/5346f41d54014263/src/xslt/EZDRP.Xslt.Commands/Handlers/WygenerujTransformateXmlHandler.cs:line 67\n at ICE.AppCommon.Commands.ScopedCommandDispatcher.InvokeCommandHandle(ICommandDto command, Dictionary`2 properties, Type handlerType, ICommandHandlerBase commandHandlerBase)\n at ICE.AppCommon.Commands.Interceptors.CommandHandlerInterceptors.Handle(IContainerScope scope, ICommandDto command, Type handlerType, Func`1 next)\n at ICE.AppCommon.Commands.ScopedCommandDispatcher.HandleAutoTransactionCommand(ICommandDto command, Dictionary`2 properties, Type handlerType, ICommandHandlerBase commandHandlerBase)\n at ICE.AppCommon.Commands.ScopedCommandDispatcher.HandleAutoTransactionCommand(ICommandDto command, Dictionary`2 properties, Type handlerType, ICommandHandlerBase commandHandlerBase)\n at ICE.AppCommon.Commands.ScopedCommandDispatcher.Handle(ICommandDto command, Dictionary`2 properties)\n at EZDRP.App.InProcServiceChannel.EZDRPInProcServiceChannel.ScopeHandle[TResponse](ICommandDto command) in /home/rancher/work/5346f41d54014263/src/web-service/EZDRP.App/Startup/InProcServiceChannel/EZDRPInProcServiceChannel.cs:line 86\n at EZDRP.App.InProcServiceChannel.EZDRPInProcServiceChannel.ExceptionRetry[TResponse](ICommandDto command) in /home/rancher/work/5346f41d54014263/src/web-service/EZDRP.App/Startup/InProcServiceChannel/EZDRPInProcServiceChannel.cs:line 61\n at EZDRP.App.InProcServiceChannel.EZDRPInProcServiceChannel.SendAndReceive[TResponse](ICommandDto command) in /home/rancher/work/5346f41d54014263/src/web-service/EZDRP.App/Startup/InProcServiceChannel/EZDRPInProcServiceChannel.cs:line 43\n at EZDRP.Common.CommandGateway.EZDRPCommandGateway.SendAndReceive[TResponse](ICommandDto command)\n at EZDRP.Dokumenty.AS.CommandsRole.Commands.OtwieraniePliku.GeneratorPodgladuPlikowXml.GenerujPodglad(DanePliku plik) in /home/rancher/work/5346f41d54014263/src/workspace/as-dokumenty/WORKSPACE.AS.DokumentyCommandsRole/Commands/OtwieraniePliku/GeneratorPodgladuPlikowXml.cs:line 22\n at EZDRP.Dokumenty.AS.CommandsRole.Commands.OtwieraniePliku.GeneratorPodgladu.SprobujWygenerowacPodglad(DanePliku plik) in /home/rancher/work/5346f41d54014263/src/workspace/as-dokumenty/WORKSPACE.AS.DokumentyCommandsRole/Commands/OtwieraniePliku/GeneratorPodgladu.cs:line 89","@tr":"ec1365c2283c494b1b1d7c86db040380","@sp":"9051d6b9e7aea58b","Plik":{"IdDokument":"3f9038d44ebd4869857b1ab8be2ad8f0","Nazwa":"[eDoręczenia]RE Przesyłka e-Doręczenia.xml","IdPlikStoragePodglad":"","IdPlikStorage":"S1.250408.85b6d129-ccfe-42de-ad1d-57ff4a3de28e","IdDokumentWersja":"434ca83380d34747b9efc75f22d8cf42","Rozszerzenie":".xml","CzyPosiadaPodglad":false,"TypDokumentu":"0","CzyWydruk":false,"IsFileSignatureValid":true,"$type":"DanePliku"},"SourceContext":"GeneratorPodgladu","Body":"{\"IdPlikStorage\":null,\"IsWydruk\":false,\"IdDokument\":\"3f9038d44ebd4869857b1ab8be2ad8f0\",\"IdDokumentWersja\":null}","Referer":"/do-obsluzenia/cd67773916464f9abc0b366971e37135","ApplicationName":"EZDRP","InstanceVersion":"21.7.47","InstanceName":"ezd-test.un.pl","RequestId":"9w94n4cg202ls896f1p72:53","ConnectionId":"9w94n4cg202ls896f1p72","TID":null,"SID":"b1218459a8e4461d86cbecb6d7b2ad85","UID":"8bf73536686e4ca88e747df20d5370fc","PID":"ab7863c948a24e14bb4d2a534794e533","RequestPath":"/dokumenty-as-open-file","MachineName":"ezdrp-api-ff8b9678b-78t9w","ConsoleLogger":"true","IceHost":"EZDRP","SeqLogger":"true"}
{"@t":"2025-04-08T09:51:10.5803526Z","@mt":"Handle command {HandlerName}","@tr":"ec1365c2283c494b1b1d7c86db040380","@sp":"9051d6b9e7aea58b","HandlerName":"OtworzPlikZFileRepositoryCommand","ExecutionTime":100043.4655,"SourceContext":"CommandInterceptor","Body":"{\"IdPlikStorage\":null,\"IsWydruk\":false,\"IdDokument\":\"3f9038d44ebd4869857b1ab8be2ad8f0\",\"IdDokumentWersja\":null}","Referer":"/do-obsluzenia/cd67773916464f9abc0b366971e37135","ApplicationName":"EZDRP","InstanceVersion":"21.7.47","InstanceName":"ezd-test.un.pl","RequestId":"9w94n4cg202ls896f1p72:53","ConnectionId":"9w94n4cg202ls896f1p72","TID":null,"SID":"b1218459a8e4461d86cbecb6d7b2ad85","UID":"8bf73536686e4ca88e747df20d5370fc","PID":"ab7863c948a24e14bb4d2a534794e533","RequestPath":"/dokumenty-as-open-file","MachineName":"ezdrp-api-ff8b9678b-78t9w","ConsoleLogger":"true","IceHost":"EZDRP","SeqLogger":"true"}