pluveto / upgit

Another upload hub that supports clipboard. It works well with Typora, Snipaste, VSCode.
MIT License
528 stars 44 forks source link

报错x509 #12

Open EVAyo opened 2 years ago

EVAyo commented 2 years ago

Failed: Put "https://api.github.com/repos/***/****/contents/upgit/2022/02/upgit_20220202_1643738255.png": x509: certificate is valid for *.googlevideo.com, *.a1.googlevideo.com, *.bdn.dev, *.c.doc-0-0-sj.sj.googleusercontent.com, *.c.2mdn.net, *.dai.googlevideo.com, *.googlezip.net, *.gvt1.com, *.offline-maps.gvt1.com, *.snap.gvt1.com, *.gcpcdn.gvt1.com, xn--ngstr-lra8j.com, *.xn--ngstr-lra8j.com, i.ytimg.com, play-lh.googleusercontent.com, not api.github.com

pluveto commented 2 years ago

无法复现你的问题。请给出具体的使用场景和复现方法。 We are not able to reproduce this problem. Please give a specific usage scenario and reproduction steps.

cnjn commented 2 years ago

你这是linux系统吧?这是证书错误的原因,你可以试试安装curl和ca-certificates

EVAyo commented 2 years ago

windows的,我试试删除证书看看

你这是linux系统吧?这是证书错误的原因,你可以试试安装curl和ca-certificates

EVAyo commented 2 years ago

无法复现你的问题。请给出具体的使用场景和复现方法。 We are not able to reproduce this problem. Please give a specific usage scenario and reproduction steps.

找到问题了,它不走系统代理,我给cmd配置代理后就可以上传了,请问可否添加一个配置代理的选项(http和socks5都可)呢

pluveto commented 2 years ago

找到问题了,它不走系统代理,我给cmd配置代理后就可以上传了,请问可否添加一个配置代理的选项(http和socks5都可)呢

用环境变量配置就行。单独增加配置反而会引起二义性。你可以用 bat 封装一下具体配置。