robwittman / shopify-php-sdk

PHP SDK for development with the Shopify API
MIT License
64 stars 42 forks source link

Fatal error: Uncaught GuzzleHttp\Exception\RequestException #52

Closed Samirgitthub closed 3 years ago

Samirgitthub commented 3 years ago

When I try to execute(with the my_ name of thing filled in)

require "vendor/autoload.php";
$client = new Shopify\PrivateApi(array(
    'api_key' => 'my_api_key',
    'password' => 'my_password',
    'shared_secret' => 'my_shared_secret',
    'myshopify_domain' => 'myshopify_domain.myshopify.com'
));
$service = new Shopify\Service\ProductService($client);
$service->all(); 

I get this error:

( ! ) Fatal error: Uncaught GuzzleHttp\Exception\RequestException: cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) in C:\Wamp64\www\Hanabi\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php on line 201

1 | 0.0000 | 407968 | {main}( ) | ...\api.php:0 2 | 0.0010 | 510072 | Shopify\Service\ProductService->all( ) | ...\api.php:10 3 | 0.0010 | 510072 | Shopify\Service\ProductService->request( ) | ...\ProductService.php:19 4 | 0.0012 | 515512 | Shopify\Service\ProductService->send( ) | ...\AbstractService.php:57 5 | 0.0012 | 515888 | GuzzleHttp\Client->send( ) | ...\AbstractService.php:87 6 | 0.0711 | 558000 | GuzzleHttp\Promise\RejectedPromise->wait( ) | ...\Client.php:129