How to Fix 'Failed to read descriptor from node connection' Error in ChromeDriver and Chrome v87?

Patricia Arquette
Release: 2024-11-08 21:56:02
Original
974 people have browsed it

How to Fix

Failed to Read Descriptor from Node Connection Error in ChromeDriver and Chrome v87

Problem:

Users have encountered an error during Chrome v87 and ChromeDriver v87.0.4280.20 upgradations, particularly the "Failed to read descriptor from node connection: A device attached to the system is not functioning" error in Windows 10.

Cause:

While the root cause of this error remains unclear, it seems specific to the latest ChromeDriver versions.

Solution:

To address this issue, a quick fix is available through an experimental option:

options.add_experimental_option('excludeSwitches', ['enable-logging'])
Copy after login

Updated Code:

from selenium import webdriver

options = webdriver.ChromeOptions() 
options.add_argument("start-maximized")
# Suppress error messages/logs
options.add_experimental_option('excludeSwitches', ['enable-logging'])
driver = webdriver.Chrome(options=options, executable_path=r'C:\WebDrivers\chromedriver.exe')
driver.get('https://www.google.com/')
Copy after login

By suppressing the error messages with the excludeSwitches option, the error log can be hidden without affecting the browser functionality.

The above is the detailed content of How to Fix 'Failed to read descriptor from node connection' Error in ChromeDriver and Chrome v87?. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!