Skip to content

Message: unknown error: cannot connect to chrome at 127.0.0.1:49960 #55

@sunilswain

Description

@sunilswain

Hi,

The tool is facing issues while establishing a connection with Chrome. Basically, the browser opens up but doesn’t do anything, and then the error message appears as shown in the following image:

Image

It used to work fine, but I think after the update to v136, the issue has become persistent. I suspect the problem is with the undetected_chromedriver. Based on my research, I believe that with the update to version 136, we can no longer use the Chrome Data directory to establish a connection with Chrome, as discussed in the following issue:
SeleniumHQ/selenium#15688 (comment)

I have even tried copying the User Data directory to another location outside of Chrome and restarting, but nothing helps. At this point, the only solution I’ve found is to use a different version of Chrome’s engine (<136). The only way I’ve found to downgrade my Chrome is by using winget, but it only allows me to install Canary with version 125. The rest are showing unknown errors.

Any help would be appreciated.
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions