SupabaseS
Supabase3mo ago
John

Supabase Local With Supabase-py & Secret Key Not Working (Expected 3 parts in JWT; got 1)

I'm using supabase-py version 2.20.0 and trying to create a client with:

url: str = os.environ.get("SUPABASE_URL")
key: str = os.environ.get("SUPABASE_SECRET_KEY")

print(url, key) # This prints the values as expected.

supabase: Client = create_client(url, key)

response = (
   supabase.table("user_profile")
   .select("*")
   .execute()
)


SUPABASE_URL is the API URL from supabase status and SUPABASE_SECRET_KEY is the Secret key from supabase status.

When running any kind of query, I'm getting I'm error of Expected 3 parts in JWT; got 1.

I found this issue that looks related but it looks like it was fixed https://github.com/supabase/supabase-py/issues/1183.
Was this page helpful?