Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error generating windows package #2692

Closed
telraclair opened this issue Mar 13, 2022 · 2 comments
Closed

Error generating windows package #2692

telraclair opened this issue Mar 13, 2022 · 2 comments

Comments

@telraclair
Copy link

I received the following error when generating a package for https://www.cetness.com

Error: Failed. Status code 500, Error: , Details: System.Net.Http.HttpRequestException: Response status code does not indicate success: 400 (Bad Request).
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at Microsoft.PWABuilder.Windows.Chromium.Services.ImageGenerator.CreateWindows11ImagesZip(Byte[] image, Double padding, String backgroundColor) in D:\a\pwabuilder-windows-chromium\pwabuilder-windows-chromium\Web\Services\ImageGenerator.cs:line 141
at Microsoft.PWABuilder.Windows.Chromium.Services.ImageGenerator.InvokePwabuilderImageGeneratorService(WindowsImages imageOptions, WebAppManifestContext webManifest) in D:\a\pwabuilder-windows-chromium\pwabuilder-windows-chromium\Web\Services\ImageGenerator.cs:line 72
at Microsoft.PWABuilder.Windows.Chromium.Services.ImageGenerator.Generate(WindowsAppPackageOptions options, WebAppManifestContext manifest, String outputDirectory) in D:\a\pwabuilder-windows-chromium\pwabuilder-windows-chromium\Web\Services\ImageGenerator.cs:line 52
at Microsoft.PWABuilder.Windows.Chromium.Services.WindowsAppPackageCreator.GenerateZip(WindowsAppPackageOptions options) in D:\a\pwabuilder-windows-chromium\pwabuilder-windows-chromium\Web\Services\WindowsAppPackageCreator.cs:line 133
at Microsoft.PWABuilder.Windows.Chromium.Services.WindowsAppPackageCreator.CreateAppPackage(WindowsAppPackageOptions options) in D:\a\pwabuilder-windows-chromium\pwabuilder-windows-chromium\Web\Services\WindowsAppPackageCreator.cs:line 68
at Microsoft.PWABuilder.Windows.Chromium.Controllers.MsixController.CreateAppPackage(WindowsAppPackageOptions options) in D:\a\pwabuilder-windows-chromium\pwabuilder-windows-chromium\Web\Controllers\MsixController.cs:line 145
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActio

@ghost ghost added the needs triage 🔍 label Mar 13, 2022
@ghost
Copy link

ghost commented Mar 13, 2022

Hello telraclair, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will investigate the issue and help solve it ASAP. Other community members may also look into the issue and provide feedback 🙌

@amrutha95
Copy link
Contributor

Hi @telraclair ! I'm sorry you are running into this. The issue you are facing is because the background color of the icons in your manifest is of the format rgb(,,,), while the accepted format is a valid HEX color (eg. #FFFFFF). You could convert all your existing color values to the hex value through the Manifest Options in PWABuilder.com and try running it again.

We are working on adding some validation checks for PWA manifests. Background and theme colors will also be validated in the future (#2400) so you would receive a more readable error.

@ghost ghost locked as resolved and limited conversation to collaborators Apr 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants