{"action":"created","issue":{"url":"https://api.github.com/repos/noahc3/PokemonGoTeamManager/issues/2","repository_url":"https://api.github.com/repos/noahc3/PokemonGoTeamManager","labels_url":"https://api.github.com/repos/noahc3/PokemonGoTeamManager/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/noahc3/PokemonGoTeamManager/issues/2/comments","events_url":"https://api.github.com/repos/noahc3/PokemonGoTeamManager/issues/2/events","html_url":"https://github.com/noahc3/PokemonGoTeamManager/issues/2","id":168207865,"number":2,"title":"Error Parsing Response: Malformed Response / Request Throttling","user":{"login":"kanestapler","id":1622388,"avatar_url":"https://avatars.githubusercontent.com/u/1622388?v=3","gravatar_id":"","url":"https://api.github.com/users/kanestapler","html_url":"https://github.com/kanestapler","followers_url":"https://api.github.com/users/kanestapler/followers","following_url":"https://api.github.com/users/kanestapler/following{/other_user}","gists_url":"https://api.github.com/users/kanestapler/gists{/gist_id}","starred_url":"https://api.github.com/users/kanestapler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kanestapler/subscriptions","organizations_url":"https://api.github.com/users/kanestapler/orgs","repos_url":"https://api.github.com/users/kanestapler/repos","events_url":"https://api.github.com/users/kanestapler/events{/privacy}","received_events_url":"https://api.github.com/users/kanestapler/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/noahc3/PokemonGoTeamManager/labels/bug","name":"bug","color":"ee0701"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-07-28T22:04:45Z","updated_at":"2016-07-29T07:07:42Z","closed_at":null,"body":"Here is my screenshot. Paused at the end of log in script\r\n\r\n![capture](https://cloud.githubusercontent.com/assets/1622388/17230590/a0962048-54e2-11e6-8298-61485c162efd.PNG)\r\n\r\nLooked into it. The API throws an error at line #185 in the session.py\r\n\r\nBlock here: \r\n```\r\n# Parse the default responses\r\n    def parseDefault(self, res):\r\n        try:\r\n            logging.info('HERE', res)\r\n            self._state.eggs.ParseFromString(res.returns[1])\r\n            self._state.inventory.ParseFromString(res.returns[2])\r\n            self._state.badges.ParseFromString(res.returns[3])\r\n            self._state.settings.ParseFromString(res.returns[4])\r\n        except Exception as e:\r\n            logging.error(e)\r\n            raise GeneralPogoException(\"Error parsing response. Malformed response\")\r\n\r\n        # Finally make inventory usable\r\n        items = self._state.inventory.inventory_delta.inventory_items\r\n        self.inventory = Inventory(items)\r\n```\r\n\r\n`res.returns` either doesn't exist or the array doesn't have that many items in it.\r\n\r\nI'm not even sure if this is your apps problem, but it hasn't happened with any other work I've done with this API"},"comment":{"url":"https://api.github.com/repos/noahc3/PokemonGoTeamManager/issues/comments/236110223","html_url":"https://github.com/noahc3/PokemonGoTeamManager/issues/2#issuecomment-236110223","issue_url":"https://api.github.com/repos/noahc3/PokemonGoTeamManager/issues/2","id":236110223,"user":{"login":"noahc3","id":6082749,"avatar_url":"https://avatars.githubusercontent.com/u/6082749?v=3","gravatar_id":"","url":"https://api.github.com/users/noahc3","html_url":"https://github.com/noahc3","followers_url":"https://api.github.com/users/noahc3/followers","following_url":"https://api.github.com/users/noahc3/following{/other_user}","gists_url":"https://api.github.com/users/noahc3/gists{/gist_id}","starred_url":"https://api.github.com/users/noahc3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noahc3/subscriptions","organizations_url":"https://api.github.com/users/noahc3/orgs","repos_url":"https://api.github.com/users/noahc3/repos","events_url":"https://api.github.com/users/noahc3/events{/privacy}","received_events_url":"https://api.github.com/users/noahc3/received_events","type":"User","site_admin":false},"created_at":"2016-07-29T07:07:41Z","updated_at":"2016-07-29T07:07:41Z","body":"Gonna try throwing a .5 second sleep in between each api call and see if that solves anything."}}
{"actor":{"display_login":"noahc3"}}