Erro InsecurePlatformWarning ao autenticar Sky
Quando tento assistir algum canal online, recebo o seguinte erro no log:
ERROR: /home/xbmc/.kodi/addons/script.module.requests/lib/requests/packages/urllib3/util/ssl_.py:79: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
Estou no Ubuntu 14.04.2 LTS.
Comments (9)
-
-
Log com debug:
18:45:11 T:139731129771968 DEBUG: StartScript - calling plugin Globo.com('plugin://plugin.video.globo.com/live/sportv','53','') 18:45:11 T:139731129771968 DEBUG: WaitOnScriptResult - waiting on the Globo.com (id=150) plugin... 18:45:11 T:139730428589824 NOTICE: Thread LanguageInvoker start, auto delete: false 18:45:11 T:139730428589824 INFO: initializing python engine. 18:45:11 T:139730428589824 DEBUG: CPythonInvoker(150, /home/xbmc/.kodi/addons/plugin.video.globo.com/addon.py): start processing 18:45:11 T:139730428589824 NOTICE: -->Python Interpreter Initialized<-- 18:45:11 T:139730428589824 DEBUG: CPythonInvoker(150, /home/xbmc/.kodi/addons/plugin.video.globo.com/addon.py): the source file to load is "/home/xbmc/.kodi/addons/plugin.video.globo.com/addon.py" 18:45:11 T:139730428589824 DEBUG: CPythonInvoker(150, /home/xbmc/.kodi/addons/plugin.video.globo.com/addon.py): setting the Python path to /home/xbmc/.kodi/addons/plugin.video.globo.com:/home/xbmc/.kodi/addons/script.common.plugin.cache/lib:/home/xbmc/.kodi/addons/script.module.beautifulsoup/lib:/home/xbmc/.kodi/addons/script.module.requests/lib:/home/xbmc/.kodi/addons/script.module.xbmcswift2/lib:/usr/local/lib/python2.7/dist-packages/transmissionrpc-0.11-py2.7.egg:/usr/local/lib/python2.7/dist-packages/Skype4Py-1.0.35-py2.7.egg:/usr/lib/python2.7:/usr/lib/python2.7/plat-x86_64-linux-gnu:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/local/lib/python2.7/dist-packages:/usr/local/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages/PILcompat:/usr/lib/python2.7/dist-packages/gtk-2.0:/usr/lib/pymodules/python2.7:/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode 18:45:11 T:139730428589824 DEBUG: CPythonInvoker(150, /home/xbmc/.kodi/addons/plugin.video.globo.com/addon.py): entering source directory /home/xbmc/.kodi/addons/plugin.video.globo.com 18:45:11 T:139730428589824 DEBUG: CPythonInvoker(150, /home/xbmc/.kodi/addons/plugin.video.globo.com/addon.py): instantiating addon using automatically obtained id of "plugin.video.globo.com" dependent on version 2.1.0 of the xbmc.python api 18:45:11 T:139730428589824 DEBUG: [xbmcswift2] Reading pickle storage from disk at "/home/xbmc/.kodi/userdata/addon_data/plugin.video.globo.com/.storage/index" 18:45:11 T:139730428589824 DEBUG: [xbmcswift2] Loaded storage "index" from disk 18:45:11 T:139730428589824 DEBUG: [xbmcswift2] Adding url rule "/clear_index" named "clear_index" pointing to function "clear_index" 18:45:11 T:139730428589824 DEBUG: [xbmcswift2] Adding url rule "/favorites/del/<channel>/<show>" named "add_show_to_favs" pointing to function "add_show_to_favs" 18:45:11 T:139730428589824 DEBUG: [xbmcswift2] Adding url rule "/favorites/add/<channel>/<show>" named "del_show_from_favs" pointing to function "del_show_from_favs" 18:45:11 T:139730428589824 DEBUG: [xbmcswift2] Adding url rule "/" named "index" pointing to function "index" 18:45:11 T:139730428589824 DEBUG: [xbmcswift2] Adding url rule "/favorites" named "favorites" pointing to function "favorites" 18:45:11 T:139730428589824 DEBUG: [xbmcswift2] Adding url rule "/live" named "live" pointing to function "live" 18:45:11 T:139730428589824 DEBUG: [xbmcswift2] Adding url rule "/channels" named "channels" pointing to function "channels" 18:45:11 T:139730428589824 DEBUG: [xbmcswift2] Adding url rule "/globo/<category>" named "list_globo_categories" pointing to function "list_shows" 18:45:11 T:139730428589824 DEBUG: [xbmcswift2] Adding url rule "/<channel>" named "list_shows" pointing to function "list_shows" 18:45:11 T:139730428589824 DEBUG: [xbmcswift2] Adding url rule "/<channel>/<show>/page/<page>" named "list_episodes" pointing to function "list_episodes" 18:45:11 T:139730428589824 DEBUG: [xbmcswift2] Adding url rule "/play/<video_id>" named "play" pointing to function "play" 18:45:11 T:139730428589824 DEBUG: [xbmcswift2] Adding url rule "/live/<channel>" named "play_live" pointing to function "play_live" 18:45:11 T:139730428589824 DEBUG: [xbmcswift2] Handling incoming request for /live/sportv 18:45:11 T:139730428589824 NOTICE: [xbmcswift2] Request for "/live/sportv" matches rule for function "play_live" 18:45:11 T:139730428589824 DEBUG: [plugin.video.globo.com] setting live url for 3180419 18:45:11 T:139730428589824 DEBUG: [plugin.video.globo.com] resolving video: 3180419 18:45:11 T:139730428589824 WARNING: [xbmcswift2] No converter provided, unicode should be used, but returning str value 18:45:12 T:139730428589824 WARNING: Previous line repeats 4 times. 18:45:12 T:139730428589824 DEBUG: [plugin.video.globo.com] [sky] username/password set. trying to authenticate 18:45:12 T:139730428589824 ERROR: /home/xbmc/.kodi/addons/script.module.requests/lib/requests/packages/urllib3/util/ssl_.py:79: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. InsecurePlatformWarning 18:45:12 T:139731129771968 DEBUG: DialogProgress::StartModal called 18:45:12 T:139731129771968 DEBUG: ------ Window Init (DialogProgress.xml) ------ 18:45:13 T:139731129771968 DEBUG: WaitOnScriptResult- plugin returned failure 18:45:13 T:139730428589824 DEBUG: [xbmcswift2] Saving a pickle storage to disk at "/home/xbmc/.kodi/userdata/addon_data/plugin.video.globo.com/.storage/index" 18:45:13 T:139731129771968 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.globo.com/live/sportv] 18:45:13 T:139731129771968 DEBUG: Playlist Player: one or more items failed to play... aborting playback 18:45:13 T:139731129771968 DEBUG: ------ Window Init (DialogOK.xml) ------ 18:45:13 T:139731129771968 INFO: Loading skin file: DialogOK.xml, load type: KEEP_IN_MEMORY 18:45:13 T:139730428589824 INFO: CPythonInvoker(150, /home/xbmc/.kodi/addons/plugin.video.globo.com/addon.py): script successfully run 18:45:13 T:139731129771968 DEBUG: ------ Window Init (DialogKaiToast.xml) ------ 18:45:13 T:139730428589824 INFO: Python script stopped
-
repo owner - changed status to open
-
repo owner Lucas, pelo que entendi do problema, são coisas diferentes.
A mensagem de erro, InsecurePlatformWarning, diz respeito a falha de verificação do certificado SSL. Pelo que entendo, é um problema de versão antiga do python presente no xbmc, e não tem efeito no processo, como um todo.
Identifiquei outro problema geral de autorização por conta de uma mudança na página de escolha de perfil do globosat play.
Peço a gentileza de logar no site, verificar se eles solicitarão novo ok para a política de uso do serviço e tente assistir a algum video pelo addon.
Nota: os canais ao vivo, aparentemente, não estão funcionando por outro problema, ainda não identificado.
-
Vitor, conforme falei no PR, o problema sumiu quando retirei os \u0026 da URL e substituí pelo '&'. Para chegar a essa conclusão, tive que depurar o código linha por linha. Aparentemente a SKY está enviando a URL de retorno da autenticação em unicode. Vou testar essa sua última release e retorno aqui.
-
Vitor, mesma coisa na última versão. Apenas corrigindo a URL de retorno para funcionar, não consigo ver uma outra solução.
-
repo owner Ok, peço a gentileza então de atualizar seu PR para atualizar os ultimos commits
-
Feito.
-
repo owner - changed status to resolved
[globo.com] rolling out v0.1.9. Fix
#41.→ <<cset ab4ba64658f0>>
- Log in to comment
Esqueci de autenticar antes de abrir o issue