---
title: "Event diagnostics"
description: "Every problem Togo reports on an event — refused, dropped or kept but wrong — with what it means and the fix for your coding agent."
canonical: "https://www-stage.togohq.ai/docs/reference/event-diagnostics"
applies_to: "in.togohq.ai, mcp.togohq.ai/mcp, @togohq/sdk-browser 1.x, @togohq/sdk-node 1.x"
updated: "2026-11-24T00:00:00Z"
---

# Event diagnostics

Every problem Togo reports on an event — refused, dropped or kept but wrong — with what it means and the fix for your coding agent.

Togo checks each event when it arrives and reports what is wrong with it as a **diagnostic**: a code, a severity, what it means, and the fix. Live View shows them on each event, and the `verify_tracking` MCP tool returns them to your coding agent with the same text you see here.

An **error** means production drops or loses the data: the event was refused when it arrived, or a part of it will not be stored. A **warning** means production keeps the event as sent, but it is not what its event definition says, or it is very likely a bug.

Events refused when they arrive are also named in the ingest response, and the SDKs log each one as a `[togo]` error, so the console or your server log is the first place to look:

```json
{ "accepted": 19, "rejected": [{ "eventId": "…", "reason": "timestamp_too_old" }] }
```

A code is permanent: its meaning and its severity never change.

| Code                                                                    | Severity | What it is                                              |
| ----------------------------------------------------------------------- | -------- | ------------------------------------------------------- |
| [`timestamp_too_far_future`](#timestamp_too_far_future)                 | error    | Dated in the future                                     |
| [`timestamp_too_old`](#timestamp_too_old)                               | error    | Older than 7 days                                       |
| [`envelope_property_value_too_long`](#envelope_property_value_too_long) | error    | A property value was cut to 1,024 characters            |
| [`envelope_properties_too_many`](#envelope_properties_too_many)         | error    | Properties past 256 were dropped                        |
| [`envelope_experiments_too_large`](#envelope_experiments_too_large)     | error    | The experiments stamp is too large                      |
| [`event_too_large`](#event_too_large)                                   | error    | The event is too large                                  |
| [`session_id_invalid`](#session_id_invalid)                             | error    | The session id is not valid                             |
| [`event_name_reserved`](#event_name_reserved)                           | error    | The name starts with $                                  |
| [`identity_missing`](#identity_missing)                                 | error    | No userId or anonymousId                                |
| [`event_rejected`](#event_rejected)                                     | error    | Refused when it arrived                                 |
| [`event_not_defined`](#event_not_defined)                               | warning  | The event has no definition                             |
| [`event_not_defined_dropped`](#event_not_defined_dropped)               | error    | Dropped: the event has no definition                    |
| [`property_not_defined`](#property_not_defined)                         | warning  | A property is not in the definition                     |
| [`required_property_missing`](#required_property_missing)               | warning  | A required property is missing                          |
| [`property_value_wrong_type`](#property_value_wrong_type)               | warning  | A property has the wrong type                           |
| [`property_value_not_in_enum`](#property_value_not_in_enum)             | warning  | A value is not one of the allowed values                |
| [`property_value_too_long`](#property_value_too_long)                   | warning  | A value is longer than its definition allows            |
| [`event_deprecated`](#event_deprecated)                                 | warning  | The event is deprecated                                 |
| [`property_deprecated`](#property_deprecated)                           | warning  | A property is deprecated                                |
| [`property_reserved`](#property_reserved)                               | error    | Dropped: the property name starts with $                |
| [`property_name_conflict`](#property_name_conflict)                     | warning  | One property sent under two names with different values |
| [`property_name_invalid`](#property_name_invalid)                       | error    | A property name Togo cannot hold                        |
| [`property_not_defined_dropped`](#property_not_defined_dropped)         | error    | Dropped: the property is not in the definition          |
| [`event_name_near_duplicate`](#event_name_near_duplicate)               | warning  | Looks like an existing event                            |
| [`event_name_contains_email`](#event_name_contains_email)               | error    | The name contains an email address                      |
| [`event_name_too_long`](#event_name_too_long)                           | error    | The name is over 255 characters                         |
| [`event_name_cap_reached`](#event_name_cap_reached)                     | error    | The project has 1,000 event names                       |
| [`property_name_cap_reached`](#property_name_cap_reached)               | error    | The project has 1,000 property names                    |
| [`property_pii_dropped`](#property_pii_dropped)                         | error    | Dropped: contains an email address                      |
| [`property_contains_email`](#property_contains_email)                   | warning  | Contains an email address                               |
| [`session_id_contains_email`](#session_id_contains_email)               | warning  | The session id is an email address                      |
| [`user_id_contains_email`](#user_id_contains_email)                     | warning  | The userId is an email address                          |
| [`identify_user_id_conflict`](#identify_user_id_conflict)               | error    | identify() would be refused                             |
| [`person_property_not_defined`](#person_property_not_defined)           | error    | Dropped: the profile property has no definition         |
| [`person_property_name_invalid`](#person_property_name_invalid)         | error    | Dropped: a profile property name Togo cannot hold       |
| [`person_property_value_invalid`](#person_property_value_invalid)       | error    | Dropped: the profile value does not fit its definition  |
| [`person_property_set_once_null`](#person_property_set_once_null)       | error    | Dropped: setOnce with no value                          |
| [`person_property_reserved`](#person_property_reserved)                 | error    | Dropped: the profile property name is reserved          |
| [`event_id_reused`](#event_id_reused)                                   | error    | Two different events share an eventId                   |
| [`clock_skew_too_large`](#clock_skew_too_large)                         | warning  | The sending clock is more than an hour off              |
| [`live_key_from_localhost`](#live_key_from_localhost)                   | warning  | A local build is sending with the live key              |
| [`experiment_entered_recorded`](#experiment_entered_recorded)           | info     | The SDK recorded an experiment entry                    |
| [`experiment_event_stamped`](#experiment_event_stamped)                 | info     | This event counts toward a variant                      |
| [`experiment_draft`](#experiment_draft)                                 | info     | The experiment is still a draft                         |
| [`experiment_variant_forced`](#experiment_variant_forced)               | info     | The variant was forced for testing                      |
| [`experiment_not_participating`](#experiment_not_participating)         | info     | Outside the participation rate                          |
| [`experiment_finished`](#experiment_finished)                           | info     | The experiment has finished                             |
| [`experiment_not_found`](#experiment_not_found)                         | warning  | No experiment by this name                              |
| [`experiment_unit_missing`](#experiment_unit_missing)                   | warning  | The unit id was missing at the call                     |

## `timestamp_too_far_future`

**Error** — production drops or loses the data. Dated in the future.

The event is dated more than 5 minutes after Togo received it, even after correcting for the device clock. It was refused and not stored. The SDKs stamp events themselves, so this nearly always comes from a client that sets its own timestamp.

**Fix, for your coding agent:** Find where the code that sends the event named in `event` sets its timestamp. Send the time the event happened, in UTC ISO-8601 with a `Z` suffix, or leave the timestamp out so the SDK stamps it. Never send a time computed in a local time zone or a time in the future. Then call `verify_tracking` again.

## `timestamp_too_old`

**Error** — production drops or loses the data. Older than 7 days.

The event happened more than 7 days before Togo received it. It was refused and not stored. Usually a device that was offline for over a week, or old data sent through the live endpoint as a backfill.

**Fix, for your coding agent:** Check the timestamp the code sends with the event named in `event`. If it is a fixed or default date, remove it and let the SDK stamp the event when it happens. If this is a backfill of historical data, stop: the ingest endpoint accepts events up to 7 days old and nothing older. Then call `verify_tracking` again.

## `envelope_property_value_too_long`

**Error** — production drops or loses the data. A property value was cut to 1,024 characters.

The string value of the property named in `property` arrived with the length in `actualLength`, over the 1,024-character platform ceiling. The event is kept, and that value is stored cut to its first 1,024 characters. Usually a full URL with a long query string, or text a person typed.

**Fix, for your coding agent:** Find the call that sends the property named in `property`: the `track()` call for the event named in `event`, or a `setPersonProperties()` call when `event` is absent. If it is a URL, send only the part a chart needs — the path, or one query parameter as its own property. If it is text a person typed, remove it or send a length bucket instead. Then call `verify_tracking` again.

## `envelope_properties_too_many`

**Error** — production drops or loses the data. Properties past 256 were dropped.

The map named in `map` — the event's `properties`, or a `setPersonProperties()` call's `set`, `setOnce` or `unset` when `event` is absent — arrived with the number of properties in `actualCount`, over the 256-property platform ceiling. The event is kept with the first 256 property names in sort order; the rest were dropped, and `droppedProperties` names the first ten of them.

**Fix, for your coding agent:** Find the `track()` call for the event named in `event`, or the `setPersonProperties()` call when `event` is absent. It is probably spreading a whole object into the properties, or building property names from data. Send only the properties a chart needs, and move facts about the person to `setPersonProperties()`. Split an event that describes several things into one event per thing. Then call `verify_tracking` again.

## `envelope_experiments_too_large`

**Error** — production drops or loses the data. The experiments stamp is too large.

The event carries an `experiments` map with more than 64 entries, or a name or variant over 64 characters. The event was refused and not stored. The SDK never sends this; another client built the map by hand.

**Fix, for your coding agent:** Stop setting `experiments` on the event by hand: the SDK fills it from `getExperiment()`. If this client cannot use the SDK, send at most 64 entries of the names and variants the experiment was defined with. Then call `verify_tracking` again.

## `event_too_large`

**Error** — production drops or loses the data. The event is too large.

The event’s JSON is over 256 KiB, the most one event may weigh. The event was refused and not stored. Every Togo SDK drops such an event before sending it and reports it through `onError`; this refusal reaches a client that built the event by hand.

**Fix, for your coding agent:** Find what makes the event large — usually a whole object, a document or a list passed as properties — and send only the few values a chart or a funnel needs, each a short string, number or boolean. An event records what a person did; it does not carry a payload. Then call `verify_tracking` again.

## `session_id_invalid`

**Error** — production drops or loses the data. The session id is not valid.

The session id on this event is not 1–128 characters of letters, digits, `_`, `.`, `:`, `@`, `+`, `%` or `-`. The event was refused and not stored.

**Fix, for your coding agent:** Find where the code sets `sessionId`. A server event should pass only the browser’s `getSessionId()`. A browser app should remove `sessionId` from `init()` and let the SDK manage sessions, and send its own id, if it has one, as an ordinary event property. Then call `verify_tracking` again.

## `event_name_reserved`

**Error** — production drops or loses the data. The name starts with $.

Event names starting with `$` are reserved for Togo. The event was refused and not stored. This is usually another analytics tool’s automatic events — PostHog’s `$pageview`, for example — being forwarded to Togo.

**Fix, for your coding agent:** Find what sends the event named in `event`. If another analytics tool forwards its automatic events to Togo, stop the forwarding and call Togo directly. If the code chose the name, rename it without the `$` (lowercase `snake_case` past tense is recommended), and write its event definition with `update_event_definitions` before sending it. Then call `verify_tracking` again.

## `identity_missing`

**Error** — production drops or loses the data. No userId or anonymousId.

The event has neither a `userId` nor an `anonymousId`, so no person can be credited with it. It was refused and not stored. The browser SDK always sends an `anonymousId` and the server SDK drops such an event itself, so this comes from other clients.

**Fix, for your coding agent:** Find the code that sends the event named in `event`. If it calls Togo over HTTP directly, use the Togo SDK for that runtime instead. If it uses `@togohq/sdk-node`, pass the signed-in person’s `userId`, or the `anonymousId` the browser sent, on every `track()` call. Then call `verify_tracking` again.

## `event_rejected`

**Error** — production drops or loses the data. Refused when it arrived.

The event was refused when it arrived and was not stored, for a reason this view does not describe yet. The event’s rejection code names the reason.

**Fix, for your coding agent:** Read the rejection code on the event named in `event` — the ingest response carries it too, and the SDK logs it to the console — and look it up on the event diagnostics page, which lists every code with its fix. Change the call that sends the event to match. Then call `verify_tracking` again.

## `event_not_defined`

**Warning** — production keeps the data as sent. The event has no definition.

No event definition covers this event. It is kept and can be queried, but it has no description, no property types and nothing to check it against, so the analyst knows only its name.

**Fix, for your coding agent:** Write an event definition for the event named in `event` with `update_event_definitions`: what it means, when it fires, when it does not, and each property it carries with its type. Use the name exactly as the code sends it. Do not rename the event in the code to match an existing definition unless they mean the same thing. Then call `verify_tracking` again.

## `event_not_defined_dropped`

**Error** — production drops or loses the data. Dropped: the event has no definition.

This project keeps only defined events and properties (strict governance), and no event definition covers this one. Production drops it, and turning the setting off later does not recover it.

**Fix, for your coding agent:** Write an event definition for the event named in `event` with `update_event_definitions` before the code sends it again: what it means, when it fires, when it does not, and each property with its type. If the event should not exist, remove the `track()` call instead. Never turn strict governance off without asking the person. Then call `verify_tracking` again.

## `property_not_defined`

**Warning** — production keeps the data as sent. A property is not in the definition.

The event has a definition, and the property named in the diagnostic is not in it. The value is kept as sent, with no type or description.

**Fix, for your coding agent:** Compare the `track()` call for the event named in `event` with its event definition (`get_event`). If the property named in `property` is a typo for a defined one, fix the key in the code. If it is new and meant, add it to the definition with `update_event_definitions`, with its type and description. Then call `verify_tracking` again.

## `required_property_missing`

**Warning** — production keeps the data as sent. A required property is missing.

The event definition marks the property named in the diagnostic as required, and the event did not carry it. The event is kept; charts that filter or group by that property miss it.

**Fix, for your coding agent:** Find the `track()` call for the event named in `event` and send the property named in `property` on every call, including every code path that fires the event. Check the definition with `get_event` for its type. Do not remove `required` from the definition unless the person confirms the property is optional. Then call `verify_tracking` again.

## `property_value_wrong_type`

**Warning** — production keeps the data as sent. A property has the wrong type.

The property named in the diagnostic was sent with a different type than its definition says — a number as a string, for example, or a timestamp that is not UTC. The value is kept as sent, so charts that use it as the defined type get it wrong.

**Fix, for your coding agent:** The property named in `property` was sent as `actualType`, but its definition expects `expected`. Find the `track()` call for the event named in `event` and send the value as `expected`; a timestamp is UTC ISO-8601 with a `Z` suffix. Do not change the definition to match the code unless the person confirms the definition is wrong. Then call `verify_tracking` again.

## `property_value_not_in_enum`

**Warning** — production keeps the data as sent. A value is not one of the allowed values.

The property named in the diagnostic has a fixed list of allowed values in its definition, and the event carried a value outside it. The value is kept as sent, and shows as its own category in every chart.

**Fix, for your coding agent:** Find the `track()` call for the event named in `event` and send only the allowed values listed in `expected` for the property named in `property` — check capitalisation and spelling. If the value is a real new case, ask the person before adding it to the definition with `update_event_definitions`. Then call `verify_tracking` again.

## `property_value_too_long`

**Warning** — production keeps the data as sent. A value is longer than its definition allows.

A string value is longer than the maximum length its property definition sets. The value is kept as sent.

**Fix, for your coding agent:** Find the `track()` call for the event named in `event` and shorten the value of the property named in `property` to the length its definition allows — send a category or a length bucket instead of text. Never send text a person typed as an event property. Do not raise the definition’s limit unless the person asks. Then call `verify_tracking` again.

## `event_deprecated`

**Warning** — production keeps the data as sent. The event is deprecated.

The event definition is marked deprecated. The event is still kept, but its definition says to send another event instead.

**Fix, for your coding agent:** Replace the `track()` call for the event named in `event` with the event named in `expected`, and carry its properties over as that event’s definition lists them (`get_event`). Remove the old call once the new one is in place; do not send both. If `expected` is empty, ask the person what replaces it. Then call `verify_tracking` again.

## `property_deprecated`

**Warning** — production keeps the data as sent. A property is deprecated.

The property named in the diagnostic is marked deprecated in the event definition. Its value is still kept, but the definition says to stop sending it.

**Fix, for your coding agent:** Find the `track()` call for the event named in `event` and stop sending the property named in `property`. Read the event definition with `get_event`: if another property replaces it, send that one instead. Do not remove the property from the definition; a deprecated property stays defined so older builds keep working. Then call `verify_tracking` again.

## `property_reserved`

**Error** — production drops or loses the data. Dropped: the property name starts with $.

Property names starting with `$` are reserved for the properties Togo fills in itself, such as `$os` and `$country`. Production drops the property named in the diagnostic and keeps the rest of the event. This is usually another analytics tool’s automatic properties being forwarded to Togo.

**Fix, for your coding agent:** Find the `track()` call or the `defaultProperties` that send the property named in `property`. If it repeats something Togo already records, such as the operating system or the page, delete it: `get_event` lists those under `reservedProperties`. Otherwise rename it without the `$`. If another tool forwards its own properties, stop the forwarding. Then call `verify_tracking` again.

## `property_name_conflict`

**Warning** — production keeps the data as sent. One property sent under two names with different values.

The event carries two names that count as the one property named in the diagnostic — two names someone merged, such as `planType` and `plan_type` — and they hold different values. Both are kept as sent, but charts read the surviving name first, so the other value is never read.

**Fix, for your coding agent:** Find the `track()` call for the event named in `event`, or the `defaultProperties`, that send the property named in `property` under two names, and send it once. Keep the name the rest of the code already uses; `get_event` lists the names merged into each property. Then call `verify_tracking` again.

## `property_name_invalid`

**Error** — production drops or loses the data. A property name Togo cannot hold.

The property name in the diagnostic is longer than 255 characters, contains a control character or contains an email address — a value used as a name. Production writes the value but never registers the name, so no chart, filter or tool can ever read it; a project that keeps only defined events and properties (strict governance) drops it, since it can never be defined.

**Fix, for your coding agent:** Find the `track()` call for the event named in `event`, or the `defaultProperties`, that send the property named in `property`, and give it a short, fixed name of at most 255 characters — never a value, an id or an email address. Move anything that varies into the property’s value, then define the property. Then call `verify_tracking` again.

## `property_not_defined_dropped`

**Error** — production drops or loses the data. Dropped: the property is not in the definition.

This project keeps only defined events and properties (strict governance), and the property named in the diagnostic is not in the event’s definition. Production drops the property and keeps the rest of the event, and turning the setting off later does not recover it.

**Fix, for your coding agent:** Compare the `track()` call for the event named in `event` with its definition (`get_event`). If the property named in `property` is a typo for a defined one, fix the key in the code. If it is meant, add it to the event with `update_event_definitions`, with its type and description, before the code sends it again. Never turn strict governance off without asking the person. Then call `verify_tracking` again.

## `event_name_near_duplicate`

**Warning** — production keeps the data as sent. Looks like an existing event.

This name is new, and looks like an existing event’s name — `Sign up` beside `sign_up`, for example: the same letters once case, spaces, `_` and `-` are ignored. It is kept as a separate event, so the two are counted apart until someone merges them.

**Fix, for your coding agent:** The event named in `event` looks like the existing event named in `expected`. If they mean the same thing, change the code to send the existing event’s name exactly — `list_events` shows it. If they are different events, write a definition for the new one with `update_event_definitions` that says how it differs. Then call `verify_tracking` again.

## `event_name_contains_email`

**Error** — production drops or loses the data. The name contains an email address.

The event name looks like it contains an email address — usually a value used as a name. The event is stored but can never be queried by name, and the name is not recorded.

**Fix, for your coding agent:** Find the `track()` call that builds the event name named in `event` from data. An event name is a fixed string in lowercase `snake_case` that says what happened, such as `invite_sent`. Move any per-person value out of the name, and never send an email address in an event at all. Then call `verify_tracking` again.

## `event_name_too_long`

**Error** — production drops or loses the data. The name is over 255 characters.

The event name is longer than 255 characters, the longest a defined name can be — usually a value used as a name. The event is stored but can never be queried by name, and the name is not recorded.

**Fix, for your coding agent:** Find the `track()` call that sends the event named in `event`. An event name is a short fixed string in lowercase `snake_case` that says what happened, such as `report_exported`. If the name is built from data, use one fixed name and send the varying part as a property. Then call `verify_tracking` again.

## `event_name_cap_reached`

**Error** — production drops or loses the data. The project has 1,000 event names.

The project already has 1,000 event names, so this new one is not recorded. The event is stored but cannot be queried by name. A project reaching the cap is nearly always building names from data.

**Fix, for your coding agent:** Find the code that builds event names from data — a page path, an id or a value inside the name. Use one fixed event name and send the varying part as a property instead, for example `page_viewed` with `path`. Ask the person to merge or remove the generated names in the dashboard’s Event registry. Then call `verify_tracking` again.

## `property_name_cap_reached`

**Error** — production drops or loses the data. The project has 1,000 property names.

The project already has 1,000 event property names, or 1,000 person property names, so a new one is not recorded. Its values are stored but cannot be filtered or broken down by name. A project reaching the cap is nearly always building property names from data.

**Fix, for your coding agent:** Find the code that builds property names from data — an id, a date or a value inside the key, or a whole object spread into the properties. Use fixed property names and send the varying part as a value, for example `plan` with the plan as its value. Ask the person to merge or remove the generated names in the dashboard’s Event registry. Then call `verify_tracking` again.

## `property_pii_dropped`

**Error** — production drops or loses the data. Dropped: contains an email address.

This project has the email filter on, and the property named in the diagnostic has an email address in its key or value. Production drops that property and keeps the rest of the event.

**Fix, for your coding agent:** Find the `track()` call for the event named in `event` and remove the property named in `property`. An email address belongs on the person, set with the typed `email` parameter of `setPersonProperties()`, never on an event. If you need to know whether one was given, send a boolean instead. Then call `verify_tracking` again.

## `property_contains_email`

**Warning** — production keeps the data as sent. Contains an email address.

The property named in the diagnostic has an email address in its key or value. The email filter is off for this project, so it is stored on the event row. Event properties are for booleans, counts, categories and lengths — never personal data.

**Fix, for your coding agent:** Find the `track()` call for the event named in `event` and remove the property named in `property`. An email address belongs on the person, set with the typed `email` parameter of `setPersonProperties()`, never on an event. If you need to know whether one was given, send a boolean instead. Then call `verify_tracking` again.

## `session_id_contains_email`

**Warning** — production keeps the data as sent. The session id is an email address.

The session id sent with this test event contains an email address. A session id is stored on every event of the session, so the address would be stored in every one of them.

**Fix, for your coding agent:** Find where the code sets `sessionId`. A server event should pass only the browser’s `getSessionId()`, a random value that never holds the signed-in person’s email address. A browser app should remove `sessionId` from `init()` and let the SDK manage sessions. Then call `verify_tracking` again.

## `user_id_contains_email`

**Warning** — production keeps the data as sent. The userId is an email address.

The `userId` sent with the event contains an email address. A `userId` is stored on every event the person sends, so the address is stored in every one of them.

**Fix, for your coding agent:** Find where the code calls `identify()` or passes `userId`, and pass the app’s own stable account id — the database primary key — instead of the email address. Set the email address on the person with `setPersonProperties()` if the person wants it in Togo. Then call `verify_tracking` again.

## `identify_user_id_conflict`

**Error** — production drops or loses the data. identify() would be refused.

This device’s person already belongs to a different `userId`, so the call is refused rather than merging two people. Production keeps the events but does not link this `userId`.

**Fix, for your coding agent:** Two different users signed in on the same device without a sign-out between them. Find the app’s sign-out code and call the SDK’s `reset()` there, so the next sign-in starts a new person. Then sign out, sign in as a different user and call `verify_tracking` with `expectIdentify` again.

## `person_property_not_defined`

**Error** — production drops or loses the data. Dropped: the profile property has no definition.

This project keeps only defined events and properties (strict governance), and a profile property sent with `setPersonProperties()` has no definition. Production drops it and keeps the others; without strict governance it would be kept as sent.

**Fix, for your coding agent:** Define the person property with `update_property_definitions` (scope `person`), giving its type and meaning: by the key in `expected` when there is one (`plan_type` for `planType`), otherwise by the name in `property`. Keep the code’s spelling. Values sent before it was defined are not recovered. If it was a typo for an existing person property, `list_properties` with scope `person` shows the defined names; fix the key in the code. Then call `verify_tracking` again.

## `person_property_name_invalid`

**Error** — production drops or loses the data. Dropped: a profile property name Togo cannot hold.

The profile property name in the diagnostic is longer than 255 characters, contains a control character or contains an email address — a value used as a name. Such a name can never be defined, so production drops the property and keeps the others.

**Fix, for your coding agent:** Find the `setPersonProperties()` call that sends the property named in `property` and give it a short, fixed name of at most 255 characters — never a value, an id or an email address. An email address belongs in the typed `email` field. Then define the property with `update_property_definitions`. Then call `verify_tracking` again.

## `person_property_value_invalid`

**Error** — production drops or loses the data. Dropped: the profile value does not fit its definition.

A profile property was sent with a value its definition refuses — the wrong type, a value outside its allowed list, or one that is too long. Production drops it and keeps the others.

**Fix, for your coding agent:** Find the `setPersonProperties()` call that sends the person property named in `property`, and send a value that fits its definition: `list_properties` with scope `person` shows its type and allowed values. Do not change the definition to fit the code unless the person confirms the definition is wrong. Then call `verify_tracking` again.

## `person_property_set_once_null`

**Error** — production drops or loses the data. Dropped: setOnce with no value.

A profile property was sent with `setOnce` and no value. There is nothing to set, so production drops it.

**Fix, for your coding agent:** Find the `setPersonProperties()` call that sends the person property named in `property` with `setOnce`. Only call it when there is a value — check for `null` or `undefined` first — or use `unset` if the intent was to clear the property. Then call `verify_tracking` again.

## `person_property_reserved`

**Error** — production drops or loses the data. Dropped: the profile property name is reserved.

A profile property was sent with a name Togo reserves: a plain `email` or `name`, or a name starting with `$`. Production drops it and keeps the others. The person’s email and name are `$email` and `$name`, which only the typed parameters write.

**Fix, for your coding agent:** Find the `setPersonProperties()` call that sends the key named in `property`. For an email address or a display name, pass it as the typed `email` or `name` parameter of `setPersonProperties()`, beside `set`, never as a key in `set` or `setOnce`. For any other `$` key, rename it in lowercase snake_case without the `$` and define it with `update_property_definitions`. Then call `verify_tracking` again.

## `event_id_reused`

**Error** — production drops or loses the data. Two different events share an eventId.

Two events with different contents arrived with the same `eventId`. Togo keeps one event per `eventId` — a retry is meant to reuse it — so production keeps only one of them.

**Fix, for your coding agent:** Find the code that sets `eventId` for the event named in `event`. Leave `eventId` to the SDK, or generate a new random id for every distinct event and reuse it only when retrying the same event. Never derive it from a name, a timestamp or a counter that can repeat. Then call `verify_tracking` again.

## `clock_skew_too_large`

**Warning** — production keeps the data as sent. The sending clock is more than an hour off.

The time the client said it sent the batch is more than an hour away from when Togo received it. Togo corrects for it, so the event is kept at the right time, but from a server or your own client it usually means timestamps are being set wrongly.

**Fix, for your coding agent:** Find the code that sends the event named in `event`. If it calls Togo over HTTP directly, switch to the Togo SDK for that runtime, which sets both timestamps itself. If it uses an SDK, check it does not pass a timestamp of its own, and that the server’s clock is synchronised. Then call `verify_tracking` again.

## `live_key_from_localhost`

**Warning** — production keeps the data as sent. A local build is sending with the live key.

The event was sent with the live write key from a page on `localhost` or a local address. It is counted as production traffic, so development clicks appear in the real numbers.

**Fix, for your coding agent:** Use the write-key pair’s test key, starting `togo_pkt_`, in development and the live key, starting `togo_pkl_`, only in the production build. Read the key from the build’s environment rather than hard-coding it, and check which value the local environment file sets. Then call `verify_tracking` again.

## `experiment_entered_recorded`

**Info** — nothing is wrong; this says what it means. The SDK recorded an experiment entry.

The SDK sent this event to record that the code branching on the experiment named in the diagnostic ran. In production it fires once per unit; under a test key, once per experiment and variant per page load.

**Fix, for your coding agent:** Nothing to change. The SDK sends `$experiment_entered` itself, so do not define this event and do not send it from the code. A test run shows more of these than production will, because a test key records one per experiment and variant per page load. After any other change, call `verify_tracking` again.

## `experiment_event_stamped`

**Info** — nothing is wrong; this says what it means. This event counts toward a variant.

The event carries the experiment named in the diagnostic and the variant in `expected`, so reports count it toward that variant.

**Fix, for your coding agent:** Nothing to change. The SDK stamped this event with the variant in `expected` for the experiment named in `experiment`, and reports count it toward that variant. Do not send the variant as a property of your own. If it is not the variant you forced, read the assignment rows, then call `verify_tracking` again.

## `experiment_draft`

**Info** — nothing is wrong; this says what it means. The experiment is still a draft.

The experiment named in the diagnostic is a draft, so only test keys can see it. Production callers get `not_found` and take their default path until it is started.

**Fix, for your coding agent:** Nothing is wrong with this call. Test each variant with `set_experiment_test_variant` until the branches work. Then ask the person to confirm and call `start_experiment`, or tell them it has not been started: until then production callers get `not_found` and take the default path. After changing the code, call `verify_tracking` again.

## `experiment_variant_forced`

**Info** — nothing is wrong; this says what it means. The variant was forced for testing.

The variant of the experiment named in the diagnostic came from `set_experiment_test_variant`, not from the hash. It applies to every test key in the project and never to a live key.

**Fix, for your coding agent:** Nothing to change if you forced this variant to test a branch. To see what the hash would give instead, call `set_experiment_test_variant` with `variant` null; a forced variant applies to every test key in the project, so clear it when you finish testing. After changing the code, call `verify_tracking` again.

## `experiment_not_participating`

**Info** — nothing is wrong; this says what it means. Outside the participation rate.

This unit is outside the participation rate of the experiment named in the diagnostic, so it was served the baseline variant and no entered event is expected.

**Fix, for your coding agent:** Nothing to change: the baseline variant was served and no `$experiment_entered` event is expected for this unit, so do not add one. To test a branch under this key, force it with `set_experiment_test_variant`; `get_experiment_assignment` shows what any id would get. After changing the code, call `verify_tracking` again.

## `experiment_finished`

**Info** — nothing is wrong; this says what it means. The experiment has finished.

The experiment named in the diagnostic has finished, so everyone is served its winner and no entered event is expected.

**Fix, for your coding agent:** Nothing to change: the winner is served to everyone and no `$experiment_entered` event is expected, so do not add one. The code branch can stay until it is convenient to remove it. To test something new, create a new experiment with a new name. After changing the code, call `verify_tracking` again.

## `experiment_not_found`

**Warning** — production keeps the data as sent. No experiment by this name.

No experiment this key can see has the name in the diagnostic. The call got `not_found` and its default path ran. Usually a typo, or an experiment that was never created.

**Fix, for your coding agent:** Compare the name in `experiment` with `list_experiments`. If it is a typo, fix the string passed to `getExperiment()` so it matches exactly. If the experiment was never created, call `create_experiment` with that name and a unit. Do not rename a started experiment to match the code; names are frozen at start. Then call `verify_tracking` again.

## `experiment_unit_missing`

**Warning** — production keeps the data as sent. The unit id was missing at the call.

The experiment named in the diagnostic hashes an id this call did not carry, such as `user_id` before `identify()`. Production serves such a call the baseline variant and does not count it.

**Fix, for your coding agent:** Move the `getExperiment()` call for the experiment named in `experiment` to a point where its unit exists, such as after `identify()` for a `user_id` unit. For a draft, you can instead change the unit with `update_experiment`: `anonymous_id` before sign-in, `user_id` where a `userId` is expected. A started experiment cannot change its unit. Then call `verify_tracking` again.

## HTTP errors

These refuse the whole request rather than one event, so they come back as the response status, not as a diagnostic.

| Status | `error`               | Means                                                         | Retry?                                                                 |
| ------ | --------------------- | ------------------------------------------------------------- | ---------------------------------------------------------------------- |
| `400`  | `invalid_json`        | The body is not JSON                                          | No — fix the client                                                    |
| `400`  | `invalid_batch`       | The batch does not have the expected shape; `issues` says how | No — fix the client                                                    |
| `401`  | `missing_write_key`   | No write key was sent                                         | No                                                                     |
| `401`  | `invalid_write_key`   | The key is not one of Togo's, or it was revoked               | No — see [The write key was rejected](/docs/troubleshooting/write-key) |
| `413`  | `batch_too_large`     | The request is over 5 MiB                                     | No — send smaller batches                                              |
| `429`  | `rate_limited`        | The project sent too much too fast                            | Yes, after `Retry-After`                                               |
| `503`  | `enqueue_failed`      | Togo could not accept the batch right now                     | Yes, with the same event ids                                           |
| `503`  | `inspect_unavailable` | A test-key batch could not reach the test views               | Yes, with the same event ids                                           |

The SDKs retry `429` and `5xx` responses for you, keeping each event's id so a retried event is recognised as the same event, and never retry a `4xx` that would fail the same way again. A `503` never means the events were kept: retry them.
