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

"QuotaExceededError The quota has been exceeded" in packages/browser/src/lib/priority-queue/persisted.ts#L73. #1200

Open
mciastek opened this issue Dec 5, 2024 · 0 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@mciastek
Copy link

mciastek commented Dec 5, 2024

Description

We have received a report in Sentry related to @segment/analytics-next package, which indicates that some localStorage operations are throwing QuotaExceededError The quota has been exceeded.. The trace points to https://github.com/segmentio/analytics-next/blob/master/packages/browser/src/lib/priority-queue/persisted.ts#L73.

image

Possible fix

In order to prevent such issues, it's recommended to wrap any localStorage.setItem() calls in try/catch block (see SO thread).

Device details

Browser
Name Safari
Version 17.6

Operating System
Name Mac OS X
Version >=10.15.7

@silesky silesky added enhancement New feature or request bug Something isn't working labels Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants