Skip to content

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

@mciastek

Description

@mciastek

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions