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.77k stars 285 forks source link

Error generating android package #2568

Closed inn0ichi closed 2 years ago

inn0ichi commented 2 years ago

I was try to build our sites PWA apk but it keeps throwing this error. I tried the windows test package and it generated successfully. manifest.json is viewable on app.expressmd.ga/manifest.json

I received the following error when generating a package for https://app.expressmd.ga

Error: Error generating Android package. Status code: 500 Error: Internal Server Error Details: Error generating app package: Failed to download Web Manifest https://app.expressmd.ga/manifest.json.Responded with status 503 stack: Error: Failed to download Web Manifest https://app.expressmd.ga/manifest.json.Responded with status 503 at TwaGenerator.writeWebManifest (/app/node_modules/@bubblewrap/core/dist/lib/TwaGenerator.js:221:19) 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 inn0ichi, 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 commented 2 years ago

I'm able to repro.

The issue is that when PWABuilder's Android server goes to fetch your web manifest, a 503 error is returned.

This is caused by Cloudflare's anti-bot and anti-scraping technology blocking our servers.

We recommend temporarily pausing Cloudflare, generating your Android package. Login to Cloudflare, select your site, then choose Pause Cloudflare on Site:

image

Create your Android package, then you can re-enable Cloudflare.

Give that a shot and let us know if it works for you.

ghost commented 2 years ago

This issue has been automatically marked as "no-recent-activity" because it requires author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment.