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

successdav's avatar

Help me get Algolia to work on my site

when i run

php artisan scout:import 'App\Thread'

it generates this error

 cURL error 28: Resolving timed out after 2518 milliseconds (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

  at /home/vagrant/Sites/success_techmax/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:185
    181|         );
    182|
    183|         // Create a connection exception if it was a specific error code. 
    184|         $error = isset($connectionErrors[$easy->errno])
  > 185|             ? new ConnectException($message, $easy->request, null, $ctx)
    186|             : new RequestException($message, $easy->request, $easy->response, null, $ctx);
    187|
    188|         return \GuzzleHttp\Promise\rejection_for($error);
    189|     }

  Exception trace:

  1   GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle))
      /home/vagrant/Sites/success_techmax/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:149

  2   GuzzleHttp\Handler\CurlFactory::finishError(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
      /home/vagrant/Sites/success_techmax/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:102

  Please use the argument -v to see more details..

0 likes
5 replies
successdav's avatar
successdav
OP
Best Answer
Level 4

yep I got it fixed, it was a network problems.

ehben's avatar

Hey there, I currently have the same problem.

What kind of network problem was it ? Did you do anything specific to fix it ?

Thanks for any info

Daniel-Pablo's avatar

How to see network connections... What should I tweak

@successdav ? thanks in advance got same problem with algolia

Please or to participate in this conversation.