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

StrategyHandler.doneWaiting unhandled rejection #3172

Closed
wants to merge 7 commits into from

Conversation

joshkel
Copy link
Contributor

@joshkel joshkel commented Feb 1, 2023

Fixes #3171

StrategyHandler.doneWaiting throws on the first rejected promise that it encounters. This means that subsequent rejected promises may result in unhandled rejection errors.

Promise.allSettled is a natural solution. It does not appear to be supported on all browsers that workbox uses. I tried installing promise.allsettled from NPM but had trouble getting the default import from that module to work correctly with Rollup, and I noticed that the workbox service worker libraries tend to avoid external dependencies in general, so I created a local version instead. I put it under workbox-core's _private directory, following the example of other utility code such as Deferred. If I should handle this differently, please let me know.

@joshkel joshkel changed the title Strategy unhandled rejection StrategyHandler.doneWaiting unhandled rejection Feb 1, 2023
tropicadri and others added 7 commits May 17, 2023 15:02
* updating typescript version and types

* Updating dependencies types dependencies
#3215)

* Updating octokit/rest and lerna

* Updating mocha

* Updating types

* removing the lerna upgrade

* update lerna to the highest version that doesn't break the tests, also fixes the critical dependency error
doneWaiting throws on the first rejected promise that it encounters.  This means that subsequent rejected promises may result in unhandled rejection errors.

Fixes #3171
@tomayac
Copy link
Member

tomayac commented Apr 25, 2024

Hi there,

Workbox is moving to a new engineering team within Google. As part of this move, we're declaring a partial bug bankruptcy to allow the new team to start fresh. We realize this isn't optimal, but realistically, this is the only way we see it working. For transparency, here're the criteria we applied:

Thanks, and we hope for your understanding!
The Workbox team

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

Successfully merging this pull request may close these issues.

StrategyHandler.doneWaiting may result in unhandled promise rejections
3 participants