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.66k stars 279 forks source link

[BUG] Unable to create Android package due to: Internal Server Error Status code: 500. Error generating app package: Failed to download icon.... Responded with status 500 #4591

Closed leblzdenek closed 7 months ago

leblzdenek commented 8 months ago

What happened?

Cannot create Android Package with PWA Builder. Although it worked for me 6 months ago.

Copy of the stack trace

The site I was testing is: https://www.mynutrients.app Error: Failed to download icon https://www.mynutrients.app/icons-512.png. Responded with status 500 at ImageHelper.fetchIcon (/app/node_modules/@bubblewrap/core/dist/lib/ImageHelper.js:96:19) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async TwaGenerator.generateIcons (/app/node_modules/@bubblewrap/core/dist/lib/TwaGenerator.js:210:22) at async TwaGenerator.createTwaProject (/app/node_modules/@bubblewrap/core/dist/lib/TwaGenerator.js:331:13) at async BubbleWrapper.generateTwaProject (file:///app/build/bubbleWrapper.js:89:9) at async BubbleWrapper.generateAppPackage (file:///app/build/bubbleWrapper.js:38:9) at async createAppPackageWith403Fallback (file:///app/routes/project.js:261:16) at async createAppPackage (file:///app/routes/project.js:237:16) at async file:///app/routes/project.js:44:28

How do we reproduce the behavior?

GoTo:https://www.pwabuilder.com/ Enter:www.mynutrients.app Click:Start After the next page loads click at: Package for Stores / Generate package for Android / Keep default as is and click Download Package. Error shows:

Internal Server Error

Status code: 500. Error generating app package: Failed to download icon https://www.mynutrients.app/icons-512.png. Responded with status 500

What do you expect to happen?

Android package should be build

What environment were you using?

Windows 10, Chrome

Additional context

No response

khmyznikov commented 8 months ago

mynutrients (2).zip Works fine for me

leblzdenek commented 7 months ago

mynutrients (2).zip Works fine for me

Hello and thank you for the Christmass present :)

Have you used the PWA builder install version? The web version https://www.pwabuilder.com/ still does not work for me and I also tried to run it from another computer.

khmyznikov commented 7 months ago

Yes I have used pwabuilder site, nothing special. Can you record how this problem looks for you, with the devtools output?

khmyznikov commented 7 months ago

You can use source code from the archive to build project in Android Studio.

leblzdenek commented 7 months ago

Yes I have used pwabuilder site, nothing special. Can you record how this problem looks for you, with the devtools output?

Coincidentally, just when I used the recording function of devtools, the Android package was successfully built. Thank you for your support!

khmyznikov commented 7 months ago

Good! Please share it if you notice something like this again!