Skip to content

Chrome >= v136 no longer supports being driven over CDP while using the default --user-data-dir profileΒ #1520

@maghazouani

Description

@maghazouani

Bug Description

It fails to connect to a Chrome profile
but, It works properly with Chromium only
LLM Model : AzureOpenAI

ERROR :
INFO [agent] πŸ“ Step 1
ERROR [browser] ❌ Failed to start a new Chrome instance: BrowserType.connect_over_cdp: connect ECONNREFUSED ::1:9222
Call log:

ERROR [browser] Failed to initialize Playwright browser: To start chrome in Debug mode, you need to close all existing Chrome instances and try again otherwise we can not connect to the instance.
ERROR [browser] ❌ Failed to create new browser session: To start chrome in Debug mode, you need to close all existing Chrome instances and try again otherwise we can not connect to the instance. (did the browser process quit?)
WARNING [browser] ⚠️ Page load failed, continuing...

Reproduction Steps

One week ago the agent work as expected, I'm having issue with it since today :

  1. Launch code
  2. Run the following task : Visit google.com
  3. see error (above)

Code Sample

browser = Browser(
    config=BrowserConfig(
        chrome_instance_path='/Applications/Google Chrome.app/Contents/MacOS/Google Chrome',
        new_context_config=context_cfg,
        headless=False       # run in headful mode for debugging
    )
)

Version

Version: 0.1.41rc2

LLM Model

Other (specify in description)

Operating System

macOS 13.1

Relevant Log Output

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