pwa-builder / PWABuilder

The simplest way to create progressive web apps across platforms and devices. Start here. This repo is home to several projects in the PWABuilder family of tools.
https://docs.pwabuilder.com
Other
2.72k stars 280 forks source link

[BUG] Timeout on Image generator service #4647

Closed amrutha95 closed 7 months ago

amrutha95 commented 8 months ago

What happened?

Windows packaging times out due to some timeout that's coming from the image generation service for https://www.sparkk.tv/

How do we reproduce the behavior?

Generate package for https://www.sparkk.tv/

What do you expect to happen?

No response

What environment were you using?

Edge

Additional context

at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token) at System.Net.Security.SslStream.EnsureFullTlsFrameAsync[TIOAdapter](CancellationToken cancellationToken, Int32 estimatedSize) at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder1.StateMachineBox1.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token) at System.Net.Security.SslStream.ReadAsyncInternal[TIOAdapter](Memory1 buffer, CancellationToken cancellationToken) at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder1.StateMachineBox1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token) at System.Net.Http.HttpConnection.InitialFillAsync(Boolean async) at System.Net.Http.HttpConnection.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) --- End of inner exception stack trace --- at System.Net.Http.HttpConnection.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.DecompressionHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken) --- End of inner exception stack trace --- --- End of inner exception stack trace --- at System.Net.Http.HttpClient.HandleFailure(Exception e, Boolean telemetryStarted, HttpResponseMessage response, CancellationTokenSource cts, CancellationToken cancellationToken, CancellationTokenSource pendingRequestsCts) at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken) at Microsoft.PWABuilder.Windows.Chromium.Services.ImageGenerator.CreateWindows11ImagesZip(Byte[] image, Double padding, String backgroundColor) in C:\app\Services\ImageGenerator.cs:line 141 at Microsoft.PWABuilder.Windows.Chromium.Services.ImageGenerator.InvokePwabuilderImageGeneratorService(WindowsImages imageOptions, WebAppManifestContext webManifest) in C:\app\Services\ImageGenerator.cs:line 73 at Microsoft.PWABuilder.Windows.Chromium.Services.ImageGenerator.Generate(WindowsAppPackageOptions options, WebAppManifestContext manifest, String outputDirectory) in C:\app\Services\ImageGenerator.cs:line 53 at Microsoft.PWABuilder.Windows.Chromium.Services.WindowsAppPackageCreator.GenerateZip(WindowsAppPackageOptions options) in C:\app\Services\WindowsAppPackageCreator.cs:line 136 at Microsoft.PWABuilder.Windows.Chromium.Services.WindowsAppPackageCreator.CreateAppPackage(WindowsAppPackageOptions options, AnalyticsInfo analyticsInfo) in C:\app\Services\WindowsAppPackageCreator.cs:line 72 at Microsoft.PWABuilder.Windows.Chromium.Controllers.MsixController.CreateAppPackage(WindowsAppPackageOptions options, HttpContext httpContext) in C:\app\Controllers\MsixController.cs:line 153 at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask1 actionResultValueTask) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.gAwaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.gAwaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context)

HEADERS

Accept: / Connection: keep-alive Host: pwabuilder-windows-docker.azurewebsites.net User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36 Edg/121.0.0.0 Accept-Encoding: gzip, deflate, br Accept-Language: en-US,en;q=0.9 Content-Type: application/json Max-Forwards: 9 Origin: https://www.pwabuilder.com/ Content-Length: 1487 sec-ch-ua: "Not A(Brand";v="99", "Microsoft Edge";v="121", "Chromium";v="121" correlation-id: 19de76410-48210-4fb10-9c4a-ab178ff9b9e5 platform-identifier-version: 1.0.0 sec-ch-ua-mobile: ?0 platform-identifier: PWABuilder sec-ch-ua-platform: "Windows" Sec-Fetch-Site: cross-site Sec-Fetch-Mode: cors Sec-Fetch-Dest: empty X-ARR-LOG-ID: 55c39547-0638-4fb0-a9c6-445a5d391f0d CLIENT-IP: 131.107.1.248:35692 DISGUISED-HOST: pwabuilder-windows-docker.azurewebsites.net X-SITE-DEPLOYMENT-ID: pwabuilder-windows-docker__55f7 WAS-DEFAULT-HOSTNAME: pwabuilder-windows-docker.azurewebsites.net X-Forwarded-Proto: https X-AppService-Proto: https X-ARR-SSL: 2048|256|CN=Microsoft Azure TLS Issuing CA 01, O=Microsoft Corporation, C=US|CN=*.azurewebsites.net, O=Microsoft Corporation, L=Redmond, S=WA, C=US X-Forwarded-TlsVersion: 1.3 X-Forwarded-For: 131.107.1.248:35692, 131.107.1.248 X-Original-URL: /msix/generatezip X-WAWS-Unencoded-URL: /msix/generatezip

at We (https://www.pwabuilder.com/code/test-publish-pane.e307632c.js:14:310)
at async je (https://www.pwabuilder.com/code/test-publish-pane.e307632c.js:14:7396)
at async fe (https://www.pwabuilder.com/code/test-publish-pane.e307632c.js:14:7005)
at async O.generate (https://www.pwabuilder.com/code/test-publish-pane.e307632c.js:2241:388)
at async O.generateWindowsTestPackage (https://www.pwabuilder.com/code/test-publish-pane.e307632c.js:2241:158)```
khmyznikov commented 8 months ago

This image is too big to process withing the given time: https://www.sparkk.tv/images/resources/icons/android-maskable.png?v=924875 We can fix this by the explicit conversion to the smaller size before the main processing, but not sure it worth it.

jgw96 commented 7 months ago

Closing this as a "wontfix" for now.