mdn / mdn/dom-examples

Chrome console error using default demo

Open
#145 5 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: service-worker bug effort: small help wanted
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.