Could not establish EventSource connection error when loading items

7 replies
Last updated: Oct 9, 2020
Is there any kind of downtime/degraded perf? I’m getting lots of
An error occurred while loading items: Could not establish EventSource connection
AI Update

The "Could not establish EventSource connection" error you're seeing typically indicates a problem with the real-time connection between your Sanity Studio and the Content Lake. This connection is used to keep your Studio updated with live changes.

Here's what could be causing this:

1. Check Sanity's Status First, verify if there's an ongoing incident by checking status.sanity.io. If there's platform-wide degraded performance or an outage, this would explain the EventSource connection failures.

2. Common Causes (if no outage):

  • Network/Firewall Issues: EventSource connections use Server-Sent Events (SSE) which some corporate firewalls, VPNs, or network proxies may block. Try from a different network or disable your VPN temporarily.

  • Browser Extensions: Ad blockers or privacy extensions can interfere with EventSource connections. Try disabling them or testing in an incognito/private window.

  • CORS/Connection Limits: If you have many Studio tabs open or long-running connections, you might hit browser connection limits. Try closing other tabs and refreshing.

  • Local Development Issues: If running locally, ensure your Studio is properly configured and you're authenticated. Try running sanity login again.

3. Immediate Workarounds:

  • Refresh your browser (hard refresh with Ctrl+Shift+R or Cmd+Shift+R)
  • Clear browser cache and cookies for your Studio
  • Try a different browser
  • Restart your local dev server if running Studio locally

4. If the Problem Persists:

The Studio should still be functional even without the EventSource connection - you just won't see real-time updates from other users. You can still create, edit, and publish content, but you'll need to manually refresh to see changes from others.

If you're experiencing this consistently and it's not related to a platform incident, reach out to Sanity support through the help center with details about your environment (browser, network setup, whether it's local or deployed Studio).

Show original thread
7 replies
Thanks for reporting Ross — I’ll check in with the ops team.
Thanks for reporting Ross — I’ll check in with the ops team.
Could you DM me your project ID and dataset
user G
?
For anyone else having seen these: this should now be better. We’ll continue to monitor until it’s deemed stable.
we're still encountering this issue
The heightened API error rates of before are no longer visible, so it could be an isolated issue. Could you DM me your project ID and dataset if it’s still happening?
yep

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.

Was this answer helpful?