Ugh, so frustrating. Your tutorials are amazing, but hacking your code to local config is brutal. I have supabase running on localhost:8000. All my learning with pydantic and langgraph works fine with just that url and the key. But changing your code to use that just doesn't cooperate:
# Supabase client setup
supabase_url = get_env_var("SUPABASE_URL")
supabase_key = get_env_var("SUPABASE_SERVICE_KEY")
supabase = create_client(get_env_var("SUPABASE_URL"), get_env_var("SUPABASE_SERVICE_KEY"))
if supabase:
try:
test_response = supabase.from_("site_pages").select("*").limit(1).execute()
except Exception as e:
print(f"Failed to initialize Supabase: {e}")
write_to_log(f"Failed to initialize Supabase: {e}")
return embedding_client, supabase
Error checking table status: [Errno 111] Connection refused
In db dashboard at localhost:3001 it returns no errors (as expected since no data imported). I also tried localhost:3001 since that is where the dashboard runs, no luck.
Ugh, so frustrating. Your tutorials are amazing, but hacking your code to local config is brutal. I have supabase running on localhost:8000. All my learning with pydantic and langgraph works fine with just that url and the key. But changing your code to use that just doesn't cooperate:
Error checking table status: [Errno 111] Connection refused
In db dashboard at localhost:3001 it returns no errors (as expected since no data imported). I also tried localhost:3001 since that is where the dashboard runs, no luck.