Skip to content
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

SSLError with addons in Kodi running on Ubuntu 20.04 #13

Open
omgbob opened this issue Sep 22, 2020 · 2 comments
Open

SSLError with addons in Kodi running on Ubuntu 20.04 #13

omgbob opened this issue Sep 22, 2020 · 2 comments

Comments

@omgbob
Copy link

omgbob commented Sep 22, 2020

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!

@andybotting
Copy link
Member

Thanks for the report. I saw your post on Whirlpool too.

This seems quite strange, considering you're running on Focal with all the latest packages. I haven't yet tested on Focal, but I will have a look into it eventually.

Do you see this with any of the other add-ons, or is it just 9Now?

@Paul-Faulkner
Copy link

Fixed it for me - thanks. Just 9Now with the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants