touchbar-lyric icon indicating copy to clipboard operation
touchbar-lyric copied to clipboard

SSLError CERTIFICATE_VERIFY_FAILED

Open adamyalei opened this issue 2 years ago • 2 comments

I got the following error when running /usr/local/bin/python3 -m touchbar_lyric --app Spotify

requests.exceptions.SSLError: HTTPSConnectionPool(host='c.y.qq.com', port=443): Max retries exceeded with url: /soso/fcgi-bin/client_search_cp?new_json=1&aggr=1&cr=1&flag_qc=0&p=1&n=20&w=Karma (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1091)')))

any idea how to fix this? Thanks!

adamyalei avatar Dec 04 '23 14:12 adamyalei

This seems like a system issue. I was able to find these relevant results:

  1. https://stackoverflow.com/questions/42098126/mac-osx-python-ssl-sslerror-ssl-certificate-verify-failed-certificate-verify
  2. https://github.com/python-poetry/poetry/issues/449#issuecomment-423731811

Let me know if it helps.

ChenghaoMou avatar Dec 04 '23 20:12 ChenghaoMou

no luck trying the mentioned fixes. I'm feeling it might have to do with my network firewall (I'm using under the corporate network). Thanks a lot for prompt reply!

adamyalei avatar Dec 05 '23 12:12 adamyalei