Open
Description
I encountered this error trying to use the 9Now addon:
NOTICE: [9Now v1.0.4] Traceback (most recent call last):
File "~/.kodi/addons/plugin.video.catchuptv.au.nine/resources/lib/menu.py", line 29, in list_categories
genres = comm.list_genres()
File "~/.kodi/addons/plugin.video.catchuptv.au.nine/resources/lib/comm.py", line 76, in list_genres
data = fetch_url(config.GENRES_URL)
File "~/.kodi/addons/plugin.video.catchuptv.au.nine/resources/lib/comm.py", line 16, in fetch_url
res = sess.get(url, headers=headers)
File "~/.kodi/addons/script.module.requests/lib/requests/sessions.py", line 546, in get
return self.request('GET', url, **kwargs)
File "~/.kodi/addons/script.module.aussieaddonscommon/lib/aussieaddonscommon/session.py", line 56, in request
raise AussieAddonsException(msg)
AussieAddonsException: SSL Error: HTTPSConnectionPool(host='tv-api.9now.com.au', port=443): Max retries exceeded
with url: /v1/genres?device=android&take=99999 (Caused by SSLError(SSLError(1, u'[SSL] internal error (_ssl.c:727)'),)).
This is usually due to an old version of Kodi. Please upgrade to Kodi v17 or later.
I am running Kodi 18.8 on Ubuntu 20.04.1 LTS, so not due to an old version...
I did a bit of googling and came across this post on Stack Overflow: https://stackoverflow.com/a/63349178
Based on that suggestion I added the following lines to ~/.kodi/addons/script.module.aussieaddonscommon/lib/aussieaddonscommon/session.py
and restarted Kodi.
import urllib3
requests.packages.urllib3.util.ssl_.DEFAULT_CIPHERS = 'ALL:@SECLEVEL=1'
Lo and behold, the 9Now addon worked perfectly!
I'm not sure if this is the proper solution to the problem, but hopefully it can at least lead you down the right path.
Cheers!
Metadata
Metadata
Assignees
Labels
No labels