How AI is powering better personalization in e-commerce [with Vercel]. Sign up now

Max listener limit exceeded at 1004 error in Sanity Studio

7 repliesLast updated: Nov 29, 2025

Hi Sanity fam, I've been working on a project for a client and just started receiving some Javascript errors stating:
Error: Max listener limit exceeded at 1004
. This started intermittently yesterday and said
at 1001
. It has since stopped being intermittent and is now permanently stating
Error: Max listener limit exceeded at 1004
. I previously figured it was due to some complex deskStructure stuff going on but have now completely removed all the complexities and am attempting to load an
S.editor()
for a specific ID and it's not loading a thing. Restarted the local instance of Studio, cleared by cookies and cache.
Thoughts?
AI Update

Hey there! This is a tricky one, but the "Max listener limit exceeded at 1004" error you're seeing is actually hitting a platform-level limit on concurrent listeners to Sanity's real-time APIs.

Based on the technical limits documentation, Sanity enforces maximum concurrent listener limits per project plan:

You're hitting the 1,004 listener mark, which suggests you're on a Free plan and have exceeded the 1,000 concurrent listener threshold.

What's causing this?

Each time Studio opens a document or subscribes to real-time updates, it creates listener connections. These can accumulate from:

How to fix this:

Immediate steps:

Longer-term solutions:

For development:

The fact that you're seeing it "permanently" at 1,004 suggests you have active connections that aren't closing. The 30-minute connection lifetime should eventually help, but closing Studio tabs is your quickest fix.

If you continue having issues after trying these steps, you might want to reach out to Sanity support to check if there's something unusual with your project's listener connections.

Show original thread
7 replies

Was this answer helpful?

Sanity – Build the way you think, not the way your CMS thinks

Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.

Related contributions