No longer able to Serve my desktop App. #605
-
I have started building a desktop application and all has been working fine but suddenly today when I run php artisan native:serve it hangs at Fetching latest dependencies.. [2025-05-29 20:16:30] local.ERROR: cURL error 7: Failed to connect to localhost port 4000 after 2241 ms: Could not connect to server (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://localhost:4000/api/debug/log {"exception":"[object] (Illuminate\Http\Client\ConnectionException(code: 0): cURL error 7: Failed to connect to localhost port 4000 after 2241 ms: Could not connect to server (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://localhost:4000/api/debug/log at C:\Users\finch\code\NativePayroll\vendor\laravel\framework\src\Illuminate\Http\Client\PendingRequest.php:939) [previous exception] [object] (GuzzleHttp\Exception\ConnectException(code: 0): cURL error 7: Failed to connect to localhost port 4000 after 2241 ms: Could not connect to server (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://localhost:4000/api/debug/log at C:\Users\finch\code\NativePayroll\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php:275) Does anyone know what I can do to fix this situation? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I have found a work around. If I open Task Manager and close the PHP CLI then the app appears and I am able to continue development work. This isn't ideal and I am not able to build a working windows app with php artisan native:build. |
Beta Was this translation helpful? Give feedback.
-
Ran into a similar error and I'm at least able to continue development by downgrading |
Beta Was this translation helpful? Give feedback.
-
Worked for me too. Thanks. |
Beta Was this translation helpful? Give feedback.
Ran into a similar error and I'm at least able to continue development by downgrading
symfony/console
tov7.2.7
. See #604