You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Oddly, while my python client uses the service_role API key, I needed to alter the statement_timeout for the authenticated role (note: not the authenticator role). Is that expected?
Note also that after 360s the request will error with the message: The upstream server is timing out.
Describe the bug
A clear and concise description of what the bug is.
I'm trying to set a timeout on the client (since i've been getting httpx read timeout errors).
This is as displayed on the website: https://supabase.com/docs/reference/python/initializing
To Reproduce
Steps to reproduce the behavior:
Put this code into a python file, and attempt to execute with current public pip3 install of supabase.
Expected behavior
I expected it to be a valid client instance and start to use it for my python script. Instead, I get this error:
Traceback (most recent call last):
File "/Users/XXXXX/Desktop/XXXXXX/XXXXXX/deployableApprovals.py", line 27, in
supabaseClient: Client = create_client(SUPABASEURL, SUPABASEKEY, {'timeout': 10})
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/supabase/client.py", line 248, in create_client
return Client(supabase_url=supabase_url, supabase_key=supabase_key, options=options)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/supabase/client.py", line 61, in init
options.headers.update(self._get_auth_headers())
AttributeError: 'dict' object has no attribute 'headers'
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: