🎤 Builder Talk: The Story Behind Lady Gaga’s Digital Experience – Register now

Discussing groq query size limits and solutions in Sanity.io

2 replies
Last updated: Feb 7, 2025
Seems like I've hit a limit for the size of the groq query for
listenQuery()
. Is there any more details about this? Can something be done?
Feb 7, 2025, 10:26 AM
The limit here is 16K and we add in a 'buffer' of 1.2K ; so the actual limit including headers is ~15K . This error is typically thrown when the request URL exceeds that limit.Would it be possible to break down your Fragment into something smaller?
Feb 7, 2025, 1:41 PM
Yes, it could be possible. But I ended up solving it with a regular client.fetch().
But thanks for the details.
🙂 Really good to know the exact limits. 🙂
Feb 7, 2025, 4:14 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?