Skip to content

SSLError with addons in Kodi running on Ubuntu 20.04 #13

Description

@omgbob

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!

Activity

  1. andybotting commented on Sep 23, 2020

    @andybotting
    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?

  2. Paul-Faulkner commented on Oct 13, 2020

    @Paul-Faulkner

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions