-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems with SSLError #53
Comments
A solution which works for me is to add verify=False in function called at line 22 of radios.py:
|
@PeterBremer-Ph I have no time to investigate what is going on, it seems to be a problem with the upstream servers. Anyway, following your suggestion, as soon as possible I will add a way to disable ssl directly in the main class.
|
Great! |
Done, changed radios.py (version 1.0.2) from requests.packages import urllib3 class Request: ... Radiobrowser: def __init__(self, session=None, ssl_verify=True, diswarn=True, **kwargs): |
The initial tests as published, just do not work:
from pyradios import RadioBrowser
rb = RadioBrowser()
rb.search(name="BBC Radio 1", name_exact=True)
Gives
SSLError: HTTPSConnectionPool(host='at1.api.radio-browser.info', port=443): Max retries exceeded with url: /json/stations/search?name=BBC+Radio+1&nameExact=true (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)')))
The text was updated successfully, but these errors were encountered: