当前位置:网站首页>成功解决:selenium.common.exceptions.TimeoutException: Message: timeout: Timed out receiving message from
成功解决:selenium.common.exceptions.TimeoutException: Message: timeout: Timed out receiving message from
2022-06-25 04:01:00 【小袁ITSuper】
成功解决:selenium.common.exceptions.TimeoutException: Message: timeout: Timed out receiving message from renderer: 294.905
(Session info: headless chrome=102.0.5005.115)
报错问题
报错问题:最近跑自动化爬虫时遇到的问题
File "D:\Python3.8\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 247, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message: timeout: Timed out receiving message from renderer: 294.905
(Session info: headless chrome=102.0.5005.115)
Stacktrace:
Backtrace:
Ordinal0 [0x00762733+2434867]
Ordinal0 [0x006F07A1+1968033]
Ordinal0 [0x005DC678+837240]
Ordinal0 [0x005CD740+776000]
Ordinal0 [0x005CC565+771429]
Ordinal0 [0x005CCB68+772968]
Ordinal0 [0x005D780F+817167]
Ordinal0 [0x005E251B+861467]
Ordinal0 [0x005E4F30+872240]
Ordinal0 [0x005CCE36+773686]
Ordinal0 [0x005E2365+861029]
Ordinal0 [0x00634BDD+1199069]
Ordinal0 [0x00624256+1131094]
Ordinal0 [0x005FE840+976960]
Ordinal0 [0x005FF736+980790]
GetHandleVerifier [0x009D3C72+2515426]
GetHandleVerifier [0x009C702F+2463135]
GetHandleVerifier [0x0080522A+620442]
GetHandleVerifier [0x00804016+615814]
Ordinal0 [0x006F707B+1994875]
Ordinal0 [0x006FB938+2013496]
Ordinal0 [0x006FBA25+2013733]
Ordinal0 [0x00704DE1+2051553]
BaseThreadInitThunk [0x75B2FA29+25]
RtlGetAppContainerNamedObjectPath [0x772A7A9E+286]
RtlGetAppContainerNamedObjectPath [0x772A7A6E+238]

报错原因
根本原因是加载内容过多,导致的超时。
解决方法
1、临时解决方法:chrome_options.add_argument('--headless')(该‘浏览器不提供可视化页面’设置去掉)
2、添加不加载图片设置,提升速度:chrome_options.add_argument('blink-settings=imagesEnabled=false')
边栏推荐
猜你喜欢

leetcode1221. 分割平衡字符串

UCLA | generative pre training for black box optimization

Value transfer between parent and child components of wechat applet

CTF_ Web: Advanced questions of attack and defense world expert zone WP (19-21)

记录小知识点

Unit test coverage

领导:谁再用 Redis 过期监听实现关闭订单,立马滚蛋!

重磅直播 | 相移法+多频外差之数学原理推导+实现

A detailed summary of four handshakes (or four waves) over TCP connections

单元测试覆盖率
随机推荐
The yii2 debug toolbar is missing
华为鸿蒙开发第四课
如何筛选出和产品相关的词,精准排除掉无效词
Classification of gbase 8s locks
Detailed explanation of flex attributes in flex layout
Unit test coverage
【无标题】
哪个编程语言实现hello world最烦琐?
GBASE 8s 总体架构
CMD operation MySQL in Windows
GBASE 8s 索引R树
STM32的DMA双缓冲模式详解
Simple text analysis of malicious samples - Introduction
Thorough understanding of database transactions
i. Max development board learning record
重磅直播 | 相移法+多频外差之数学原理推导+实现
Multithreading structure of gbase 8s
Xiaobai learns MySQL - Statistical 'opportunism'
CTF_ Web:8-bit controllable character getshell
GBASE 8s的数据视图