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 · 2 comments
Open
Labels
bug Something isn't working

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

@PeriniM
Copy link
Collaborator

PeriniM commented Jan 7, 2025

Hey can you try with the new version of the lib? v1.35

@PeriniM PeriniM added the bug Something isn't working label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants