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.69k stars 282 forks source link

Error generating android package #2287

Closed mcmultimedia closed 2 years ago

mcmultimedia commented 2 years ago

I received the following error when generating a package for https://mcred.fun

Error: Error generating Android package. Status code: 500 Error: Internal Server Error Details: Error generating app package: invalid json response body at https://mcred.fun/ reason: Unexpected token < in JSON at position 0 stack: FetchError: invalid json response body at https://mcred.fun/ reason: Unexpected token < in JSON at position 0 at /app/node_modules/node-fetch/lib/index.js:272:32 at runMicrotasks () 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 commented 2 years ago

Hello mcmultimedia, 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

I'm not able to repro.

Here are the steps I followed:

  1. Go to PWABuilder and analyze mcred.fun
  2. Advance to publish page
  3. Choose Android Store package

It downloaded successfully. How can I reproduce this error?

p.s. your manifest has some problems in it: the shortcuts member looks like this:

"shortcuts": [
    {
      "name": "Home",
      "short_name": "Home",
      "description": "Home",
      "url": "",
      "icons": [
        {
          "src": "",
          "sizes": ""
        }
      ]
    }
  ]

The "Home" shortcut is missing icon src and description.

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 14 days. It will be closed if no further activity occurs within 30 days of this comment.

ghost commented 2 years ago

This issue has been automatically closed because it was marked as requiring author feedback but has not had any activity for 30 days.