Solved Kodi 17 Krypton - SSL issues
#1
Dear all,

I am facing some issues regarding HTTPS requests in OSX through python addons. Not sure if this is a known issue or otherwise just a problem on my end, hence decided to post seeking advice.
These problems are affecting some of my addons, namely the KordKutters addon that can be installed through the official repository. This issue only occurs in my OSX setup. I can't reproduce the error neither in Linux arm, in Android or Linux x64.

Quote:15:41:22 T:123145312653312 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.IOError'>
Error Contents: [Errno socket error] [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)
Traceback (most recent call last):
File "/Users/enen/Library/Application Support/Kodi/addons/plugin.video.kordkutters/addon.py", line 91, in <module>
get_playlists()
File "/Users/enen/Library/Application Support/Kodi/addons/plugin.video.kordkutters/resources/lib/youtubewrapper.py", line 35, in get_playlists
raw = urllib.urlopen(url)
File "/Users/Shared/jenkins/workspace/OSX-64/tools/depends/xbmc-depends/macosx10.10_x86_64-target/lib/python2.7/urllib.py", line 87, in urlopen
File "/Users/Shared/jenkins/workspace/OSX-64/tools/depends/xbmc-depends/macosx10.10_x86_64-target/lib/python2.7/urllib.py", line 213, in open
File "/Users/Shared/jenkins/workspace/OSX-64/tools/depends/xbmc-depends/macosx10.10_x86_64-target/lib/python2.7/urllib.py", line 443, in open_https
File "/Users/Shared/jenkins/workspace/OSX-64/tools/depends/xbmc-depends/macosx10.10_x86_64-target/lib/python2.7/httplib.py", line 1053, in endheaders
File "/Users/Shared/jenkins/workspace/OSX-64/tools/depends/xbmc-depends/macosx10.10_x86_64-target/lib/python2.7/httplib.py", line 897, in _send_output
File "/Users/Shared/jenkins/workspace/OSX-64/tools/depends/xbmc-depends/macosx10.10_x86_64-target/lib/python2.7/httplib.py", line 859, in send
File "/Users/Shared/jenkins/workspace/OSX-64/tools/depends/xbmc-depends/macosx10.10_x86_64-target/lib/python2.7/httplib.py", line 1278, in connect
File "/Users/Shared/jenkins/workspace/OSX-64/tools/depends/xbmc-depends/macosx10.10_x86_64-target/lib/python2.7/ssl.py", line 353, in wrap_socket
File "/Users/Shared/jenkins/workspace/OSX-64/tools/depends/xbmc-depends/macosx10.10_x86_64-target/lib/python2.7/ssl.py", line 601, in __init__
File "/Users/Shared/jenkins/workspace/OSX-64/tools/depends/xbmc-depends/macosx10.10_x86_64-target/lib/python2.7/ssl.py", line 830, in do_handshake
IOError: [Errno socket error] [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)
-->End of Python script error report<--
15:41:22 T:140735260250112 DEBUG: ------ Window Init (DialogNotification.xml) ------

I am using the latest nightly build (kodi-20160712-89ef699-master-x86_64). The code works correctly using system python.

Below is the code that is triggering the error:

PHP Code:
import urllib
url 
'https://www.googleapis.com/youtube/v3/playlists?part=snippet,contentDetails&channelId=UCtp9s4L-kxIRy221VVtgjXg&maxResults=50&key=AIzaSyAxaHJTQ5zgh86wk7geOwm-y0YyNMcEkSc'
raw urllib.urlopen(url

Any help is greatly appreciated

Regards
Reply


Messages In This Thread
Kodi 17 Krypton - SSL issues - by enen92 - 2016-07-13, 16:47
RE: SSL issues - by FernetMenta - 2016-07-13, 17:51
RE: SSL issues - by enen92 - 2016-07-13, 22:52
RE: SSL issues - by Memphiz - 2016-07-13, 23:28
RE: SSL issues - by Memphiz - 2016-07-21, 22:03
RE: SSL issues - by Memphiz - 2016-08-17, 20:04
RE: SSL issues - by enen92 - 2016-09-07, 16:23
RE: SSL issues - by Gigantur - 2016-08-20, 12:39
RE: SSL issues - by Ned Scott - 2016-08-20, 13:31
SSL issues - by Memphiz - 2016-08-20, 16:37
RE: SSL issues - by Memphiz - 2016-09-07, 17:39
RE: Kodi 17 Krypton - SSL issues - by enen92 - 2016-09-11, 00:04


Logout Mark Read Team Forum Stats Members Help
Kodi 17 Krypton - SSL issues0
This forum uses Lukasz Tkacz MyBB addons.