Closed Nixxen closed 1 year ago
Hey!
Not sure if the proxy
option will fix your issue but linking here the related PR in case it helps:
https://github.com/carloscuesta/gitmoji-cli/pull/603
Having a verified cert for https://gitmoji.dev/ would probably be best, though I understand the cost of this is not exactly "pocket change".
Currently the SSL is provided by Vercel automatically that under the hood relies on Let's Encrypt.
The plan is to keep the project "as cheap as possible" as it's not generating any revenue, aside from covering the domain and the server costs!
Another option you can try (if the proxy config is not working for you), can be "self-hosting" your own version of gitmojis. The configuration allows user-defined config, you can define and set your own gitmojisUrl
so you'll be able to define a custom list of emojis and host them somewhere else!
Let me know if I can be of any help
Describe the bug
This is not strictly related to the CLI, but rather the host cert. I am posting it since there is no issue relating to this currently, and the workarounds are better than no solution at all.
When attempting to update or fetch the emojis behind a corporate proxy, the following error occurs. ✖ Error: FetchError: request to https://gitmoji.dev/api/gitmojis failed, reason: unable to get local issuer certificate
Some brief searches would suggest it is because of a self-signed cert that fails the verification of a proxy verification. https://stackoverflow.com/questions/36494336/npm-install-error-unable-to-get-local-issuer-certificate
There are workarounds that involve disabling
strict-ssl
(not recommended due to security concerns), or baking your own root cert. Both of these are explained in the SO issue above. Having a verified cert for https://gitmoji.dev/ would probably be best, though I understand the cost of this is not exactly "pocket change".Reproduction
Be behind a corporate proxy. Attempt to use gitmoji-cli through, i.e., through
gitmoji --list
. Get error message:✖ Error: FetchError: request to https://gitmoji.dev/api/gitmojis failed, reason: unable to get local issuer certificate
System Info
Validations