Curl error thrown for http POST to /session with params: Facebook\WebDriver\Exception

て烟熏妆下的殇ゞ 提交于 2019-12-24 01:55:16

问题


Does anyone encountered this type of error when you run laravel 5.6 dusk

ERRor Log in the Terminal:

Facebook\WebDriver\Exception\WebDriverCurlException: Curl error thrown for http POST to /session with params: {"desiredCapabilities":{"browserName":"chrome","platform":"ANY","chromeOptions":{"binary":"","args":["--disable-gpu","--headless"]}}}

Failed to connect to localhost port 9515: Connection refused

回答1:


Make sure your chrome-driver is executable and running. Try following command

./vendor/laravel/dusk/bin/chromedriver-linux --port=8888

You should see following output

Starting ChromeDriver 2.x.x (649f9b868f6783ec9de71c123212b908bf3b232e) on port 8888 Only local connections are allowed.



来源:https://stackoverflow.com/questions/50979889/curl-error-thrown-for-http-post-to-session-with-params-facebook-webdriver-exce

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!