I've been faced SupabaseException: supabase_url is required. Here are codes
import os
from supabase import create_client, Client
url: str = os.environ.get('https://mine.supabase.co')
key: str = os.environ.get("xxxxminexxx")
supabase: Client = create_client(url, key)
SupabaseException: supabase_url is required.
supabase version : 1.0.4 python : 3.10.9
i don't know how to deal with this problem. Plz help.
- make account supabase https://supabase.com/
- pip install supabase
- Run code
- Error
os.environworks. It expects akey: valuepair, so whatever your variable your URL is defined as, you get that and not the actual value itself. i.e. if os.environ hasURL=http://....", you do aos.environ.get("URL")