I have been using supabase in python without problem but today I got an error when I went to create my client. Code is below, all help would be great. Code
from supabase import create_client, Client
supabaseUrl = 'REDACTED'
supabaseKey = 'REDACTED'
supabase = create_client(supabaseUrl, supabaseKey)
path_data = supabase.table('otto').select('*').execute()
print(path_data)
My Error:
Traceback (most recent call last):
File "andrew_main.py", line 7, in <module>
supabase: Client = create_client(supabase_url=supabaseUrl, supabase_key=supabaseKey)
File "/home/garb/.local/lib/python3.8/site-packages/supabase/client.py", line 226, in create_client
return Client(supabase_url=supabase_url, supabase_key=supabase_key, **options)
File "/home/garb/.local/lib/python3.8/site-packages/supabase/client.py", line 70, in __init__
self.postgrest: PostgrestClient = self._init_postgrest_client(
File "/home/garb/.local/lib/python3.8/site-packages/supabase/client.py", line 185, in _init_postgrest_client
client = PostgrestClient(rest_url, headers=headers)
TypeError: __init__() got an unexpected keyword argument 'headers'
from Supabase-Py: TypeError: __init__() got an unexpected keyword argument 'headers' when making client
No comments:
Post a Comment