提问人:lolalola 提问时间:7/4/2018 更新时间:7/8/2021 访问量:1470
Chrome 网络驱动程序:将 http DELETE 发送到 /session/XXX 引发 curl 错误
Chrome web driver: Curl error thrown for http DELETE to /session/XXX
问:
我将 Chromedriver 与 Facebook PHP webdriver 一起使用。我经常遇到会话问题。
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')
答:
-1赞
Prince Kumar Barnwal
5/23/2019
#1
尝试使用新的最新版本的硒。
0赞
Udhav Sarvaiya
7/8/2021
#2
增加时间:
$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
);
评论
0赞
Andrew
3/3/2022
如果增加时间后仍然超时怎么办?真正的解决方案是什么?
评论