Skip to content
Black Friday: 50% off for life for the first 20 customers, then 40% off your first year. Ends November 30.
Error codes · realuptime errors ingest

RU-4009: Error event context too large

One event in the batch carried more tags, context entries, or frame local variables than the hard limit allows, so the batch was refused WHOLE and counted as a malformed drop. This is not the ordinary size cap: going a little over a cap truncates and tells you how many entries were dropped, on the issue itself. This code means a map arrived with hundreds of entries, which is a bug in the code building the event rather than an over-eager integration. Ships with `reason: "oversize_context"`.

Where it is raised

  • Errors ingest (/api/errors/v1/ingest)

What triggers it

A map inside an event (tags, context, or frame variables) has more than 200 entries. The message names the map and its count. Fewer entries over the ordinary cap are trimmed and counted on the issue, not refused. The batch is counted as malformed drops.

Example response

POST /api/errors/v1/ingest/<key>
HTTP 400

{
  "error": "tags carried 240 entries; the hard limit is 200.",
  "reason": "oversize_context",
  "code": "RU-4009"
}

Common causes

  • A whole request body, response, or ORM object passed to setContext instead of a few named values.
  • Tags set in a loop, one per record, instead of one tag naming the batch.
  • Local-variable capture switched on in a function holding a very large frame.

How to fix it

  1. Set a handful of named tags and context entries, not a dump of an object.
  2. Move bulk data out of context: an error tracker stores what identifies the failure, not the payload that caused it.
  3. Ordinary overage needs no action; the issue detail states how many entries a size cap dropped.

Related codes