Failed to connect to localhost port 9515 after 0 ms: Couldn't connect to server
Hey Folks. I'm trying to call php artisan dusk by calling /hello route. The call works fine but I'm facing an error related to chrome driver I think which is Failed to connect to localhost port 9515 after 0 ms: Couldn't connect to server. Can anyone help me please?
Here is the full output:
Warning: TTY mode requires /dev/tty to be read/writable. FAIL Tests\Browser\ExampleTest ⨯ basic example 0.60s ──────────────────────────────────────────────────────────────────────────── FAILED Tests\Browser\ExampleTest > basic example WebDriverCurlException Curl error thrown for http POST to /session with params: {"capabilities":{"firstMatch":[{"browserName":"chrome","goog:chromeOptions":{"args":["--window-size=1920,1080","--disable-gpu","--headless=new","--no-sandbox"]}}]},"desiredCapabilities":{"browserName":"chrome","platform":"ANY","chromeOptions":{"args":["--window-size=1920,1080","--disable-gpu","--headless=new","--no-sandbox"]}}} Failed to connect to localhost port 9515 after 0 ms: Couldn't connect to server at vendor/php-webdriver/webdriver/lib/Exception/Internal/WebDriverCurlException.php:20 16▕ } 17▕ 18▕ $message .= "\n\n" . $curlError; 19▕ ➜ 20▕ return new self($message); 21▕ } 22▕ } 23▕ [2m+3 vendor frames [22m 4 tests/DuskTestCase.php:45 [2m+1 vendor frames [22m 6 tests/Browser/ExampleTest.php:24 Tests: 1 failed (0 assertions) Duration: 1.02s Command failed with status code: 2
Please or to participate in this conversation.