{"action":"created","issue":{"url":"https://api.github.com/repos/pymedusa/Medusa/issues/1443","repository_url":"https://api.github.com/repos/pymedusa/Medusa","labels_url":"https://api.github.com/repos/pymedusa/Medusa/issues/1443/labels{/name}","comments_url":"https://api.github.com/repos/pymedusa/Medusa/issues/1443/comments","events_url":"https://api.github.com/repos/pymedusa/Medusa/issues/1443/events","html_url":"https://github.com/pymedusa/Medusa/issues/1443","id":186698775,"number":1443,"title":"Exception generated: data must be a byte string - trying to add TV shows","user":{"login":"whipcracker","id":15645911,"avatar_url":"https://avatars.githubusercontent.com/u/15645911?v=3","gravatar_id":"","url":"https://api.github.com/users/whipcracker","html_url":"https://github.com/whipcracker","followers_url":"https://api.github.com/users/whipcracker/followers","following_url":"https://api.github.com/users/whipcracker/following{/other_user}","gists_url":"https://api.github.com/users/whipcracker/gists{/gist_id}","starred_url":"https://api.github.com/users/whipcracker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whipcracker/subscriptions","organizations_url":"https://api.github.com/users/whipcracker/orgs","repos_url":"https://api.github.com/users/whipcracker/repos","events_url":"https://api.github.com/users/whipcracker/events{/privacy}","received_events_url":"https://api.github.com/users/whipcracker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-02T02:42:47Z","updated_at":"2016-11-02T06:35:20Z","closed_at":null,"body":"### Before submitting your issue:\r\n\r\nEnable debug logging in Medusa settings, reproduce the error (be sure to disable after the bug is fixed)\r\n\r\nBranch/Commit: latest develop branch\r\nOS: Linux-3.16.36-feral-x86_64-with-debian-8.6\r\nWhat you did: Tried to add a show called \"Humans\" and tried \"Narcos\"\r\nWhat happened: \"search timed out, try again or try another indexer\"\r\nWhat you expected: For the show to appear and allow me to add to Medusa\r\nLogs:\r\n```\r\n2016-11-02 02:38:18 ERROR    Thread-28 :: [9507206] Exception generated: data must be a byte string\r\nTraceback (most recent call last):\r\n  File \"/media/sdq1/home/**********/.sickrage/medusa/server/web/core/base.py\", line 271, in async_call\r\n    result = function(**kwargs)\r\n  File \"/media/sdq1/home/**********/.sickrage/medusa/server/web/home/add_shows.py\", line 80, in searchIndexersForShowName\r\n    t = app.indexerApi(indexer).indexer(**l_indexer_api_parms)\r\n  File \"/media/sdq1/home/**********/.sickrage/medusa/indexers/indexer_api.py\", line 34, in indexer\r\n    return indexerConfig[self.indexer_id]['module'](*args, **kwargs)\r\n  File \"/media/sdq1/home/**********/.sickrage/medusa/indexers/tvdbv2/tvdbv2_api.py\", line 66, in __init__\r\n    access_token = auth_api.login_post(authentication_string)\r\n  File \"/media/sdq1/home/**********/.sickrage/lib/tvdbapiv2/apis/authentication_api.py\", line 124, in login_post\r\n    callback=params.get('callback'))\r\n  File \"/media/sdq1/home/**********/.sickrage/lib/tvdbapiv2/api_client.py\", line 324, in call_api\r\n    response_type, auth_settings, callback)\r\n  File \"/media/sdq1/home/**********/.sickrage/lib/tvdbapiv2/api_client.py\", line 150, in __call_api\r\n    post_params=post_params, body=body)\r\n  File \"/media/sdq1/home/**********/.sickrage/lib/tvdbapiv2/api_client.py\", line 360, in request\r\n    body=body)\r\n  File \"/media/sdq1/home/**********/.sickrage/lib/tvdbapiv2/rest.py\", line 208, in POST\r\n    body=body)\r\n  File \"/media/sdq1/home/**********/.sickrage/lib/tvdbapiv2/rest.py\", line 143, in request\r\n    headers=headers)\r\n  File \"/media/sdq1/home/**********/.sickrage/lib/requests/packages/urllib3/request.py\", line 73, in request\r\n    **urlopen_kw)\r\n  File \"/media/sdq1/home/**********/.sickrage/lib/requests/packages/urllib3/request.py\", line 151, in request_encode_body\r\n    return self.urlopen(method, url, **extra_kw)\r\n  File \"/media/sdq1/home/**********/.sickrage/lib/requests/packages/urllib3/poolmanager.py\", line 165, in urlopen\r\n    response = conn.urlopen(method, u.request_uri, **kw)\r\n  File \"/media/sdq1/home/**********/.sickrage/lib/requests/packages/urllib3/connectionpool.py\", line 578, in urlopen\r\n    chunked=chunked)\r\n  File \"/media/sdq1/home/**********/.sickrage/lib/requests/packages/urllib3/connectionpool.py\", line 362, in _make_request\r\n    conn.request(method, url, **httplib_request_kw)\r\n  File \"/usr/lib/python2.7/httplib.py\", line 1039, in request\r\n    self._send_request(method, url, body, headers)\r\n  File \"/usr/lib/python2.7/httplib.py\", line 1073, in _send_request\r\n    self.endheaders(body)\r\n  File \"/usr/lib/python2.7/httplib.py\", line 1035, in endheaders\r\n    self._send_output(message_body)\r\n  File \"/usr/lib/python2.7/httplib.py\", line 879, in _send_output\r\n    self.send(msg)\r\n  File \"/usr/lib/python2.7/httplib.py\", line 855, in send\r\n    self.sock.sendall(data)\r\n  File \"/media/sdq1/home/**********/.sickrage/lib/requests/packages/urllib3/contrib/pyopenssl.py\", line 253, in sendall\r\n    sent = self._send_until_done(data[total_sent:total_sent + SSL_WRITE_BLOCKSIZE])\r\n  File \"/media/sdq1/home/**********/.sickrage/lib/requests/packages/urllib3/contrib/pyopenssl.py\", line 242, in _send_until_done\r\n    return self.connection.send(data)\r\n  File \"/usr/lib/python2.7/dist-packages/OpenSSL/SSL.py\", line 947, in send\r\n    raise TypeError(\"data must be a byte string\")\r\nTypeError: data must be a byte string\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/pymedusa/Medusa/issues/comments/257784319","html_url":"https://github.com/pymedusa/Medusa/issues/1443#issuecomment-257784319","issue_url":"https://api.github.com/repos/pymedusa/Medusa/issues/1443","id":257784319,"user":{"login":"ratoaq2","id":9292886,"avatar_url":"https://avatars.githubusercontent.com/u/9292886?v=3","gravatar_id":"","url":"https://api.github.com/users/ratoaq2","html_url":"https://github.com/ratoaq2","followers_url":"https://api.github.com/users/ratoaq2/followers","following_url":"https://api.github.com/users/ratoaq2/following{/other_user}","gists_url":"https://api.github.com/users/ratoaq2/gists{/gist_id}","starred_url":"https://api.github.com/users/ratoaq2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ratoaq2/subscriptions","organizations_url":"https://api.github.com/users/ratoaq2/orgs","repos_url":"https://api.github.com/users/ratoaq2/repos","events_url":"https://api.github.com/users/ratoaq2/events{/privacy}","received_events_url":"https://api.github.com/users/ratoaq2/received_events","type":"User","site_admin":false},"created_at":"2016-11-02T06:35:20Z","updated_at":"2016-11-02T06:35:20Z","body":"@whipcracker \r\nCan you try this branch: tvdbv2-no-unicode ?\r\n\r\n```\r\ngit fetch origin\r\ngit checkout tvdbv2-no-unicode\r\ngit clean -d -f lib medusa\r\ngit reset --hard origin/tvdbv2-no-unicode\r\n```\r\n\r\n"}}
{"actor":{"display_login":"ratoaq2"}}