Chrome console error using default demo
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 4k
- Forks
- 1.9k
- Avg merge
- 7h 53m
- Merged PRs (30d)
- 1
Description
Example: service-worker/simple-service-worker
I tried the demo and got the following error after couple of refreshes:
The service worker navigation preload request was cancelled before 'preloadResponse' settled. If you intend to use 'preloadResponse', use waitUntil() or respondWith() to wait for the promise to settle.
and as second error:
Uncaught (in promise) DOMException: The service worker navigation preload request was cancelled before 'preloadResponse' settled. If you intend to use 'preloadResponse', use waitUntil() or respondWith() to wait for the promise to settle.
after I watched the github demo I saw the same problem. How could this be resolved?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the service-worker/simple-service-worker demo linked in the report and reproduce the console errors after several refreshes. Read the service-worker navigation preload handling and verify the demo no longer reports the cancellation or uncaught promise errors in Chrome.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100