GET /api/v1/errors
List Errors
Recent captured runtime errors, newest first.
Lets an operator answer “what just broke” without trawling the JSON log
stream — the durable counterpart to the structlog error_captured event.
Авторизация: нужен Authorization: Bearer <token>
curl -sS -X GET "https://entherium.duckdns.org:8443/api/v1/errors" \ -H "Authorization: Bearer <token>"Ответ 200
Заголовок раздела «Ответ 200»[ { "context": { "run_guid": 1842, "trace_id": "6f1c…" }, "createtime": "2026-09-03T02:31:12Z", "error": "chart render timed out after 60s", "exc_type": "ImageRenderError", "guid": 90412, "operation": "generate.step_13_images", "source": "batch" }]Возвращает
Заголовок раздела «Возвращает»массив ErrorEventRead — Successful Response
| Поле | Тип | Описание |
|---|---|---|
context | object | null (opt.) | |
createtime | string | |
error | string | |
exc_type | string | |
guid | integer | |
operation | string | |
source | string |
Параметры
Заголовок раздела «Параметры»| Параметр | Где | Обязателен | Тип | По умолчанию | Ограничения | Описание |
|---|---|---|---|---|---|---|
source | query | нет | string | null | — | — | filter by capture source |
operation | query | нет | string | null | — | — | filter by stable operation label |
since | query | нет | string | null | — | date-time | only errors captured at/after this UTC time |
limit | query | нет | integer | 100 | min 1; max 500 |
| Код | Смысл | Тело |
|---|---|---|
401 | Missing or invalid authentication credentials | ErrorResponse |
422 | Validation Error | HTTPValidationError |
Тело любой ошибки — {detail, code?, request_id, doc_url}: request_id — что цитировать, doc_url ведёт в Справочник ошибок.