QuotaExceededError JavaScript Origin: On your device OSI layer 7 · Application Last updated 14 Oct 2026

QuotaExceededError: Failed to execute 'setItem' on 'Storage': Setting the value exceeded the quota

localStorage/sessionStorage is full (about 5 MB per origin) or storage is disabled.

Exact message you may see exceeded the quota
Seen on: JavaScript

Meaning

Large cached data, base64 images, or Safari private mode (quota 0) trigger it.

Common causes

  • Storing large data/base64 images
  • Accumulated old keys never cleaned up
  • Safari private browsing / storage blocked

⚡ Quick fix

  1. Store large data in IndexedDB instead
  2. Clean up old keys
  3. Wrap setItem in try/catch

Detailed fix by platform

JavaScript

  1. try { localStorage.setItem(k, v); } catch (e) { console.warn('Storage full', e); }

How to diagnose

  1. Size — How much is stored?
  2. Mode — Private browsing?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: On your device. Errors that are often confused with or caused by this one (click to open):

126 incorrect key file — MySQL ERROR 126 (HY000): Incorrect key file for table; try to repair it (MySQL)126 incorrect key fileauth/popup-closed-by-user — Firebase Auth: auth/popup-closed-by-user / auth/popup-blocked / auth/cancelled-popup-request (Authentication)auth/popup-closed-by-…AuthenticationFailed — Azure Storage: Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature (AuthenticationFailed) (Azure)AuthenticationFailedAuthorizationPermissionMismatch — Azure Storage: AuthorizationPermissionMismatch (403) — This request is not authorized to perform this operation using this permission (Azure)AuthorizationPermissi…ContainerNotFound — Azure Storage: ContainerNotFound / BlobNotFound — The specified container (or blob) does not exist (Azure)ContainerNotFoundERR_ABORTED — net::ERR_ABORTED 404 (Not Found) (JavaScript)ERR_ABORTEDERR_BLOCKED_BY_CLIENT — net::ERR_BLOCKED_BY_CLIENT (JavaScript)ERR_BLOCKED_BY_CLIENTERR_CACHE_MISS — ERR_CACHE_MISS: Confirm Form Resubmission (Browser)ERR_CACHE_MISSQuotaExce…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.