V
V
Vladislav2020-08-27 08:35:19
linux
Vladislav, 2020-08-27 08:35:19

Curl error thrown for http POST to. Can't connect to the site?

To make it easier to understand the situation:
I have php 7.2
ubuntu linux server installed.
curl is enabled. chromedriver
is installed globally in usr/bin and launched by the following command Chrome is also installed via: I use the library: Facebook\WebDriver I run the php script on the server (which runs without errors on Windows on openserver. Everything is the same there (chromedriver is running)). And after a long wait, it produces the following:
chromedriver --url-base=/wd/hub --port=4444
apt install google-chrome-stable

PHP Fatal error:  Uncaught Facebook\WebDriver\Exception\WebDriverCurlException: Curl error thrown for http POST to /session/b4917a4836b5925d97d0ba62a2b8ac27/url with params: {"url":"ссылка"}

Operation timed out after 30001 milliseconds with 0 bytes received in /var/www/site.ru/public_html/web/vendor/php-webdriver/webdriver/lib/Remote/HttpCommandExecutor.php:331
Stack trace:
#0 /var/www/site.ru/public_html/web/vendor/php-webdriver/webdriver/lib/Remote/RemoteWebDriver.php(590): Facebook\WebDriver\Remote\HttpCommandExecutor->execute(Object(Facebook\WebDriver\Remote\WebDriverCommand))
#1 /var/www/site.ru/public_html/web/vendor/php-webdriver/webdriver/lib/Remote/RemoteWebDriver.php(252): Facebook\WebDriver\Remote\RemoteWebDriver->execute('get', Array)
#2 /var/www/site.ru/public_html/web/index.php(22): Facebook\WebDriver\Remote\RemoteWebDriver->get('https://ссылка....')
#3 {main}
  thrown in /var/www/site.ru/public_html/web/vendor/php-webdriver/webdriver/lib/Remote/HttpCommandExecutor.php on line 331


What could be the problem ? Why is it unable to execute the get command?
Everything works on Windows...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question