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

Error generating android package: Responded with status 503 #2123

Closed daftplug closed 2 years ago

daftplug commented 2 years ago

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

Error: Error generating Android package. Status code: 500 Error: Internal Server Error Details: Error generating app package: Failed to download Web Manifest https://www.kafunel.com/manifest.webmanifest.Responded with status 503 stack: Error: Failed to download Web Manifest https://www.kafunel.com/manifest.webmanifest.Responded with status 503 at TwaGenerator.writeWebManifest (/app/node_modules/@bubblewrap/core/dist/lib/TwaGenerator.js:221:19) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:97:5) at TwaGenerator.createTwaProject (/app/node_modules/@bubblewrap/core/dist/lib/TwaGenerator.js:350:13) at BubbleWrapper.generateTwaProject (/app/build/bubbleWrapper.ts:112:9) at BubbleWrapper.generateAppPackage (/app/build/bubbleWrapper.ts:53:9) at createAppPackageWith403Fallback (/app/routes/project.ts:249:12) at createAppPackage (/app/routes/project.ts:225:12) at /app/routes/project.ts:36:24

ghost commented 2 years ago

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

JudahGabriel commented 2 years ago

The issue is that you're using Cloudflare's anti-bot, anti-scraping technology. It is blocking PWABuilder from packaging your site, mistakenly thinking we're a bad bot.

To fix this, pause Cloudflare. Login to Cloudflare, select your site, then click Pause Cloudflare on Site: image

Once you pause Cloudflare, run your app through PWABuilder and it'll should work this time.

After you've created your Android package, you can un-pause Cloudflare.

Give this a try and let us know how it goes for you.

JudahGabriel commented 2 years ago

Closing due to inactivity. If you're still hitting an issue, please reopen.