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

Getting Failed to execute 'addAll' on 'Cache': Request failed error #161

Open
vincentwansink opened this issue Nov 3, 2022 · 1 comment

Comments

@vincentwansink
Copy link

Error in Chrome Console

Uncaught (in promise) TypeError: Failed to execute 'addAll' on 'Cache': Request failed
Promise.then (async)
(anonymous) @ upup.sw.min.js:6
Promise.then (async)
_parseSettingsAndCache @ upup.sw.min.js:6
(anonymous) @ upup.sw.min.js:6

Steps to Reproduce (for bugs)

Currently this is all I have:

<script src="/upup.min.js"></script>
<script>

  //<!--****************************************************************************-->
  //<!--*** Register service worker for offline use
  //<!--****************************************************************************-->

  UpUp.start({
    'content-url': 'offline.htm',
    'assets': [
    ]  
  });
</script>

I removed the assets just to make sure one of my assets wasn't causing the problem, but regardless I had previously confirmed that they all exist. And yes, offline.htm also exists. I have added the following files to the root of my website

  • upup.min.js
  • upup.min.js.map
  • upup.sw.min.js
  • upup.sw.min.js.map

Lighthouse gives me an all green score for PWA requirements, yet I'm still getting this error both in Chrome and Edge. Edge is actually worse because it seems to be stuck in a perpetual "Offline" state, even though it's clearly online, and it's failing to load a couple of my icons and my common.js file though I suspect if I can get upup to play nice with Chrome, Edge will follow suit.

Are there other upup files I need to upload to my server? I can't find any reference to this in the documentation.

@simone80an
Copy link

I get a similar error only on Chrome (with Firefox working fine) in a jQuery mobile project that i have:

Uncaught (in promise) UnknownError: Failed to execute 'addAll' on 'Cache': Unexpected internal error.

It seems doesn't happens all the times (when refreshing the page sometimes the error appears and other times not).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants