fix(supabase): remove duplicate apikey header in _create_base_client
Some checks failed
api-ci-deploy / test-build-deploy (push) Has been cancelled
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:
parent
52f5ef4ca2
commit
f203f376e9
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user