Skip to content
Agentpost robot in sunglasses on a red circleAgentpost

EventWolf errors

Every error code EventWolf answers with has an entry here, with its HTTP status in bold, what it means, and what to do. Act on the error’s error.code. The body’s error.docs links straight to the entry, such as https://agentpost.tools/docs/eventwolf/errors#not_found, and API basics describes the body.

A request Agentpost refuses before it reaches EventWolf, such as one with no credential, answers with a code from the Platform errors instead.

Error codes

invalid_request

400. The request is malformed: its body isn’t JSON, a field or query parameter breaks its schema, a path parameter is the wrong kind, such as a sequence that isn’t a number, or a batch holds more than 100 events. details.issues lists each problem with its path, when there is one.

What to do: Fix each issue in details.issues and send the request again. For erasure, paths.N names the refused entry: use data paths, subject, or producer extensions, never event identity, times, or storage fields. The whole erasure request fails before any field changes. The operation’s entry in the API reference has its fields.

invalid_filter

400. The filter in the query string is invalid: a type or source pattern, an extension name, a data path, or a list breaks the filter language, such as a * in the middle of a type. A filter in a request body that breaks it answers invalid_request.

What to do: Fix the filter as details.issues says. A type is dot-separated segments with an optional trailing .*; a source is exact or ends with one *.

query_timeout

408. The read took longer than EventWolf allows.

What to do: Narrow it: add types or sources to the filter, or a shorter from and to range, then read again.

payload_too_large

413. The request body is over 1 MB.

What to do: Send less in each request, such as a batch split in two.

idempotency_mismatch

409. This Idempotency-Key was used within the last 24 hours for a different request, or what your credential may do has changed since the key’s first request. A repeat with a credential that may no longer make the request answers that error instead.

What to do: Use a new key for a new request. Reuse a key only to retry the exact same request.

stale_version

409. Someone changed the record after you read it: the If-Match version you sent isn’t the current one, or another write got in first.

What to do: Read the record again, apply your change to what it holds now, and write it with the new version.

conflict

409. The record isn’t in a state that allows this: a delivery that succeeded can’t be retried, one that isn’t pending can’t be canceled, a disabled endpoint can’t be tested, recovered, or replayed to, a deleted subscription can’t change, and an endpoint or topic that subscriptions still target can’t be deleted. It also answers a request whose Idempotency-Key is still in progress, or a delivery with an attempt in progress. details holds the state, such as status.

What to do: Read the message and details, change the state it names, such as enabling the endpoint or retargeting the subscriptions, then try again. For a request or an attempt in progress, wait a moment and try again.

unauthenticated

401. The request has no credential EventWolf accepts, or its credential expired or was revoked. A live inbox stream ends with it when the user token it opened with expires.

What to do: Send a valid credential in Authorization: Bearer …: your project’s secret key, or a signed-in principal’s user token for their inbox.

forbidden

403. Your credential may not make this call. The message gives the reason. A rejected publish also answers it when your credential may not publish from the event’s source. A live stream ends with it when access is withdrawn, such as a revoked key or an ended session.

What to do: Use a credential that may make the call. Who may call lists what each credential reaches.

not_found

404. The record doesn’t exist in this project, or you may not see it. A path that matches no route answers it too.

What to do: Check the ID or key, and that it belongs to this project and environment. List the records to find the right one.

invalid_envelope

422. The event breaks the CloudEvents envelope: specversion isn’t "1.0", source or type is missing or malformed, an extension name isn’t lowercase letters and digits, an extension’s value isn’t a string, number, or boolean, or refs, actor, or onbehalfof isn’t written as type:id. A rejected publish is recorded as an ingestion failure.

What to do: Fix the event as details.issues says and publish it again with the same id. Rejected publishes are listed by GET /ingest-failures. An import answers with this code in its per-entry result for a broken envelope, missing original ID, invalid receipt timestamp, or internal record fields. Fix that entry and import it again; import rejections create no ingestion failure or operational event.

unknown_type

422. The event’s type isn’t registered, and the project’s config rejects unknown types (ingest.unknownTypes: "reject"). The event was rejected and recorded as an ingestion failure.

What to do: Register the type with PUT /event-types/{type}, then publish the event again with the same id. Or fix a typo in its type.

invalid_data

422. The event’s data doesn’t match its type’s registered JSON Schema. details.issues lists each mismatch. The event was rejected and recorded as an ingestion failure.

What to do: Fix the producer so its data matches the schema, and publish the event again with the same id. If the schema is what’s wrong, register a new version and check it first with POST /event-types/{type}/validate.

data_too_large

413. The event’s data is larger than the config’s ingest.maxDataBytes allows. A rejected publish is recorded as an ingestion failure.

What to do: Keep large content elsewhere and put its ID or URL in data, or raise ingest.maxDataBytes, up to 1 MB. Imports answer with this code per entry without recording an ingestion failure.

config_invalid

422. The config breaks its schema, such as a timeout over "60s" or a length of time that isn’t a duration like "30s" or "7d". details.issues lists each problem.

What to do: Fix each issue and put the config again, with every setting.

push_unavailable

422. EventWolf sends no push through the provider you named, so a push address for it could never be reached. It sends through Expo for every project.

What to do: Register the address with provider set to expo.

internal_error

500. Something went wrong inside EventWolf. Nothing you sent caused it.

What to do: Retry with backoff. A write that sent an Idempotency-Key can be retried with the same key; a publish is safe to retry with the same source and id.