Skip to main content
err:user:unprocessable_entity:query_memory_limit_exceeded
Your analytics query returned a result that’s too large, or needed too much memory. You get HTTP 422, and detail says which.
Example response

Likely causes

  • The result is over 4 MiB as JSON. This is the common one, and detail is Query result exceeds the maximum response size.
  • The query needed more than 1 GB of memory while running, unless we’ve raised that for you. detail is a memory message.

How to fix

  1. For a result that’s too large, return fewer rows or columns: add a LIMIT, drop wide columns you don’t need, and page through long ranges by time. Aggregations that return a few rows never hit this.
  2. For memory, filter earlier, group on fewer or lower-cardinality columns, and avoid groupArray over large groups.
Last modified on October 6, 2026