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.54k stars 273 forks source link

PWA Builder dont recognize manifest file #4735

Closed karimsalim closed 3 weeks ago

karimsalim commented 3 weeks ago

Discussed in https://github.com/pwa-builder/PWABuilder/discussions/4734

Originally posted by **karimsalim** June 11, 2024 Hello every body ! I try to create a PWA Application with PWA Builder. My Website is hosted in private IIS Server and works fine. When i try to launch a report in PWA Builder with my url i have this error : ![image](https://github.com/pwa-builder/PWABuilder/assets/45826637/6889a3ad-c69f-4eee-b313-4309ef7e4299) My manifest file : [manifest.json](https://github.com/user-attachments/files/15789158/manifest.json) When i look on de devtools with Chrome i have errors : ![image](https://github.com/pwa-builder/PWABuilder/assets/45826637/0a1346e1-e0b0-4e67-914f-3ae88163f6ff) I try with [pwabuilder-manifest-finder/api/findmanifest](https://pwabuilder-manifest-finder.azurewebsites.net/api/findmanifest?) with verbose activated and i have this error : ``` { "manifestUrl": null, "manifestScore": null, "manifestContents": null, "error": "Type = System.Threading.Tasks.TaskCanceledException\nMessage = The operation was canceled.\nSource = Microsoft.PWABuilder.ManifestFinder\nTask = \nCancellationToken = System.Threading.CancellationToken\nTargetSite = Void MoveNext()\nStackTrace = at Microsoft.PWABuilder.ManifestFinder.ManifestService.LoadPage(Uri url) in /home/runner/work/pwabuilder-manifest-finder/pwabuilder-manifest-finder/Services/ManifestService.cs:line 581\n at Microsoft.PWABuilder.ManifestFinder.ManifestService.Run(ManifestDetectionOptions options) in /home/runner/work/pwabuilder-manifest-finder/pwabuilder-manifest-finder/Services/ManifestService.cs:line 37\n at Microsoft.PWABuilder.ManifestFinder.Function.Run(HttpRequest req, ILogger log, ExecutionContext context) in /home/runner/work/pwabuilder-manifest-finder/pwabuilder-manifest-finder/Function.cs:line 54\nHelpLink = \nHResult = -2146233029\nInnerException = ", "manifestContainsInvalidJson": false, "warnings": { }, "additionalManifests": { } } ``` Can you help me please ?
jgw96 commented 3 weeks ago

Hello! Thanks for reaching out. So, is this app available to the public? Like could I just pull the URL up in my browser? Asking as I'm not entirely sure what you mean by private IIS server, but if the URL is "private" or not available to the public (so its like on your intranet only basically), then you will not be able to package with PWABuilder. However, if your app is private, and only meant to work on your private network, then honestly PWABuilder is not going to do much for you here.

karimsalim commented 3 weeks ago

Hello ! Thanks for your response ! The problem solved : our IT team have unlocked CDN from US.