Skip to content

Bug: TypeError for Unexpected Keyword Argument 'proxy' in gotrue 2.9.1 with supabase-py 2.8.1 #949

Closed
@sivasai9849

Description

@sivasai9849

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

I'm encountering a TypeError while using supabase-py 2.8.1 in combination with gotrue 2.9.1. The error message is as follows:

TypeError: Client.__init__() got an unexpected keyword argument 'proxy'

This occurs when trying to create a Supabase client using the create_client method. It seems to be related to a change introduced in gotrue 2.9.1.

To Reproduce

Steps to reproduce the behavior:

  1. Install the following package versions:
    pip install gotrue==2.9.1
    pip install supabase==2.8.1
  2. Attempt to create a Supabase client with the following code:
    from supabase import create_client, Client
    
    url = SUPABASE_URL
    key = SUPABASE_SECRET
    supabase: Client = create_client(url, key)
  3. The error TypeError: Client.__init__() got an unexpected keyword argument 'proxy' is raised.

Expected behavior

The Supabase client should initialize successfully without raising a TypeError.

Screenshots

![Screenshot of the error]Screenshot 2024-10-01 at 10 11 24 AM

System information

  • OS: macOS
  • Version of supabase-py: 2.8.1
  • Version of gotrue: 2.9.1
  • Python version: 3.10

Additional context

The issue does not occur when downgrading to gotrue 2.8.1, so this appears to be a bug related to the latest release of gotrue 2.9.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions