Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Browserbase.__init__() got an unexpected keyword argument 'project_id' #857

Open
Kilowhisky opened this issue Dec 31, 2024 · 1 comment
Open

Comments

@Kilowhisky
Copy link

Describe the bug
Looks like ScrapeGraphAI's implementation of the BrowserBase SDK does not match its current SDK API.

See how its currently implemented:

browserbase = Browserbase(api_key=api_key, project_id=project_id)

See how it should be implemented: https://github.com/browserbase/sdk-python/tree/v1.0.5

bb = Browserbase(
    # This is the default and can be omitted
    api_key=BROWSERBASE_API_KEY,
)

session = client.sessions.create(
    project_id=BROWSERBASE_PROJECT_ID,
)

Passing project_id like it is leads to error in title.

@Kilowhisky
Copy link
Author

I locked the version at 0.3.0 which i found searching the repo.
Guess it still doesn't work right.

[ERROR] Error: BrowserType.connect_over_cdp: WebSocket error: wss://connect.browserbase.com/ 429 - Too Many Requests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant