Skip to content

[BUG] LocalStorageAdapter doesn't handle QuotaExceededError, silently failing to persist session data instead of surfacing a usable error #787

Open

Description

@meshackyaro

Description

When browser storage quota is exceeded (common in private/incognito modes with strict limits), the storage adapter's setItem call throws, and the SDK's wrapper swallows it without any error propagation or fallback.

Component

storage

Steps to Reproduce

  1. Fill browser storage close to its quota (or use a private-mode tab with strict limits).
  2. Trigger an SDK operation that persists session state via the storage adapter.
  3. Check whether an error is surfaced anywhere or whether it fails silently.

Expected Behavior

A QuotaExceededError should either propagate to the caller or trigger a documented fallback (e.g. in-memory-only session, with a warning).

Actual Behavior

The write silently fails; the caller has no idea session persistence isn't actually working until they notice sessions don't survive a refresh.

Environment

  • SDK version: 0.3.x
  • Node version: 20.x, 22.x
  • OS: macOS / Linux
  • Network: TESTNET

Code Example

// Not applicable — reproduced via API inspection, not a standalone snippet.

Error Output

N/A — no thrown error; behavior is incorrect but silent.

Difficulty

🟢 Easy

Additional Context

The storage adapter's write method is wrapped in a try/catch that logs nothing and returns normally on failure.

Activity

  1. added
    bug
    good first issue
    difficulty: easy
    priority: medium
    on Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdifficulty: easygood first issueinfrastructurepriority: mediumsdk

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions