Skip to main content

TooComplexQuery

Andromeda answers 403 with the problem type https://uri.etsi.org/ngsi-ld/errors/TooComplexQuery. The query is well formed, but answering it would exceed one of the broker's complexity limits. A syntax error in the same place is BadRequestData instead, so this answer means the query parses and is too big. The specification defines this type for a query the broker can't answer within its resources and binds it to 403.

When this comes back​

Every limit here is Andromeda's own, set under request_limits in the configuration, and the detail names the one you hit.

  • A q filter makes more comparisons than request_limits.max_q_comparisons (1,000 by default). Each query term is one comparison, and a value list such as a==1,2,3 counts one per value. The limit is checked on entity queries, temporal queries and deletes by query, and on a subscription when you write it.
  • A q filter nests its ; and | combinations deeper than request_limits.max_q_nesting (16 by default). a;b nests one level and a;(b|c) two, and parentheses around a single term add none.
  • A reference geometry holds more positions than request_limits.max_geometry_positions (1,000,000 by default), on a query, a subscription geoQ or a registration.