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.82k stars 287 forks source link

[BUG] Creation of windows app fails #4842

Open davesmits opened 2 weeks ago

davesmits commented 2 weeks ago

What happened?

I tried to create a the windows package for this app https://www.pwabuilder.com/reportcard?site=https://happy-stone-0394e9503.5.azurestaticapps.net/

and fails:

Error: Failed. Status code 500 System.InvalidOperationException: Unable to fetch manifest via manifest finder service. The call to https://pwabuilder-apiv2-node.azurewebsites.net/api/FindWebManifest?site=https%3A%2F%2Fhappy-stone-0394e9503.5.azurestaticapps.net%2F failed

How do we reproduce the behavior?

1 go to https://www.pwabuilder.com/reportcard?site=https://happy-stone-0394e9503.5.azurestaticapps.net/ 2 enter the package id, publisher id, publisher display name 3 click on generate package 4 it gives an error: image

The site I was testing is: https://happy-stone-0394e9503.5.azurestaticapps.net/ at Microsoft.PWABuilder.Windows.Chromium.Services.WebManifestFinder.InvokeManifestFinderService(String apiUrl) in C:\app\Services\WebManifestFinder.cs:line 138 at Microsoft.PWABuilder.Windows.Chromium.Services.WebManifestFinder.Find(WindowsAppPackageOptions options) in C:\app\Services\WebManifestFinder.cs:line 91 at Microsoft.PWABuilder.Windows.Chromium.Services.WindowsAppPackageCreator.GenerateZip(WindowsAppPackageOptions options) in C:\app\Services\WindowsAppPackageCreator.cs:line 135 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.gAwaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|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.gAwaited|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.gAwaited|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/131.0.0.0 Safari/537.36 Edg/131.0.0.0 Accept-Encoding: gzip, deflate, br, zstd Accept-Language: en-US,en;q=0.9,nl;q=0.8 Content-Type: application/json Max-Forwards: 9 Origin: https://www.pwabuilder.com Content-Length: 2011 sec-ch-ua-platform: "Windows" platform-identifier-version: 1.0.0 sec-ch-ua: "Microsoft Edge";v="131", "Chromium";v="131", "Not_A Brand";v="24" platform-identifier: PWABuilder sec-ch-ua-mobile: ?0 correlation-id: 10d53375c-d1042-4fe7-9ea8-e27910cc68d31 Sec-Fetch-Site: cross-site Sec-Fetch-Mode: cors Sec-Fetch-Dest: empty X-ARR-LOG-ID: b39fd1fa-b603-4fe1-b92e-87ed66422679 CLIENT-IP: 188.89.220.180:51088 DISGUISED-HOST: pwabuilder-windows-docker.azurewebsites.net X-SITE-DEPLOYMENT-ID: pwabuilder-windows-docker WAS-DEFAULT-HOSTNAME: pwabuilder-windows-docker.azurewebsites.net X-Forwarded-Proto: https X-AppService-Proto: https X-ARR-SSL: 2048|256|CN=Microsoft Azure RSA TLS Issuing CA 03, 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: 188.89.220.180:51088, 188.89.220.180 X-Original-URL: /msix/generatezip X-WAWS-Unencoded-URL: /msix/generatezip

at Ge (https://www.pwabuilder.com/code/test-publish-pane.c459aeca.js:14:310)
at async Ye (https://www.pwabuilder.com/code/test-publish-pane.c459aeca.js:14:7400)
at async ye (https://www.pwabuilder.com/code/test-publish-pane.c459aeca.js:14:7009)
at async g.generate (https://www.pwabuilder.com/code/test-publish-pane.c459aeca.js:1832:1123)

What do you expect to happen?

I expect the windows package is created

What environment were you using?

windows 11; edge browser

Additional context

My app is about a windows widget; in order to make this work beeing in the store is a required; making it blocking to continue with my app

Some of the other apps I have that worked before are now failing: https://www.pwabuilder.com/reportcard?site=https://zealous-coast-000168303.4.azurestaticapps.net

davesmits commented 1 week ago

@jgw96 the part where this goes wrong isnt open source is it? (would love to help if it is)