gpt4 book ai didi

selenium - Chrome 网络驱动程序 : Curl error thrown for http DELETE to/session/XXX

转载 作者:行者123 更新时间:2023-12-05 08:08:13 27 4
gpt4 key购买 nike

我将 Chromedriver 与 Facebook PHP webdriver 一起使用。我经常遇到 session 问题。

Curl error thrown for http DELETE to /session/XXXX

如何解决这个问题?为什么会这样?

完整错误代码:

Operation timed out after 30001 milliseconds with 0 bytes received {"exception":"[object] (Facebook\\WebDriver\\Exception\\WebDriverCurlException(code: 0): Curl error thrown for http DELETE to /session/da095582d77523239753bb0e30adaa6d

Operation timed out after 30001 milliseconds with 0 bytes received at /var/www/html/vendor/facebook/webdriver/lib/Remote/HttpCommandExecutor.php:286)
[stacktrace]
#0 /var/www/html/vendor/facebook/webdriver/lib/Remote/RemoteWebDriver.php(535): Facebook\\WebDriver\\Remote\\HttpCommandExecutor->execute(Object(Facebook\\WebDriver\\Remote\\WebDriverCommand))
#1 /var/www/html/vendor/facebook/webdriver/lib/Remote/RemoteWebDriver.php(277): Facebook\\WebDriver\\Remote\\RemoteWebDriver->execute('quit')

最佳答案

增加时间:

$connection_timeout_in_ms = 6000;   // Timeout for the connect phase to remote Selenium WebDriver server in ms
$request_timeout_in_ms = 90000; // Set the maximum time of a request to remote Selenium WebDriver server in ms

$chromeDriver = RemoteWebDriver::create(
$url['url'],
$capabilities,
$connection_timeout_in_ms,
$request_timeout_in_ms
);

关于selenium - Chrome 网络驱动程序 : Curl error thrown for http DELETE to/session/XXX,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51167430/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com