{"action":"created","issue":{"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/5567","repository_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot","labels_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/5567/labels{/name}","comments_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/5567/comments","events_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/5567/events","html_url":"https://github.com/PokemonGoF/PokemonGo-Bot/issues/5567","id":178057565,"number":5567,"title":"New Pokemon Optimizer crashes the Bot (Maybe because of buddy assignment)","user":{"login":"kureijir","id":21220094,"avatar_url":"https://avatars.githubusercontent.com/u/21220094?v=3","gravatar_id":"","url":"https://api.github.com/users/kureijir","html_url":"https://github.com/kureijir","followers_url":"https://api.github.com/users/kureijir/followers","following_url":"https://api.github.com/users/kureijir/following{/other_user}","gists_url":"https://api.github.com/users/kureijir/gists{/gist_id}","starred_url":"https://api.github.com/users/kureijir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kureijir/subscriptions","organizations_url":"https://api.github.com/users/kureijir/orgs","repos_url":"https://api.github.com/users/kureijir/repos","events_url":"https://api.github.com/users/kureijir/events{/privacy}","received_events_url":"https://api.github.com/users/kureijir/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/labels/Bug","name":"Bug","color":"ee0701"}],"state":"closed","locked":false,"assignee":{"login":"Anakin5","id":13438363,"avatar_url":"https://avatars.githubusercontent.com/u/13438363?v=3","gravatar_id":"","url":"https://api.github.com/users/Anakin5","html_url":"https://github.com/Anakin5","followers_url":"https://api.github.com/users/Anakin5/followers","following_url":"https://api.github.com/users/Anakin5/following{/other_user}","gists_url":"https://api.github.com/users/Anakin5/gists{/gist_id}","starred_url":"https://api.github.com/users/Anakin5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anakin5/subscriptions","organizations_url":"https://api.github.com/users/Anakin5/orgs","repos_url":"https://api.github.com/users/Anakin5/repos","events_url":"https://api.github.com/users/Anakin5/events{/privacy}","received_events_url":"https://api.github.com/users/Anakin5/received_events","type":"User","site_admin":false},"assignees":[{"login":"Anakin5","id":13438363,"avatar_url":"https://avatars.githubusercontent.com/u/13438363?v=3","gravatar_id":"","url":"https://api.github.com/users/Anakin5","html_url":"https://github.com/Anakin5","followers_url":"https://api.github.com/users/Anakin5/followers","following_url":"https://api.github.com/users/Anakin5/following{/other_user}","gists_url":"https://api.github.com/users/Anakin5/gists{/gist_id}","starred_url":"https://api.github.com/users/Anakin5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anakin5/subscriptions","organizations_url":"https://api.github.com/users/Anakin5/orgs","repos_url":"https://api.github.com/users/Anakin5/repos","events_url":"https://api.github.com/users/Anakin5/events{/privacy}","received_events_url":"https://api.github.com/users/Anakin5/received_events","type":"User","site_admin":false}],"milestone":null,"comments":8,"created_at":"2016-09-20T13:20:38Z","updated_at":"2016-09-21T12:08:37Z","closed_at":"2016-09-21T00:36:36Z","body":"### Expected Behavior\r\nBot run normally\r\n\r\n\r\n### Actual Behavior\r\nBot crashes right after starting\r\n\r\n\r\n### Your FULL config.json (remove your username, password, gmapkey and any other private info)\r\nhttp://pastebin.com/h4KvRDUY\r\n(The Pokemon Optimizer config is from the example file. Bot run normally without that part)\r\n\r\n\r\n### Output when issue occurred\r\n```\r\n[2016-09-20 17:32:20] [PokemonGoBot] [INFO] Starting bot...\r\n[2016-09-20 17:32:23] [CollectLevelUpReward] [INFO] Received level up reward:\r\n[2016-09-20 17:32:23] [IncubateEggs] [INFO] Eggs incubating: [4.80/5.0 km] (Eggs left: [(2.0, 8)], Incubating: 1)\r\n[2016-09-20 17:32:25] [       cli] [INFO]\r\n[2016-09-20 17:32:25] [       cli] [INFO] Ran for 0:00:46\r\n[2016-09-20 17:32:25] [       cli] [INFO] Total XP Earned: 0  Average: 0.00/h\r\n[2016-09-20 17:32:25] [       cli] [INFO] Travelled 0.00km\r\n[2016-09-20 17:32:25] [       cli] [INFO] Visited 0 stops\r\n[2016-09-20 17:32:25] [       cli] [INFO] Encountered 0 pokemon, 0 caught, 0 released, 0 evolved, 0 never seen before ()\r\n[2016-09-20 17:32:25] [       cli] [INFO] Threw 0 pokeballs\r\n[2016-09-20 17:32:25] [       cli] [INFO] Earned 0 Stardust\r\n[2016-09-20 17:32:25] [       cli] [INFO] Hatched eggs 0\r\n[2016-09-20 17:32:25] [       cli] [INFO] Next egg hatches in 0.20 km\r\n[2016-09-20 17:32:25] [       cli] [INFO]\r\n[2016-09-20 17:32:25] [       cli] [INFO] Highest CP Pokemon:\r\n[2016-09-20 17:32:25] [       cli] [INFO] Most Perfect Pokemon:\r\nTraceback (most recent call last):\r\n  File \"pokecli.py\", line 843, in <module>\r\n    main()\r\n  File \"pokecli.py\", line 202, in main\r\n    bot.tick()\r\n  File \"/root/mydata/pokemon-go-bots/python-bots/PokemonGo-Bot/pokemongo_bot/__init__.py\", line 721, in tick\r\n    if worker.work() == WorkerResult.RUNNING:\r\n  File \"/root/mydata/pokemon-go-bots/python-bots/PokemonGo-Bot/pokemongo_bot/cell_workers/pokemon_optimizer.py\", line 170, in work\r\n    if self.buddy[\"id\"] != new_buddy.unique_id:\r\nKeyError: 'id'\r\n[2016-09-20 17:32:25] [sentry.errors] [ERROR] Sentry responded with an error: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128) (url: https://app.getsentry.com/api/90254/store/)\r\nTraceback (most recent call last):\r\n  File \"/root/mydata/pokemon-go-bots/python-bots/PokemonGo-Bot/env/lib/python2.7/site-packages/raven/transport/threaded.py\", line 174, in send_sync\r\n    super(ThreadedHTTPTransport, self).send(data, headers)\r\n  File \"/root/mydata/pokemon-go-bots/python-bots/PokemonGo-Bot/env/lib/python2.7/site-packages/raven/transport/http.py\", line 47, in send\r\n    ca_certs=self.ca_certs,\r\n  File \"/root/mydata/pokemon-go-bots/python-bots/PokemonGo-Bot/env/lib/python2.7/site-packages/raven/utils/http.py\", line 66, in urlopen\r\n    return opener.open(url, data, timeout)\r\n  File \"/root/mydata/pokemon-go-bots/python-bots/PokemonGo-Bot/env/lib/python2.7/site-packages/future/backports/urllib/request.py\", line 494, in open\r\n    response = self._open(req, data)\r\n  File \"/root/mydata/pokemon-go-bots/python-bots/PokemonGo-Bot/env/lib/python2.7/site-packages/future/backports/urllib/request.py\", line 512, in _open\r\n    '_open', req)\r\n  File \"/root/mydata/pokemon-go-bots/python-bots/PokemonGo-Bot/env/lib/python2.7/site-packages/future/backports/urllib/request.py\", line 466, in _call_chain\r\n    result = func(*args)\r\n  File \"/root/mydata/pokemon-go-bots/python-bots/PokemonGo-Bot/env/lib/python2.7/site-packages/raven/utils/http.py\", line 46, in https_open\r\n    return self.do_open(ValidHTTPSConnection, req)\r\n  File \"/root/mydata/pokemon-go-bots/python-bots/PokemonGo-Bot/env/lib/python2.7/site-packages/future/backports/urllib/request.py\", line 1284, in do_open\r\n    h.request(req.get_method(), req.selector, req.data, headers)\r\n  File \"/usr/lib/python2.7/httplib.py\", line 1057, in request\r\n    self._send_request(method, url, body, headers)\r\n  File \"/usr/lib/python2.7/httplib.py\", line 1097, in _send_request\r\n    self.endheaders(body)\r\n  File \"/usr/lib/python2.7/httplib.py\", line 1053, in endheaders\r\n    self._send_output(message_body)\r\n  File \"/usr/lib/python2.7/httplib.py\", line 895, in _send_output\r\n    msg += message_body\r\nUnicodeDecodeError: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128)\r\n[2016-09-20 17:32:25] [sentry.errors.uncaught] [ERROR] [u\"KeyError: 'id'\", u'  File \"pokecli.py\", line 843, in <module>', u'  File \"pokecli.py\", line 202, in main', u'  File \"pokemongo_bot/__init__.py\", line 721, in tick', u'  File \"pokemongo_bot/cell_workers/pokemon_optimizer.py\", line 170, in work']\r\n```\r\n\r\nI haven't assigned any buddy yet. Maybe that's the cause of the error.\r\n\r\n\r\n### Steps to Reproduce\r\n\r\n\r\n\r\n### Other Information\r\nOS: \r\nArch Linux ARM\r\nBranch: \r\ndev\r\nGit Commit: \r\nd1e983f45f4687580c2a305591dd9178477be444\r\nPython Version: \r\n2.7.12"},"comment":{"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/comments/248592266","html_url":"https://github.com/PokemonGoF/PokemonGo-Bot/issues/5567#issuecomment-248592266","issue_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/5567","id":248592266,"user":{"login":"kureijir","id":21220094,"avatar_url":"https://avatars.githubusercontent.com/u/21220094?v=3","gravatar_id":"","url":"https://api.github.com/users/kureijir","html_url":"https://github.com/kureijir","followers_url":"https://api.github.com/users/kureijir/followers","following_url":"https://api.github.com/users/kureijir/following{/other_user}","gists_url":"https://api.github.com/users/kureijir/gists{/gist_id}","starred_url":"https://api.github.com/users/kureijir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kureijir/subscriptions","organizations_url":"https://api.github.com/users/kureijir/orgs","repos_url":"https://api.github.com/users/kureijir/repos","events_url":"https://api.github.com/users/kureijir/events{/privacy}","received_events_url":"https://api.github.com/users/kureijir/received_events","type":"User","site_admin":false},"created_at":"2016-09-21T12:08:37Z","updated_at":"2016-09-21T12:08:37Z","body":"Thanks :smile: "}}
{"actor":{"display_login":"kureijir"}}