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 android package #2219

Closed
afrizal423 opened this issue Nov 13, 2021 · 4 comments · Fixed by #2234
Closed

Error generating android package #2219

afrizal423 opened this issue Nov 13, 2021 · 4 comments · Fixed by #2234

Comments

@afrizal423
Copy link

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

Error: Error generating Android package.
Status code: 500
Error: Internal Server Error
Details: Error generating app package:
invalid json response body at https://afrizalmy.com/ reason: Unexpected token < in JSON at position 0
stack: FetchError: invalid json response body at https://afrizalmy.com/ reason: Unexpected token < in JSON at position 0
at /app/node_modules/node-fetch/lib/index.js:272:32
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at TwaGenerator.writeWebManifest (/app/node_modules/@bubblewrap/core/dist/lib/TwaGenerator.js:225:33)
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 ghost added the needs triage 🔍 label Nov 13, 2021
@ghost
Copy link

ghost commented Nov 13, 2021

Hello afrizal423, 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
Copy link
Contributor

I'm able to repro. Investigating.

@JudahGabriel
Copy link
Contributor

JudahGabriel commented Nov 15, 2021

The issue is that PWABuilder Android settings resolves your manifest to the wrong URL:

image

This is a bug, and we'll fix it. @Jaylyn-Barbee might this be caused by a recent fix you did in this area of manifest URL resolution?

@afrizal423 As a temporary workaround, in the PWABuilder Android options dialog, set the manifest URL to https://afrizalmy.com/_nuxt/manifest.b6f84be4.json

@afrizal423
Copy link
Author

pwa
cannot download file when click button download
Uncaught (in promise) DOMException: The user aborted a request.

@ghost ghost added the In-PR 🚀 label Nov 18, 2021
@ghost ghost added Completed 🔥 and removed In-PR 🚀 labels Nov 30, 2021
@pwa-builder pwa-builder locked as resolved and limited conversation to collaborators Jan 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants