convertigo / C8oForms

Form Builder is the “No Code” environment built on top of Convertigo Low Code platform technology to enable "Citizen" app makers to build and deploy form based apps connected to enterprise back-end data.
https://www.convertigo.com/no-code-form-application-builder/
Other
4 stars 3 forks source link

PWA updates seems to be broken #762

Closed CharlesGrimont closed 3 days ago

CharlesGrimont commented 3 days ago

PWA updates seems to be broken :

If this is an installed PWA it won't update. If PWA is just used in browser, it won't update unless we perform an hard refresh (ctrl+maj+R)

It is causing issues like https://github.com/convertigo/C8oForms/issues/736

We can find in console messages like bellow

VERSION_DETECTED for PWA: Convertigo Forms Builder. current version is: 2.0.0-beta152 {type: 'VERSION_DETECTED', version: {…}}
17:39:19.684 main.1a11fd3df5f6dd08.js:1 VERSION_INSTALLATION_FAILED for PWA: Convertigo Forms Builder. current version is: 2.0.0-beta152.
 error is: Failed to retrieve hashed resource from the server. (AssetGroup: app | URL: /convertigo/projects/C8Oforms/DisplayObjects/pwas/published_1731943746140/styles.844c0dc6c1765a8b.css)
Error: Failed to retrieve hashed resource from the server. (AssetGroup: app | URL: /convertigo/projects/C8Oforms/DisplayObjects/pwas/published_1731943746140/styles.844c0dc6c1765a8b.css)
    at PrefetchAssetGroup.cacheBustedFetchFromNetwork (https://test-convertigo.convertigo.net/convertigo/projects/C8Oforms/DisplayObjects/pwas/published_1731943746140/ngsw-worker.js:481:17)
    at async PrefetchAssetGroup.fetchFromNetwork (https://test-convertigo.convertigo.net/convertigo/projects/C8Oforms/DisplayObjects/pwas/published_1731943746140/ngsw-worker.js:451:19)
    at async PrefetchAssetGroup.fetchAndCacheOnce (https://test-convertigo.convertigo.net/convertigo/projects/C8Oforms/DisplayObjects/pwas/published_1731943746140/ngsw-worker.js:430:21)
    at async https://test-convertigo.convertigo.net/convertigo/projects/C8Oforms/DisplayObjects/pwas/published_1731943746140/ngsw-worker.js:535:9
    at async PrefetchAssetGroup.initializeFully (https://test-convertigo.convertigo.net/convertigo/projects/C8Oforms/DisplayObjects/pwas/published_1731943746140/ngsw-worker.js:520:7)
    at async https://test-convertigo.convertigo.net/convertigo/projects/C8Oforms/DisplayObjects/pwas/published_1731943746140/ngsw-worker.js:924:11
    at async AppVersion.initializeFully (https://test-convertigo.convertigo.net/convertigo/projects/C8Oforms/DisplayObjects/pwas/published_1731943746140/ngsw-worker.js:923:9)
    at async Driver.setupUpdate (https://test-convertigo.convertigo.net/convertigo/projects/C8Oforms/DisplayObjects/pwas/published_1731943746140/ngsw-worker.js:1623:9)
    at async Driver.checkForUpdate (https://test-convertigo.convertigo.net/convertigo/projects/C8Oforms/DisplayObjects/pwas/published_1731943746140/ngsw-worker.js:1651:9)
    at async Object.run (https://test-convertigo.convertigo.net/convertigo/projects/C8Oforms/DisplayObjects/pwas/published_1731943746140/ngsw-worker.js:1484:11) {type: 'VERSION_INSTALLATION_FAILED', version: {…}, error: 'Failed to retrieve hashed resource from the server…s/published_1731943746140/ngsw-worker.js:1484:11)'}

17:39:19.863 main.1a11fd3df5f6dd08.js:1 VERSION_DETECTED for PWA: Convertigo Forms Builder. current version is: 2.0.0-beta152 {type: 'VERSION_DETECTED', version: {…}}

17:39:20.309 main.1a11fd3df5f6dd08.js:1 VERSION_INSTALLATION_FAILED for PWA: Convertigo Forms Builder. current version is: 2.0.0-beta152.
 error is: Failed to retrieve hashed resource from the server. (AssetGroup: app | URL: /convertigo/projects/C8Oforms/DisplayObjects/pwas/published_1731943746140/styles.844c0dc6c1765a8b.css)
Error: Failed to retrieve hashed resource from the server. (AssetGroup: app | URL: /convertigo/projects/C8Oforms/DisplayObjects/pwas/published_1731943746140/styles.844c0dc6c1765a8b.css)
    at PrefetchAssetGroup.cacheBustedFetchFromNetwork (https://test-convertigo.convertigo.net/convertigo/projects/C8Oforms/DisplayObjects/pwas/published_1731943746140/ngsw-worker.js:481:17)
    at async PrefetchAssetGroup.fetchFromNetwork (https://test-convertigo.convertigo.net/convertigo/projects/C8Oforms/DisplayObjects/pwas/published_1731943746140/ngsw-worker.js:451:19)
    at async PrefetchAssetGroup.fetchAndCacheOnce (https://test-convertigo.convertigo.net/convertigo/projects/C8Oforms/DisplayObjects/pwas/published_1731943746140/ngsw-worker.js:430:21)
    at async https://test-convertigo.convertigo.net/convertigo/projects/C8Oforms/DisplayObjects/pwas/published_1731943746140/ngsw-worker.js:535:9
    at async PrefetchAssetGroup.initializeFully (https://test-convertigo.convertigo.net/convertigo/projects/C8Oforms/DisplayObjects/pwas/published_1731943746140/ngsw-worker.js:520:7)
    at async https://test-convertigo.convertigo.net/convertigo/projects/C8Oforms/DisplayObjects/pwas/published_1731943746140/ngsw-worker.js:924:11
    at async AppVersion.initializeFully (https://test-convertigo.convertigo.net/convertigo/projects/C8Oforms/DisplayObjects/pwas/published_1731943746140/ngsw-worker.js:923:9)
    at async Driver.setupUpdate (https://test-convertigo.convertigo.net/convertigo/projects/C8Oforms/DisplayObjects/pwas/published_1731943746140/ngsw-worker.js:1623:9)
    at async Driver.checkForUpdate (https://test-convertigo.convertigo.net/convertigo/projects/C8Oforms/DisplayObjects/pwas/published_1731943746140/ngsw-worker.js:1651:9)
    at async Object.run (https://test-convertigo.convertigo.net/convertigo/projects/C8Oforms/DisplayObjects/pwas/published_1731943746140/ngsw-worker.js:1441:11) {type: 'VERSION_INSTALLATION_FAILED', version: {…}, error: 'Failed to retrieve hashed resource from the server…s/published_1731943746140/ngsw-worker.js:1441:11)'}
CharlesGrimont commented 3 days ago

To be tested in 2.0.0-beta153

gregory-vorbe commented 3 days ago

OK in 2.0.0-beta155

No more errors