The Sanity engineering blog is live. Deep dives from our engineers.

API rate limit error followed by ECONNREFUSED - IP blocked?

18 repliesLast updated: Nov 29, 2025

I got a single error while querying the API
API rate limit exceeded
. Since then, I’m getting
ECONNREFUSED 34.102.211.197:443
.
The project usage seems well within its limits, and I’m not getting the error if I change to another network connection.

Could it be that my IP has been blocked? Is there anyone here who can help me to figure this out?
AI Update

I understand how frustrating this situation is! Based on your symptoms, it does appear that your IP address may have been temporarily blocked after triggering the rate limit. The fact that switching to another network connection resolves the issue is a strong indicator of an IP-level block.

The IP address 34.102.211.197:443 is one of Sanity's API servers, so the ECONNREFUSED error suggests your requests from that specific IP are being rejected at the connection level.

Why this happens: When Sanity's API detects rate limit violations, it can temporarily block the offending IP address as a protective measure. Even though your project usage is within limits, the rate limiting is often applied per IP address per time window, not just overall project usage.

Immediate solutions:

Preventing future occurrences:

If you're in active development and hitting rate limits, you might want to review your query patterns to see if you're making unnecessary requests (like queries in tight loops or on every keystroke). The good news is that this is typically a temporary issue that resolves itself, but support can definitely help if you need immediate access!

Show original thread
18 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