PWA, Unable to fetch start URL via service worker.
See original GitHub issueProvide the steps to reproduce
- Run LH (only PWA) on https://game.edendepot.com/code-lab-demo/
What is the current behavior?
Unable to fetch start URL via service worker.
What is the expected behavior?
use the start_url https://game.edendepot.com/code-lab-demo/index.html?launcher=true
or /
or /code-lab-demo/
Environment Information
User agent (host): Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.157 Safari/537.36 User agent (network): Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3694.0 Mobile Safari/537.36 Chrome-Lighthouse
Related issues
I followed https://medium.com/coderlist/introductio-e521ad99ff89 and forked to test with GitHub pages using my own (sub) domain (master is published).
Source code is at https://github.com/j2l/code-lab-demo
It couldn’t find https://game.edendepot.com/code-lab-demo/manifest.json before I changed path in index.html to <link rel="manifest" href="/code-lab-demo/manifest.json">
so I guess there’s a path issue.
I tried multiple ways but I’m stuck.
Thanks for your help.
PS: I don’t plan to change the project path https://game.edendepot.com/code-lab-demo/
or switch hosting. I just need the right path.
Issue Analytics
- State:
- Created 4 years ago
- Comments:9
Top GitHub Comments
The issue you’ve encountered seems to relate to the guide you followed, so consider following up with the author in the comments section of the medium article you posted. If LH’s advice is wrong or could be more impactful, we’d be happy to hear the specifics.
I just tried looking at the URL you shared in the OP, but I don’t see a service worker being registered at all. I suppose that may be because you’ve modified the page since filing this report.
@patrickhulce
Do we collect logs from service workers (idk if
console-messages
picks them up, I think we may need to manually listen to the SW target when it attaches)? Maybe we could display errors from the SW target in the PWA section of the report?We’re optimizing for managing the actionable backlog for problems pertaining to Lighthouse, not for providing general support, which other places like Stackoverflow are much better suited for. You haven’t offered a specific problem, just a debugging story, which is not very actionable.
Wow, First time denial of service. Congrats Google. BTW, this pwa installs on mobile so it’s definitely a LH issue. But I guess you didn’t check.
On Jul 22, 2019 7:10 PM, “Patrick Hulce” notifications@github.com wrote: