You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 21, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 21, 2026. It is now read-only.
BUG: Health check always reports API status for DB — /hc_api called twice in api_helper #135
The health_check() method in src/bot/core/api_helper.py calls /hc_api twice. The second call should hit /hc_db to check the database.
Location
src/bot/core/api_helper.py lines 29–32:
async with session.get(f"{self.api}/hc_api") as response:
results["api_status"] = await response.json()
async with session.get(f"{self.api}/hc_api") as response: # <-- should be /hc_db
results["db_status"] = await response.json()
The /hc_db route exists in src/api/routes/healthchecks.py (line 24) but is never called.
Fix
async with session.get(f"{self.api}/hc_db") as response:
results["db_status"] = await response.json()
Impact
The >hc command always shows the API status in both fields. A DB outage would go undetected by the healthcheck.
Activity