Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chrome console error using default demo #145

Open
892206 opened this issue Jun 20, 2022 · 4 comments
Open

Chrome console error using default demo #145

892206 opened this issue Jun 20, 2022 · 4 comments
Labels
area: service-worker bug A routine task. effort: small Task is a small effort. help wanted If you know something about this, we would love your help!

Comments

@892206
Copy link

892206 commented Jun 20, 2022

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?

@892206 892206 changed the title Chrome console error Chrome console error using default demo Jun 20, 2022
@schalkneethling
Copy link
Contributor

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.

@schalkneethling schalkneethling transferred this issue from mdn/sw-test Aug 11, 2022
@SystemDisc
Copy link

I am also getting this error.

@caugner caugner added needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. bug A routine task. area: service-worker and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Oct 10, 2023
@pepelsbey
Copy link
Contributor

pepelsbey commented Nov 23, 2023

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

@pepelsbey pepelsbey added help wanted If you know something about this, we would love your help! effort: small Task is a small effort. labels Nov 23, 2023
@sidewayss
Copy link
Contributor

sidewayss commented Feb 3, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: service-worker bug A routine task. effort: small Task is a small effort. help wanted If you know something about this, we would love your help!
Projects
None yet
Development

No branches or pull requests

6 participants