mirror of
https://github.com/taylanbakircioglu/haproxy-openmanager.git
synced 2026-09-17 16:15:20 +00:00
5b59accd51
asyncpg cannot infer the PostgreSQL type for $20/$21 when the Python value is None in CASE WHEN $20 IS NOT NULL expressions. Add explicit ::text cast so asyncpg can prepare the statement regardless of whether the agent sends keepalive data or not. This was causing ALL heartbeats to fail with 500 error, making all agents appear offline. Co-authored-by: Cursor <cursoragent@cursor.com>