di-sukharev / opencommit

Generate conventional git commit messages with AI in 1 second 🤯🔫
https://www.npmjs.com/package/opencommit
MIT License
6.15k stars 328 forks source link

[Bug]: unable to get local issuer certificate #124

Closed Divkix closed 1 year ago

Divkix commented 1 year ago

Opencommit Version

1.1.50

Node Version

19.9.0

NPM Version

9.6.3

What OS are you seeing the problem on?

Mac

What happened?

❯ oc --no-verify
┌  open-commit
│
◇  1 staged files:
  utils.go
│
◒  Generating the commit message
│
└  ✖ Error: unable to get local issuer certificate

Expected Behavior

Commit message should have been generated without any issues

Current Behavior

Error: unable to get local issuer certificate is given

Possible Solution

No response

Steps to Reproduce

No response

Relevant log output

❯ oc --no-verify
┌  open-commit
│
◇  1 staged files:
  utils.go
│
◒  Generating the commit message
│
└  ✖ Error: unable to get local issuer certificate
di-sukharev commented 1 year ago

anybody else have this? i guess it's git repo error message, so just make sure you repo is configured the right way

andrewalba commented 1 year ago

Just wanted to add a quick comment in case someone else has a similar issue (Using Apple Macbook Pro).

Was trying various attempts to resolve the issue with the assumption that this was GIT related. Nothing was resolving the issue in my case. I decided to look into Node as the culprit. In my case I found that I had installed Node multiple times using different methods. I removed the one of the installed versions (brew install) of node and the issue was resolved.