api health: bib reports "degraded" — invalid limit kwarg #131

Closed
opened 2026-03-23 22:51:28 +00:00 by kert · 0 comments
Owner

Problem

GET /health returns {"name":"bib","status":"degraded","detail":"Store.list_items() got an unexpected keyword argument 'limit'"}.

_check_bib() in health.py:54 calls store.list_items(limit=1) but Store.list_items() only accepts tag, item_type, collection, query. The correct pattern (used in bib.py:38) is to slice the result: store.list_items()[:1].

Fix

Change store.list_items(limit=1) → store.list_items()[:1] in health check.

## Problem `GET /health` returns `{"name":"bib","status":"degraded","detail":"Store.list_items() got an unexpected keyword argument 'limit'"}`. `_check_bib()` in `health.py:54` calls `store.list_items(limit=1)` but `Store.list_items()` only accepts `tag`, `item_type`, `collection`, `query`. The correct pattern (used in `bib.py:38`) is to slice the result: `store.list_items()[:1]`. ## Fix Change `store.list_items(limit=1)` → `store.list_items()[:1]` in health check.
kert closed this issue 2026-03-23 22:53:24 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: homelab/stack#131