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 #2231

Closed daftplug closed 2 years ago

daftplug commented 2 years ago

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

Error: Error generating Android package. Status code: 500 Error: Internal Server Error Details: Error generating app package: request to https://www.diariosurnoticias.com/wp-content/medios/2020/10/logo.favi_-512x512.png failed, reason: Hostname/IP does not match certificate's altnames: Host: www.diariosurnoticias.com. is not in the cert's altnames: DNS:.ssl.hwcdn.net, DNS:ssl.hwcdn.net code: ERR_TLS_CERT_ALTNAMEINVALID stack: FetchError: request to https://www.diariosurnoticias.com/wp-content/medios/2020/10/logo.favi-512x512.png failed, reason: Hostname/IP does not match certificate's altnames: Host: www.diariosurnoticias.com. is not in the cert's altnames: DNS:.ssl.hwcdn.net, DNS:ssl.hwcdn.net at ClientRequest. (/app/node_modules/node-fetch/lib/index.js:1461:11) at ClientRequest.emit (events.js:314:20) at TLSSocket.socketErrorListener (_http_client.js:427:9) at TLSSocket.emit (events.js:314:20) at emitErrorNT (internal/streams/destroy.js:92:8) at emitErrorAndCloseNT (internal/streams/destroy.js:60:3) at processTicksAndRejections (internal/process/task_queues.js:84:21)

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

I just tested your URL in PWABuilder, and it looks like your web server is sending us a 503 error, preventing us from fetching your manifest.

I found a workaround for you:

In PWABuilder, in the Android options dialog, set your Manifest URL to:

The generate your Android app. It worked for me. Give it a try?

daftplug commented 2 years ago

Thank you! It did work.