Error: need more than 1 value to unpack

Issue #103 invalid
Former user created an issue

Configuracao com Globosat de usuario valido (Vivo). No entanto, popup error "need more than 1 value to unpack". Consistente, toda vez.

Sugestoes?

Obrigado, Xant

Comments (5)

  1. Lucas Andrade

    Tem que depurar a autenticação da vivo para ver o que mudou. Infelizmente não posso fazer essa correção. Não tenho tv da vivo.

  2. Ze Xant

    Obrigado Lucas pelo prompt reply.

    Acho que identifiquei o problema conectando por outros meios/devices. Apos a autenticacao via user+password, a Vivo requer selecao de "perfil", o q identifica multiusuario. Este procedimento parece ser consistente por outros aplicativos, e nao me pode ser um empicilio para implementacao no Add-On da Globosat. Concorda?

    Abs, Xant

  3. Danilo Haruo

    @ZXant, aparentemente é um problema de certificado.

    O Python 2.6 não tem a extensão SNI (Subject Name Indication) disponível para certificados TLS. O próprio log dá algumas coordenadas de como se aplicar um fix.

    01:52:09 T:1408633136   DEBUG: [plugin.video.globo.com] [vivo] username/password set. trying to authenticate
    01:52:09 T:1408633136   ERROR: /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/script.module.requests/lib/requests/packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
                                                  SNIMissingWarning
    01:52:09 T:1408633136   ERROR: /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/script.module.requests/lib/requests/packages/urllib3/util/ssl_.py:120: 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
    01:52:09 T:1408633136   ERROR: /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/script.module.requests/lib/requests/packages/urllib3/connection.py:266: SubjectAltNameWarning: Certificate for gsatmulti.globo.com has no `subjectAltName`, falling back to check for a `commonName` for now. This feature is being removed by major browsers and deprecated by RFC 2818. (See https://github.com/shazow/urllib3/issues/497 for details.)
                                                  SubjectAltNameWarning
    01:52:09 T:1408633136   ERROR: /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/script.module.requests/lib/requests/packages/urllib3/util/ssl_.py:120: 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
    01:52:09 T:1408633136   ERROR: [plugin.video.globo.com] need more than 1 value to unpack
    

    @lucasrokam e @vitorhirota, conseguem dar uma ajuda pra gente? Será que ignorar os certificados é o melhor caminho?

    import requests.packages.urllib3
    requests.packages.urllib3.disable_warnings()
    
  4. Log in to comment