Closed
Description
My suit of tests crashes each time at the same step with an error like this :
Facebook\WebDriver\Exception\WebDriverCurlException: Curl error thrown for http POST to /session/27b6f2965e805dfbf342c5d7da3eec08/element/0.3235364760108057-3/click
Operation timed out after 30005 milliseconds with 0 bytes received
I've tried in headless, no headless, sandbox, no sandbox... Finally, if I start a php webserver php -S -t /web
and I put manually the uri in Client::createChromeClient
method, it works.
Metadata
Metadata
Assignees
Labels
No labels
Activity
robertfausk commentedon Dec 24, 2018
I had the same issue and could resolve it by removing listener from https://github.com/dmaicher/doctrine-test-bundle in phpunit.xml.dist:
I didn't investigate further because it is now working for me. Hope it helps.
azjezz commentedon Feb 6, 2019
having the same error while using panther.
metaer commentedon Mar 18, 2019
Look this
And this:
panther/src/ProcessManager/ChromeManager.php
Line 62 in 0aeafcf
And this
4-th argument in RemoteWebDriver::create is $request_timeout_in_ms
But there is no way to increase it without edit library code
My temporary solution is to replace
return RemoteWebDriver::create($url, $capabilities);
in \Symfony\Component\Panther\ProcessManager\ChromeManager::start
with
return RemoteWebDriver::create($url, $capabilities, null, 600000);
It works for me. Before this I could not use xdebug because of slow script execution.
smolpl commentedon Dec 19, 2019
Same issue for me.
Workaround with timeout options does not help.
My temporary solution is to call
self::stopWebServer();
in first failing test.shubaivanqbee commentedon Aug 13, 2021
Hi, maybe ritgh now it's not actual, but I resolved this problem like this
arderyp commentedon Apr 6, 2022
Unfortunately, I'm experiencing the same problem, and none of the suggestions above seem to work.
Php:
7.4.28
Panther:
v1.1.2
dbrekelmans/bdi:
1.0
ChromeDriver (via
bdi
):100.0.4896.60
Symfony:
4.4.37
caponica commentedon Dec 2, 2022
I have the same problem. Could somebody explain why it's trying to POST to
/session
in the first place?I'm using Panther to scrape a third party website, so it should not be trying to make any local calls at all, right?
Confusingly, everything works on my local windows dev machine, but is failing with this session POST timeout when I try to run it on the ubuntu production server.
After the script runs I also get an error at the end (from the destructor?) which looks something like this:
PHP Fatal error: Uncaught Facebook\WebDriver\Exception\WebDriverCurlException: Curl error thrown for http DELETE to /session/548e92ad-...
Is there any way to configure panther not to try making these session calls (which appear to be local) when using it to scrape a remote site?