Have you tried looking at other discussions with the same issue? Bunch of those here on Laracasts and on Google.
Dusk Connection Refused
I'm so confused, I was working on my laravel app and a made a few changes that cause the application to take forever to respond and it would only render out part of the page. It has something to do with Bouncer (the permission package). I revert to a previous commit that was working fine yesterday and tests were passing but when I run `php artisan dusk', every test fails and this is what I get:
Failed to connect to localhost port 9515 after 0 ms: Connection refused
/Users/lukebouch/the-prayer-platform/vendor/php-webdriver/webdriver/lib/Remote/HttpCommandExecutor.php:332
/Users/lukebouch/the-prayer-platform/vendor/php-webdriver/webdriver/lib/Remote/RemoteWebDriver.php:135
/Users/lukebouch/the-prayer-platform/tests/DuskTestCase.php:46
/Users/lukebouch/the-prayer-platform/vendor/laravel/dusk/src/Concerns/ProvidesBrowser.php:218
/Users/lukebouch/the-prayer-platform/vendor/laravel/framework/src/Illuminate/Support/helpers.php:234
/Users/lukebouch/the-prayer-platform/vendor/laravel/dusk/src/Concerns/ProvidesBrowser.php:219
/Users/lukebouch/the-prayer-platform/vendor/laravel/dusk/src/Concerns/ProvidesBrowser.php:97
/Users/lukebouch/the-prayer-platform/vendor/laravel/dusk/src/Concerns/ProvidesBrowser.php:65
/Users/lukebouch/the-prayer-platform/tests/Browser/ProfileTest.php:67
ERRORS!
Tests: 10, Assertions: 0, Errors: 10.
This has got me so confused because when I login to the application running through valet, everything works fine! Any ideas?
I installed Chromium through Homebrew and then ran php artisan dusk:install which fixed it. I don't think chromium had anything to do with it. I think I just needed to reinstall dusk.
Please or to participate in this conversation.