Comments (5)
Hi are you able to fix this, I'm experiencing a similar issue when i try to create a statamic project with starter kit.
More Info
Statmic CLI version : v3.0.1
PHP Version : 8.3.0
Well, i run the cli from the source, i added an echo statement in the catch block and i received this as the output:
> 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) for https://outpost.statamic.com/v3/starter-kits/statamic/starter-kit-cool-writings in C:\Users\selas\Downloads\cli-master\cli-master\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php:211
Stack trace:
#0 C:\Users\selas\Downloads\cli-master\cli-master\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php(158): GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle), Array)
#1 C:\Users\selas\Downloads\cli-master\cli-master\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php(110): GuzzleHttp\Handler\CurlFactory::finishError(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
#2 C:\Users\selas\Downloads\cli-master\cli-master\vendor\guzzlehttp\guzzle\src\Handler\CurlHandler.php(47): GuzzleHttp\Handler\CurlFactory::finish(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
#3 C:\Users\selas\Downloads\cli-master\cli-master\vendor\guzzlehttp\guzzle\src\Handler\Proxy.php(28): GuzzleHttp\Handler\CurlHandler->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#4 C:\Users\selas\Downloads\cli-master\cli-master\vendor\guzzlehttp\guzzle\src\Handler\Proxy.php(48): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#5 C:\Users\selas\Downloads\cli-master\cli-master\vendor\guzzlehttp\guzzle\src\PrepareBodyMiddleware.php(35): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#6 C:\Users\selas\Downloads\cli-master\cli-master\vendor\guzzlehttp\guzzle\src\Middleware.php(31): GuzzleHttp\PrepareBodyMiddleware->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#7 C:\Users\selas\Downloads\cli-master\cli-master\vendor\guzzlehttp\guzzle\src\RedirectMiddleware.php(71): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#8 C:\Users\selas\Downloads\cli-master\cli-master\vendor\guzzlehttp\guzzle\src\Middleware.php(66): GuzzleHttp\RedirectMiddleware->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#9 C:\Users\selas\Downloads\cli-master\cli-master\vendor\guzzlehttp\guzzle\src\HandlerStack.php(75): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Request), Array)
#10 C:\Users\selas\Downloads\cli-master\cli-master\vendor\guzzlehttp\guzzle\src\Client.php(333): GuzzleHttp\HandlerStack->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
#11 C:\Users\selas\Downloads\cli-master\cli-master\vendor\guzzlehttp\guzzle\src\Client.php(169): GuzzleHttp\Client->transfer(Object(GuzzleHttp\Psr7\Request), Array)
#12 C:\Users\selas\Downloads\cli-master\cli-master\vendor\guzzlehttp\guzzle\src\Client.php(189): GuzzleHttp\Client->requestAsync('GET', Object(GuzzleHttp\Psr7\Uri), Array)
#13 C:\Users\selas\Downloads\cli-master\cli-master\vendor\guzzlehttp\guzzle\src\ClientTrait.php(44): GuzzleHttp\Client->request('GET', 'https://outpost...', Array)
#14 C:\Users\selas\Downloads\cli-master\cli-master\src\NewCommand.php(354): GuzzleHttp\Client->get('https://outpost...')#15 C:\Users\selas\Downloads\cli-master\cli-master\src\NewCommand.php(114): Statamic\Cli\NewCommand->validateStarterKitLicense()
#16 C:\Users\selas\Downloads\cli-master\cli-master\vendor\symfony\console\Command\Command.php(326): Statamic\Cli\NewCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#17 C:\Users\selas\Downloads\cli-master\cli-master\vendor\symfony\console\Application.php(1078): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#18 C:\Users\selas\Downloads\cli-master\cli-master\vendor\symfony\console\Application.php(324): Symfony\Component\Console\Application->doRunCommand(Object(Statamic\Cli\NewCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#19 C:\Users\selas\Downloads\cli-master\cli-master\vendor\symfony\console\Application.php(175): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#20 C:\Users\selas\Downloads\cli-master\cli-master\bin\statamic(29): Symfony\Component\Console\Application->run()
#21 {main}
from cli.
Finally i was able to fix this issue by adding this to my php.ini file:
curl.cainfo = "C:\wamp64\bin\php\php8.3.0\cacert.pem"
I was able to get the cacert.pem file from here: CA certificates extracted from Mozilla
from cli.
@selastingeorge That's a pretty common issue when using Windows and is unrelated to this. See #3.
from cli.
Related Issues (20)
- zsh: command not found: statamic HOT 1
- Install fails when attempting to create a new site HOT 4
- Downloading starter kits needs GH credentials HOT 9
- Can't generate new site via CLI due to symfony console version HOT 1
- Version is off HOT 1
- Explainer on GH rate limits and GH auth HOT 1
- Warn when giving an invalid starter kit
- Error when creating super user in Windows HOT 1
- Improve messaging around missing composer github token HOT 6
- Conflicts with Symfony console HOT 5
- Feature Request: Option to install npm dependencies? HOT 2
- Problem installing Statamic PEAK starter kit HOT 2
- Issue getting this to install HOT 9
- Can't install Starter Kit after transferring 'organisation' HOT 3
- Being asked to update, no update found HOT 5
- Laravel Prompts in Starter Kit not interactive HOT 3
- exec statamic new $sitename fails if any element of the path contains a space on OSX HOT 2
- Fatal error: Uncaught TypeError: Unsupported operand types: CurlHandle / int in /Users/macpro... HOT 15
- `statamic new` requires tty to run HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli.