Hello,

I have an error when i look the "Service Workers" in Developer Tools in Chrome. ServiceWorker failed to install: ServiceWorker failed to handle event (event.waitUntil Promise rejected). I don't understand because I test the pwa module 8.x in Simplytest.me and he works very well, no worry to install and activate Service Worker.

My test website is in HTTPS, but I don't know if error come from server config or not.

Thank's.

CommentFileSizeAuthor
#4 website.png17.59 KBjhanchin
#4 simplytest.png25.37 KBjhanchin
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jhanchin created an issue. See original summary.

patrickd’s picture

sorry i don't quite understand the problem, could you describe step by step?

which module exactly did you test?
where exactly do you get the error?

jhanchin’s picture

The module is "Progressive Web App", and to test it, i run this module in Simplytest.me. No problem in website but ...

When I download module, and install to my website, the module not working (Offline functionnality, etc).

To test if the module works, I open Chrome and Developer Tools, in "Application" tabs and "Service Workers" in left.
Reload page in website and status is green ( It works).

In my website, I have error "ServiceWorker failed to install: ServiceWorker failed to handle event (event.waitUntil Promise rejected)". (Module don't work).

I think is a different web config or server because the drupal settings of Simplytest.me and my website are the same.

jhanchin’s picture

FileSize
25.37 KB
17.59 KB
patrickd’s picture

hmm sorry I don't know anything about this module and if I understand you correctly it works on simplytest.me (?)

You created this issue in the simplytest.me issue queue and if there was a problem with the module on simplytest.me itself i'd try to find out why.

But the module fails to work on your own site and is therefore not within my responsibilities.

I'd recommend that you go to the PWA modules issue queue and create a support request there, you can find the queue here: https://www.drupal.org/project/issues/pwa?categories=All

Besides that I must say that the module does not seem to have any actual releases yet – it's therefore probably not intended to be used productively yet so I'd generally advice against using it. But that's something the maintainers of the module should know more about.

jhanchin’s picture

Sorry to spend your time,

i was thinking it was a web config ou server config different about my website. I create a support to the module page. I wait their answers.

Thank's to your help.

volkswagenchick’s picture

Status: Active » Closed (outdated)

We have switched frameworks, so I am closing this issue as outdated. Thanks!