fix(supabase): remove duplicate apikey header in _create_base_client
Some checks failed
api-ci-deploy / test-build-deploy (push) Has been cancelled

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 <noreply@anthropic.com>
This commit is contained in:
kcar 2026-06-02 21:37:10 +00:00
parent 52f5ef4ca2
commit f203f376e9

View File

@ -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}" auth_header = f"Bearer {access_token}" if access_token else f"Bearer {key}"
headers = { headers = {
"apikey": key,
"Authorization": auth_header, "Authorization": auth_header,
} }
if options: if options: