Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

sabat24's avatar

[Dusk] The '--headless` option is causing Facebook\WebDriver\Exception\WebDriverCurlException : Curl error thrown for http POST

I have just installed the newest Dusk and ChromeDriver (84.0.4147.30). If I run standard DuskTestCase I can login as admin and visit my home page without any problem. However when I tried to visit an "admin" area guarded by my "admin" guard I receive that exception.

But if I remove the '--headless' option from DuskTestCase there is no problem.

Where can be the problem?

0 likes
2 replies
sabat24's avatar

I read that thread. Someone also had got problem with headless option since 74 version of Chrome. I didn't mention that I work on Windows. On unauthorized pages headless fork fine, but for the rest I have to turn it off.

I also tried to download again 84.0.4147.30 version of chromedriver. My local chrome browser is also up to date (84.0.4147.125)

Please or to participate in this conversation.