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 #2700

Closed
kksnow opened this issue Mar 17, 2022 · 2 comments
Closed

Error generating windows package #2700

kksnow opened this issue Mar 17, 2022 · 2 comments

Comments

@kksnow
Copy link

kksnow commented Mar 17, 2022

Hi guys, I submitted earlier an issue without a proper URL. Sorry about that.

I received the following error when generating a package for https://creditcards-bad-credit.creditoptimal.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 17, 2022
@ghost
Copy link

ghost commented Mar 17, 2022

Hello kksnow, 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 🙌

@Jaylyn-Barbee
Copy link
Contributor

Hello. 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

2 participants