Перейти к содержимому

GET /api/v1/errors

Статус: GA Доступ: по токену контракт API: 0.3.0 · capability 2026-09-03.1 Открыть как Markdown Открыть в Claude Открыть в ChatGPT

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>"
[
{
"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

ПолеТипОписание
contextobject | null (opt.)
createtimestring
errorstring
exc_typestring
guidinteger
operationstring
sourcestring
ПараметрГдеОбязателенТипПо умолчаниюОграниченияОписание
sourcequeryнетstring | null——filter by capture source
operationqueryнетstring | null——filter by stable operation label
sincequeryнетstring | null—date-timeonly errors captured at/after this UTC time
limitqueryнетinteger100min 1; max 500
КодСмыслТело
401Missing or invalid authentication credentialsErrorResponse
422Validation ErrorHTTPValidationError

Тело любой ошибки — {detail, code?, request_id, doc_url}: request_id — что цитировать, doc_url ведёт в Справочник ошибок.