From f203f376e9aad3480b825182bb0b241609c5ac17 Mon Sep 17 00:00:00 2001 From: kcar Date: Tue, 2 Jun 2026 21:37:10 +0000 Subject: [PATCH] fix(supabase): remove duplicate apikey header in _create_base_client supabase-py injects apikey internally via create_client(url, key). Manually setting headers['apikey'] caused PostgREST to log "Duplicate API key found / JSON could not be generated" on every bootstrap request. Co-Authored-By: Claude Sonnet 4.6 --- modules/database/supabase/utils/client.py | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/database/supabase/utils/client.py b/modules/database/supabase/utils/client.py index 2dcd6b2..f548ce8 100644 --- a/modules/database/supabase/utils/client.py +++ b/modules/database/supabase/utils/client.py @@ -25,7 +25,6 @@ def _create_base_client(url: str, key: str, access_token: Optional[str] = None, auth_header = f"Bearer {access_token}" if access_token else f"Bearer {key}" headers = { - "apikey": key, "Authorization": auth_header, } if options: