# 未捕获（在 Promise 中）DOMException：超出配额

**URL:** <https://meta.discourse.org/t/uncaught-in-promise-domexception-quota-exceeded/143942>\
**Category:** Support\
**Created:** [2020年三月11日 17:56 UTC](https://meta.discourse.org/t/uncaught-in-promise-domexception-quota-exceeded/143942 "2020-03-11T17:56:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ufukayyildiz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ufukayyildiz/32/217157_2.png) [@ufukayyildiz](https://meta.discourse.org/u/ufukayyildiz)\
**Post date:** [2020年三月11日 17:56 UTC](https://meta.discourse.org/t/uncaught-in-promise-domexception-quota-exceeded/143942/1 "2020-03-11T17:56:33Z")

</div>

你好，

我有时会遇到以下错误。请问有什么建议吗？谢谢。

Uncaught (in promise) DOMException: 配额超出。

 ![image](https://global.discourse-cdn.com/meta/original/3X/2/a/2afc31bb0c3c99a7ad919b09f1b6cb93d325d72e.png)

 ![image](https://global.discourse-cdn.com/meta/original/3X/8/3/83f24f2466355b95da48e96414bb3d6c52d67a07.png)

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [2020年三月11日 18:43 UTC](https://meta.discourse.org/t/uncaught-in-promise-domexception-quota-exceeded/143942/2 "2020-03-11T18:43:13Z")

</div>

这种情况确实可能发生，但我们的服务工人在出现此类错误时已配置为自动修复：

[https://github.com/discourse/discourse/blob/master/app/assets/javascripts/service-worker.js.erb#L21](https://github.com/discourse/discourse/blob/master/app/assets/javascripts/service-worker.js.erb#L21)

> <https://github.com/GoogleChrome/workbox/blob/234e69d9506be9301705171ba0dbfe046262f029/packages/workbox-expiration/src/ExpirationPlugin.ts#L91-L93>

> <https://github.com/GoogleChrome/workbox/blob/main/packages/workbox-core/src/_private/cacheWrapper.ts#L301-L309>

> <https://github.com/GoogleChrome/workbox/blob/234e69d9506be9301705171ba0dbfe046262f029/packages/workbox-expiration/src/ExpirationPlugin.ts#L278-L288>

我在 Firefox 上从未见过此错误，因此我认为它正按预期运行，此时我的 Meta 总缓存仅为 96MB。

如果您持续遇到此错误，我们可能需要向项目上游提交报告。

---

<div class="post-metadata">

**Author:** ![ufukayyildiz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ufukayyildiz/32/217157_2.png) [@ufukayyildiz](https://meta.discourse.org/u/ufukayyildiz)\
**Post date:** [2020年三月29日 21:41 UTC](https://meta.discourse.org/t/uncaught-in-promise-domexception-quota-exceeded/143942/3 "2020-03-29T21:41:56Z")

</div>

我在 Chrome 上也遇到了同样的错误。

 ![image](https://global.discourse-cdn.com/meta/original/3X/2/1/21d39c28a84bcca96a3080bf06aed64c5006f4f6.png)

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2020年三月30日 04:44 UTC](https://meta.discourse.org/t/uncaught-in-promise-domexception-quota-exceeded/143942/4 "2020-03-30T04:44:03Z")

</div>

正如您上方帖子中所述，请直接向 Chrome 开发者报告此问题。

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2020年四月29日 04:44 UTC](https://meta.discourse.org/t/uncaught-in-promise-domexception-quota-exceeded/143942/5 "2020-04-29T04:44:17Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
