Read a dead letter
AuthorizationBearer <token>A credential of funcd's config, sent as Authorization: Bearer followed by its token.
namespace*stringThe dead letter's namespace.
^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$1 <= length <= 63id*stringThe dead letter's ID.
OK
application/json- response
action*stringThe name of the Sensor's action that failed.
attempts*integerThe 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.
int64event*stringThe name of the event, as the Sensor's dependency names it.
^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$1 <= length <= 63failedAt*stringWhen funcd parked the action, or when its last replay failed.
^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3}Z$date-timeid*stringThe dead letter's ID, a ULID that funcd mints when it parks the action.
namespace*stringThe namespace of the Sensor.
^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$1 <= length <= 63payload*unknownThe 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*stringWhy the last attempt failed, or why funcd parked the action before its attempts ran out.
sensor*stringThe Sensor whose action failed.
^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$1 <= length <= 63source*stringThe EventSource of the event, as the Sensor's dependency names it.
^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$1 <= length <= 63curl -X GET 'https://example.com/apis/funcd.io/v1alpha1/namespaces/string/deadletters/string'{ "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
| Status | Problem type | When | What to do |
|---|---|---|---|
| 200 | OK | ||
| 401 | urn:funcd:problem:unauthorized | The 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. |
| 403 | urn:funcd:problem:forbidden | The 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. |
| 404 | urn:funcd:problem:not-found | No dead letter of that ID exists in the namespace. | Check the ID: funcdctl eventing dlq list lists the namespace's dead letters. |
| 422 | about:blank | The 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. |