{"action":"created","issue":{"url":"https://api.github.com/repos/rectalogic/mopidy-pandora/issues/41","labels_url":"https://api.github.com/repos/rectalogic/mopidy-pandora/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/rectalogic/mopidy-pandora/issues/41/comments","events_url":"https://api.github.com/repos/rectalogic/mopidy-pandora/issues/41/events","html_url":"https://github.com/rectalogic/mopidy-pandora/issues/41","id":125433500,"number":41,"title":"Get 'Invalid Partner Login' With Valid Credentials","user":{"login":"kdbdallas","id":59203,"avatar_url":"https://avatars.githubusercontent.com/u/59203?v=3","gravatar_id":"","url":"https://api.github.com/users/kdbdallas","html_url":"https://github.com/kdbdallas","followers_url":"https://api.github.com/users/kdbdallas/followers","following_url":"https://api.github.com/users/kdbdallas/following{/other_user}","gists_url":"https://api.github.com/users/kdbdallas/gists{/gist_id}","starred_url":"https://api.github.com/users/kdbdallas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdbdallas/subscriptions","organizations_url":"https://api.github.com/users/kdbdallas/orgs","repos_url":"https://api.github.com/users/kdbdallas/repos","events_url":"https://api.github.com/users/kdbdallas/events{/privacy}","received_events_url":"https://api.github.com/users/kdbdallas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2016-01-07T16:47:26Z","updated_at":"2016-01-08T05:45:13Z","closed_at":null,"body":"I have a Pandora One account (so I am actually paying Pandora monthly) and I am trying to setup mopidy-pandora to use my account, but no matter what I do I always get back 'Invalid Partner Login' and the extension ends up getting disabled.\r\n\r\nThe full error dump is:\r\n```\r\nERROR    2016-01-06 21:30:41,991 [1601:PandoraBackend-7] pykka\r\n  Unhandled exception in PandoraBackend (urn:uuid:931919b5-b51a-47ad-8462-fddb201d966a):\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/dist-packages/pykka/actor.py\", line 192, in _actor_loop\r\n    self.on_start()\r\n  File \"/usr/local/lib/python2.7/dist-packages/mopidy_pandora/backend.py\", line 52, in on_start\r\n    self.api.login(self._config[\"username\"], self._config[\"password\"])\r\n  File \"/usr/local/lib/python2.7/dist-packages/pandora/client.py\", line 71, in login\r\n    return self._authenticate()\r\n  File \"/usr/local/lib/python2.7/dist-packages/pandora/client.py\", line 85, in _authenticate\r\n    xplatformAdCapable=True)\r\n  File \"/usr/local/lib/python2.7/dist-packages/pandora/transport.py\", line 47, in function\r\n    return func(*args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/pandora/transport.py\", line 234, in __call__\r\n    return self._parse_response(result)\r\n  File \"/usr/local/lib/python2.7/dist-packages/pandora/transport.py\", line 220, in _parse_response\r\n    raise PandoraException.from_code(result[\"code\"], result[\"message\"])\r\nInvalidPartnerLogin: Invalid Partner Login\r\nERROR    2016-01-06 21:30:42,024 [1601:MainThread] mopidy.commands\r\n  Actor died: PandoraBackend (urn:uuid:931919b5-b51a-47ad-8462-fddb201d966a) stopped before handling the message\r\n```\r\n\r\nMy config is as follows:\r\n```\r\n[pandora]\r\nenabled = true\r\napi_host = tuner.pandora.com/services/json/\r\npartner_encryption_key = 721^26xE22776\r\npartner_decryption_key = 20zE1E47BE57$51\r\npartner_username = iphone\r\npartner_password = P2E4FC0EAD3*878N92B2CDp34I0B1@388137C\r\npartner_device = IP01\r\npreferred_audio_quality = mediumQuality #highQuality\r\nusername = myusername\r\npassword = mypassword\r\nsort_order = date\r\nauto_setup = true\r\n### EXPERIMENTAL EVENT HANDLING IMPLEMENTATION ###\r\n#event_support_enabled = false\r\n#double_click_interval = 2.00\r\n#on_pause_resume_click = thumbs_up\r\n#on_pause_next_click = thumbs_down\r\n#on_pause_previous_click = sleep\r\n```\r\n\r\nI got the Partner encrypt/decrypt/username/password/device from the link provided in the setup details."},"comment":{"url":"https://api.github.com/repos/rectalogic/mopidy-pandora/issues/comments/169902642","html_url":"https://github.com/rectalogic/mopidy-pandora/issues/41#issuecomment-169902642","issue_url":"https://api.github.com/repos/rectalogic/mopidy-pandora/issues/41","id":169902642,"user":{"login":"jcass77","id":10268911,"avatar_url":"https://avatars.githubusercontent.com/u/10268911?v=3","gravatar_id":"","url":"https://api.github.com/users/jcass77","html_url":"https://github.com/jcass77","followers_url":"https://api.github.com/users/jcass77/followers","following_url":"https://api.github.com/users/jcass77/following{/other_user}","gists_url":"https://api.github.com/users/jcass77/gists{/gist_id}","starred_url":"https://api.github.com/users/jcass77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcass77/subscriptions","organizations_url":"https://api.github.com/users/jcass77/orgs","repos_url":"https://api.github.com/users/jcass77/repos","events_url":"https://api.github.com/users/jcass77/events{/privacy}","received_events_url":"https://api.github.com/users/jcass77/received_events","type":"User","site_admin":false},"created_at":"2016-01-08T05:45:13Z","updated_at":"2016-01-08T05:45:13Z","body":"Assuming you  are using pydora 1.6.4, it looks like ``auth.partnerLogin`` succeeds, and the failure is on ``auth.userLogin`` (line 85 of ``_pandora.client.authenticate``).\r\n\r\nThis would indicate a problem with the user account, rather than the actual partner credentials. \r\n\r\nIt's a little misleading as they both result in an *Invalid Partner Login* error message, which is perhaps something that we can try to improve."}}