cli: [Bug]: unable to get local issuer certificate
Please confirm that you have:
- Searched existing issues to see if your issue is a duplicate. (If you’ve found a duplicate issue, feel free to add additional information in a comment on it.)
- Reproduced the issue in the latest CLI version.
In which of these areas are you experiencing a problem?
Theme
Expected behavior
The shopify theme dev command should start the local development server and connect to my store without any issues.
Actual behavior
I am experiencing an error when I run the shopify theme dev command using the Shopify CLI. The command fails to connect to my store and shows an “unable to get local issuer certificate” error.
Verbose output
Verbose output
Paste the output here!
Reproduction steps
- Run
shopify theme dev - Wait for the CLI to connect to the store
- The error appears
Operating System
macOS Sequoia
Shopify CLI version (shopify --version)
3.80.1
Shell
No response
Node version (run node -v if you’re not sure)
v23.11.0
What language and version are you using in your application?
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 34 (8 by maintainers)
If you want to skip SSL certificate validation temporarily:
NODE_TLS_REJECT_UNAUTHORIZED=0 shopify theme devThis worked for me for the latest version as well
Pleased to share that this should now be resolved. Apologies again for the interruption in service.
Thanks all for your patience. Investigation is ongoing. You can also try switching to an
nvmmanaged NodeJS. This seems to resolve the certificate issue.Thanks all – we’re investigating. I hope to have an update for you soon.
Same Issue after upgrading to Shopify-cli v3.80.1, I’m on a Mac 15.5 node v23.11.0.
I tried uninstalling & reinstalling Shopify CLI, still having the issue
@nikitaourazbaev I don’t think so – the homebrew CLI will use the homebrew Node and thats where the issue was. But all is – I sincerely hope! – good now.
Probably a duplicate / same issue as #5376
Same Issue after upgrading to Shopify-cli v3.80.1, I’m on a Mac 15.4.1 node v23.11.0
I tried to downgrade to v3.77.1, but I got the same. I installed shopify-cli with Homebrew and yarn, and I got the same error
error Request to https://xxxxxxxx.myshopify.com/password failed, reason: unable to get local issuer certificate
The password is right, this is happening with other stores that we have with password enabled
With a store without a password, when I open 127.0.0.1:9292 some images are not displayed, getting a 502 Bad Gateway
If I open the customizer, all images are fine, also using the preview mode.