mirror of
https://github.com/taylanbakircioglu/haproxy-openmanager.git
synced 2026-09-23 02:53:26 +00:00
84916db872
Problem: metadata still null, datetime conversion issue Root cause: asyncpg returns datetime objects that don't serialize properly with isoformat() Solution: Test each field with json.dumps(), convert non-serializable to str() Approach: - Try json.dumps() for each value - If serializable: use as-is (int, str, bool, list, dict) - If not serializable: convert to str() - datetime: use str() (simpler, safer) - No timezone manipulation (pod is UTC, keep it simple) This ensures: - All fields are JSON-safe - No exceptions during metadata creation - metadata will be populated (not null) - Rollback will work