moehmeni/syncedlyrics

SSL certificates fail for lrclib and megalobiz

hseg opened this issue · 7 comments

hseg commented

Am getting the following errors running tests

E           urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='lrclib.net', port=443): Max retries exceeded with url: /api/search?q=bad+guy+billie+eilish (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)')))
E               requests.exceptions.SSLError: HTTPSConnectionPool(host='www.megalobiz.com', port=443): Max retries exceeded with url: /search/all?qry=bad%20guy%20billie%20eilish&searchButton.x=0&searchButton.y=0 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)')))

Perhaps these sources should be downgraded to connecting with HTTP only?

Can you check again with the latest code (clone from repo) since #26 changed requests to curl_cffi. Maybe it can solve it.

@hseg Try to update certifi package

pip install -U certifi
hseg commented

It is not related I think to none of these. Sometimes Megalobiz returns 5xx status code based on logs. It's the same problem for NetEase, which made me remove it from tests. CI environment may not be reliable because I tested it many times on local and it works. Another issue for Genius as well [1].

[1] #27 (comment)

hseg commented
hseg commented

No problem 👍🏼