api health: bib reports "degraded" — invalid limit kwarg #131
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
GET /healthreturns{"name":"bib","status":"degraded","detail":"Store.list_items() got an unexpected keyword argument 'limit'"}._check_bib()inhealth.py:54callsstore.list_items(limit=1)butStore.list_items()only acceptstag,item_type,collection,query. The correct pattern (used inbib.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.