Skip to Content
ServicesDeadLetter

Read a dead letter

GET
/apis/funcd.io/v1alpha1/namespaces/{namespace}/deadletters/{id}

Authorization

headerAuthorizationBearer <token>

A credential of funcd's config, sent as Authorization: Bearer followed by its token.

Path Parameters

namespace*string

The dead letter's namespace.

Match^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$
Length1 <= length <= 63
id*string

The dead letter's ID.

Response Body

OK

application/json
  1. response
action*string

The name of the Sensor's action that failed.

attempts*integer

The delivery attempts made before funcd parked the action: 0 when it parked the action before any attempt, such as when the Sensor's queue was full, and after a replay that failed.

Formatint64
event*string

The name of the event, as the Sensor's dependency names it.

Match^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$
Length1 <= length <= 63
failedAt*string

When funcd parked the action, or when its last replay failed.

Match^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3}Z$
Formatdate-time
id*string

The dead letter's ID, a ULID that funcd mints when it parks the action.

namespace*string

The namespace of the Sensor.

Match^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$
Length1 <= length <= 63
payload*unknown

The CloudEvent that fired the action, as JSON, not the input that the action builds from it. A replay runs the Sensor's current action on it again.

reason*string

Why the last attempt failed, or why funcd parked the action before its attempts ran out.

sensor*string

The Sensor whose action failed.

Match^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$
Length1 <= length <= 63
source*string

The EventSource of the event, as the Sensor's dependency names it.

Match^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$
Length1 <= length <= 63
Example Request
curl -X GET 'https://example.com/apis/funcd.io/v1alpha1/namespaces/string/deadletters/string'
Example Response
{  "action": "string",  "attempts": 0,  "event": "string",  "failedAt": "2019-08-24T14:15:22Z",  "id": "string",  "namespace": "string",  "payload": null,  "reason": "string",  "sensor": "string",  "source": "string"}

Answers

StatusProblem typeWhenWhat to do
200OK
401urn:funcd:problem:unauthorizedThe request carries no bearer token or API key, or one that funcd does not know.Send a credential of funcd's config as a bearer token in the Authorization header, or in X-Api-Key.
403urn:funcd:problem:forbiddenThe credential's role or namespaces do not allow it to read Sensors in the namespace.Use a credential whose role allows it, such as a developer of the namespace or an admin.
404urn:funcd:problem:not-foundNo dead letter of that ID exists in the namespace.Check the ID: funcdctl eventing dlq list lists the namespace's dead letters.
422about:blankThe namespace in the path is not a DNS-1123 label.Use at most 63 lowercase letters, digits and hyphens, starting and ending with a letter or a digit.