Error creating Webdriver with Profile (user-data): "Could not read in devtools port number"

392 views
Skip to first unread message

daniele....@gmail.com

unread,
Nov 28, 2019, 7:32:51 PM11/28/19
to ChromeDriver Users

If I set a profile for the Chrome Webdriver:
        ChromeOptions options = new ChromeOptions();
        String chromeProfileFolder = "...my profile";
        options.addArguments("user-data-dir="+chromeProfileFolder);

I get this error:
Starting ChromeDriver 2.46.628402 (536cd7adbad73a3783fdc2cab92ab2ba7ec361e1) on port 25469
Only local connections are allowed.
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
Exception in thread "main" org.openqa.selenium.WebDriverException: unknown error: Could not read in devtools port number
  (Driver info: chromedriver=2.46.628402 (536cd7adbad73a3783fdc2cab92ab2ba7ec361e1),platform=Windows NT 6.3.9600 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 60.21 seconds
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:48'
System info: host: 'K55V', ip: '192.168.56.1', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_25'
Driver info: driver.version: ChromeDriver


In the error log there is writte my OS (Win8), my Selenium lib used (3.141), and the ChromeDriver (2.46).

Anyone had the same error?
thanks
Daniele


T Crichton

unread,
Dec 2, 2019, 11:37:14 AM12/2/19
to ChromeDriver Users
Hi Daniele,
Your Chrome and ChroeDriver versions are quite out of date. Please upgrade to the latest version and retry: https://chromedriver.chromium.org/downloads

The error you see indicates a failure in the Chrome startup.

-Tricia
Reply all
Reply to author
Forward
0 new messages