2016-07-13, 16:47
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.
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:
Any help is greatly appreciated
Regards
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