nikaia / translation-sheet

Translating Laravel languages files using a Google Spreadsheet.
GNU General Public License v3.0
291 stars 60 forks source link

php artisan translation_sheet:setup = Guzzle Error #37

Closed martinandersen3d closed 5 years ago

martinandersen3d commented 5 years ago

Hi, I followed the guide as close as possible. But I get this error when i run php artisan translation_sheet:setup

I don't have any experience with Guzzle. What is this error about? :-)

I'm running:

Getting some errors; GuzzleHttp\Exception\RequestException : cURL error 60: SSL certificate problem:

php artisan translation_sheet:setup
Setting up Translations sheet

   GuzzleHttp\Exception\RequestException  : cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

  at W:\laragon\www\lvtemp2\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php:186
    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|     }
    190|

  Exception trace:

  1   GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle))
      W:\laragon\www\lvtemp2\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))
      W:\laragon\www\lvtemp2\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php:102
jochensengier commented 5 years ago

You need to download a copy of cacert.pem from https://curl.haxx.se/ and reference it in your php.ini file. curl.cainfo = "c:/path/to/cacert.pem"

nbourguig commented 5 years ago

Yep it is more related to how curl works. More info here : https://thisinterestsme.com/php-curl-ssl-certificate-error/