g1879 / DrissionPage

Python based web automation tool. Powerful and elegant.
https://DrissionPage.cn/
BSD 3-Clause "New" or "Revised" License
8.18k stars 776 forks source link

Error while parsing request of 'Browser.getVersion' #227

Open neypro opened 5 months ago

neypro commented 5 months ago

我使用 Chrome 124.0.6367.201。 我收到此错误,请帮助我

image

g1879 commented 4 months ago

没有遇到过,这个稳定出现吗?

StoneFancy commented 3 months ago

我也出现了这个问题,浏览器127 Traceback (most recent call last): File "D:\workspace\interpark-seventeen\test.py", line 3, in page = ChromiumPage() ^^^^^^^^^^^^^^ File "D:\ENV\Anaconda3\envs\interpark-dev\Lib\site-packages\DrissionPage_pages\chromium_page.py", line 64, in init self._run_browser() File "D:\ENV\Anaconda3\envs\interpark-dev\Lib\site-packages\DrissionPage_pages\chromium_page.py", line 74, in _run_browser r = self._browser.run_cdp('Browser.getVersion') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ENV\Anaconda3\envs\interpark-dev\Lib\site-packages\DrissionPage_base\browser.py", line 121, in run_cdp return r if ERROR not in r else raise_error(r, ignore) ^^^^^^^^^^^^^^^^^^^^^^ File "D:\ENV\Anaconda3\envs\interpark-dev\Lib\site-packages\DrissionPage_functions\tools.py", line 241, in raise_error raise r DrissionPage.errors.CDPError: 错误:Error while parsing request of 'Browser.getVersion' 方法:Browser.getVersion 参数:{'_timeout': 30} 版本:4.0.5.6 出现这个错误可能意味着程序有bug,请把错误信息和重现方法告知作者,谢谢。 报告网站:https://gitee.com/g1879/DrissionPage/issues 代码

from DrissionPage import ChromiumPage

page = ChromiumPage()
page.get('http://DrissionPage.cn')
StoneFancy commented 3 months ago

没有遇到过,这个稳定出现吗?

不是很稳定,之前没这个错误,突然出现的,浏览器版本和python版本也没换

我重启之后又能用了,离谱的一批