Visitar URL original
Chrome console error using default demo · Issue #145 · mdn/dom-examples · GitHub
Skip to content

Chrome console error using default demo #145

Open

Description

@892206

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?

Activity

  1. changed the title [-]Chrome console error[/-] [+]Chrome console error using default demo[/+] on Jun 20, 2022
  2. schalkneethling commented on Aug 11, 2022

    @schalkneethling

    Hey @892206! Thank you for opening this issue. We are combining some of our repositories to enable us to triage pull requests and issues more effectively. Therefore, this specific repository will be merged into the more prominent dom-examples repository. I will transfer this issue to this new repo for further discussion.

  3. SystemDisc commented on Aug 30, 2023

    @SystemDisc

    I am also getting this error.

  4. added
    needs triageTriage needed by staff and/or partners. Automatically applied when an issue is opened.
    bugA routine task.
    and removed
    needs triageTriage needed by staff and/or partners. Automatically applied when an issue is opened.
    on Oct 10, 2023
  5. pepelsbey commented on Nov 23, 2023

    @pepelsbey
    Member

    I was able to reproduce the error:

    1. Check out git@github.com:mdn/dom-examples.git
    2. Go to the example: cd service-worker/simple-service-worker
    3. Start local server npx lite-server
    4. Open demo in Chrome
    5. Check console for errors (empty)
    6. Wait a bit, reload a few times:

    Image

    There’s also another one:

    Failed to execute 'put' on 'Cache': Request method 'POST' is unsupported

  6. added
    help wantedIf you know something about this, we would love your help!
    on Nov 23, 2023
  7. sidewayss commented on Feb 3, 2024

    @sidewayss
    Contributor

    This is a Chrome bug filed last March: https://bugs.chromium.org/p/chromium/issues/detail?id=1420515
    Not even assigned yet, so don't hold your breath for a fix. And don't bother trying to fix this demo app.

    I opened a PR to add a comment about this bug in the code: #253.

  8. bsmth commented on Mar 3, 2025

    @bsmth
    Member

    This is a Chrome bug filed last March: https://bugs.chromium.org/p/chromium/issues/detail?id=1420515 Not even assigned yet, so don't hold your breath for a fix. And don't bother trying to fix this demo app.

    I opened a PR to add a comment about this bug in the code: #253.

    It looks like the Chrome bug has been closed as wontfix…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: service-workerbugA routine task.effort: smallTask is a small effort.help wantedIf you know something about this, we would love your help!

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions