{"action":"created","issue":{"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/3851","repository_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot","labels_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/3851/labels{/name}","comments_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/3851/comments","events_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/3851/events","html_url":"https://github.com/PokemonGoF/PokemonGo-Bot/issues/3851","id":171011029,"number":3851,"title":"[ERROR] [u\"TypeError: None has type , but expected one of: (, )","user":{"login":"IanFang","id":4743898,"avatar_url":"https://avatars.githubusercontent.com/u/4743898?v=3","gravatar_id":"","url":"https://api.github.com/users/IanFang","html_url":"https://github.com/IanFang","followers_url":"https://api.github.com/users/IanFang/followers","following_url":"https://api.github.com/users/IanFang/following{/other_user}","gists_url":"https://api.github.com/users/IanFang/gists{/gist_id}","starred_url":"https://api.github.com/users/IanFang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IanFang/subscriptions","organizations_url":"https://api.github.com/users/IanFang/orgs","repos_url":"https://api.github.com/users/IanFang/repos","events_url":"https://api.github.com/users/IanFang/events{/privacy}","received_events_url":"https://api.github.com/users/IanFang/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/labels/help%20to%20test%20please","name":"help to test please","color":"f9d0c4"},{"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/labels/needs%20more%20information","name":"needs more information","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-13T14:24:39Z","updated_at":"2016-08-14T20:07:39Z","closed_at":null,"body":"### Expected Behavior\r\nKeep running\r\n\r\n### Actual Behavior\r\nBot crashes after the summary is printed\r\n\r\n### Config file\r\n<pre>\r\n{\r\n    \"auth_service\": \"google\",\r\n    \"username\": \"\",\r\n    \"password\": \"\",\r\n    \"location\": \"\",\r\n    \"gmapkey\": \"AIzaSyAiaCNU43hHoRQJXyHCra_1goXn-V4FTkg\",\r\n    \"libencrypt_location\": \"\",\r\n    \"tasks\": [\r\n      {\r\n        \"type\": \"HandleSoftBan\"\r\n      },\r\n      {\r\n        \"type\": \"SleepSchedule\",\r\n        \"config\": {\r\n          \"enabled\": false,\r\n          \"time\": \"22:54\",\r\n          \"duration\":\"7:46\",\r\n          \"time_random_offset\": \"00:24\",\r\n          \"duration_random_offset\": \"00:43\"\r\n        }\r\n      },\r\n      {\r\n        \"type\": \"CollectLevelUpReward\"\r\n      },\r\n      {\r\n        \"type\": \"IncubateEggs\",\r\n        \"config\": {\r\n          \"longer_eggs_first\": true\r\n        }\r\n      },\r\n      {\r\n        \"type\": \"EvolvePokemon\",\r\n        \"config\": {\r\n            \"evolve_all\": \"none\",\r\n            \"first_evolve_by\": \"iv\",\r\n            \"evolve_above_cp\": 10,\r\n            \"evolve_above_iv\": 0.1,\r\n            \"logic\": \"or\",\r\n            \"evolve_speed\": 20,\r\n            \"use_lucky_egg\": false\r\n        }\r\n      },\r\n      {\r\n        \"type\": \"TransferPokemon\"\r\n      },\r\n      {\r\n        \"type\": \"RecycleItems\",\r\n        \"config\": {\r\n          \"item_filter\": {\r\n            \"Pokeball\":       { \"keep\" : 40 },\r\n            \"Greatball\":       { \"keep\" : 60 },\r\n            \"Ultraball\":       { \"keep\" : 60 },\r\n            \"Potion\":         { \"keep\" : 5 },\r\n            \"Super Potion\":   { \"keep\" : 10 },\r\n            \"Hyper Potion\":   { \"keep\" : 10 },\r\n            \"Revive\":         { \"keep\" : 10 },\r\n            \"Razz Berry\":     { \"keep\" : 30 }\r\n          }\r\n        }\r\n      },\r\n      {\r\n        \"type\": \"NicknamePokemon\",\r\n        \"config\": {\r\n          \"nickname_template\": \"{name:.8s}_{iv_pct}\"\r\n        }\r\n      },\r\n      {\r\n        \"type\": \"CatchVisiblePokemon\"\r\n      },\r\n      {\r\n        \"type\": \"SpinFort\"\r\n      },\r\n      {\r\n        \"type\": \"MoveToFort\",\r\n        \"config\": {\r\n            \"lure_attraction\": false,\r\n            \"lure_max_distance\": 2000\r\n        }\r\n      },\r\n      {\r\n        \"type\": \"FollowSpiral\",\r\n        \"config\": {\r\n          \"diameter\": 4,\r\n          \"step_size\": 70\r\n        }\r\n      }\r\n    ],\r\n    \"map_object_cache_time\": 5,\r\n    \"forts\": {\r\n      \"avoid_circles\": true,\r\n      \"max_circle_size\": 50\r\n    },\r\n    \"websocket_server\": false,\r\n    \"walk\": 11,\r\n    \"action_wait_min\": 1,\r\n    \"action_wait_max\": 4,\r\n    \"debug\": false,\r\n    \"test\": false,\r\n    \"health_record\": true,\r\n    \"location_cache\": true,\r\n    \"distance_unit\": \"km\",\r\n    \"reconnecting_timeout\": 15,\r\n    \"logging_color\": true,\r\n    \"catch\": {\r\n      \"any\": { \"always_catch\" : true }\r\n    },\r\n    \"catch_throw_parameters\": {\r\n      \"excellent_rate\": 0.1,\r\n      \"great_rate\": 0.5,\r\n      \"nice_rate\": 0.3,\r\n      \"normal_rate\": 0.1,\r\n      \"spin_success_rate\" : 0.6\r\n    },\r\n    \"release\": {\r\n      \"any\": {\"keep_best_cp\": 1, \"keep_best_iv\": 1},\r\n      \"Growlithe\": {\"keep_best_iv\": 3},\r\n      \"Dragonair\": {\"keep_best_iv\": 3},\r\n      \"Grimer\": {\"keep_best_iv\": 3},\r\n      \"Magikarp\": {\"keep_best_iv\": 3},\r\n      \"Exeggcute\": {\"keep_best_iv\": 3},\r\n      \"Eevee\": {\"keep_best_iv\": 3},\r\n\r\n      \"Weedle\": {\"keep_best_iv\": 10},\r\n      \"Pidgey\": {\"keep_best_iv\": 15},\r\n      \"Caterpie\": {\"keep_best_iv\": 10},\r\n      \"Rattata\": {\"keep_best_iv\": 10}\r\n\r\n    },\r\n    \"vips\" : {\r\n         \"Any pokemon put here directly force to use Berry & Best Ball to capture, to secure the capture rate!\": {},\r\n        \"any\": {\"catch_above_cp\": 1200, \"catch_above_iv\": 0.9, \"logic\": \"or\" },\r\n        \"Lapras\": {},\r\n        \"Moltres\": {},\r\n        \"Zapdos\": {},\r\n        \"Articuno\": {},\r\n\r\n        \"// S-Tier pokemons (if pokemon can be evolved into tier, list the representative)\": {},\r\n        \"Mewtwo\": {},\r\n        \"Dragonite\": {},\r\n        \"Snorlax\": {},\r\n        \"// Mew evolves to Mewtwo\": {},\r\n        \"Mew\": {},\r\n        \"Arcanine\": {},\r\n        \"Vaporeon\": {},\r\n        \"Gyarados\": {},\r\n        \"Exeggutor\": {},\r\n        \"Muk\": {},\r\n        \"Weezing\": {},\r\n        \"Flareon\": {},\r\n        \"Jolteon\": {}\r\n\r\n    }\r\n}\r\n</pre>\r\n### Steps to Reproduce\r\nRun the bot for about 1 hour and it happens\r\n\r\n### Other Information\r\n\r\nRun in docker built with given Dockfile\r\ndev branch\r\ncommit: ee9c6f3\r\n\r\n<pre>\r\n2016-08-13 01:53:52,722 [ cli] [INFO]\r\n2016-08-13 01:53:52,723 [ cli] [INFO] Ran for 0:59:46\r\n2016-08-13 01:53:52,723 [ cli] [INFO] Total XP Earned: 19265 Average: 19338.61/h\r\n2016-08-13 01:53:52,723 [ cli] [INFO] Travelled 4.05km\r\n2016-08-13 01:53:52,723 [ cli] [INFO] Visited 78 stops\r\n2016-08-13 01:53:52,723 [ cli] [INFO] Encountered 45 pokemon, 44 caught, 45 released, 9 evolved, 1 never seen before\r\n2016-08-13 01:53:52,723 [ cli] [INFO] Threw 51 pokeballs\r\n2016-08-13 01:53:52,723 [ cli] [INFO] Earned 6000 Stardust\r\n2016-08-13 01:53:52,723 [ cli] [INFO]\r\n2016-08-13 01:53:52,723 [ cli] [INFO] Highest CP Pokemon: Tangela [CP: 901] [IV: 14/3/14] Potential: 0.69\r\n2016-08-13 01:53:52,723 [ cli] [INFO] Most Perfect Pokemon: Venonat [CP: 347] [IV: 14/14/14] Potential: 0.93\r\nTraceback (most recent call last):\r\nFile \"pokecli.py\", line 521, in\r\nmain()\r\nFile \"pokecli.py\", line 95, in main\r\nbot.tick()\r\nFile \"/usr/src/app/pokemongo_bot/init.py\", line 441, in tick\r\nif worker.work() == WorkerResult.RUNNING:\r\nFile \"/usr/src/app/pokemongo_bot/cell_workers/evolve_pokemon.py\", line 28, in work\r\nresponse_dict = self.api.get_inventory()\r\nFile \"/usr/src/app/src/pgoapi/pgoapi/pgoapi.py\", line 122, in function\r\nreturn request.call()\r\nFile \"/usr/src/app/pokemongo_bot/api_wrapper.py\", line 106, in call\r\nresult = self.call()\r\nFile \"/usr/src/app/pokemongo_bot/api_wrapper.py\", line 63, in call\r\nreturn PGoApiRequest.call(self)\r\nFile \"/usr/src/app/src/pgoapi/pgoapi/pgoapi.py\", line 220, in call\r\nresponse = request.request(self._api_endpoint, self._req_method_list, self.get_position())\r\nFile \"/usr/src/app/src/pgoapi/pgoapi/rpc_api.py\", line 126, in request\r\nrequest_proto = self._build_main_request(subrequests, player_position)\r\nFile \"/usr/src/app/src/pgoapi/pgoapi/rpc_api.py\", line 216, in _build_main_request\r\nrequest.auth_info.token.contents = self._auth_provider.get_access_token()\r\nFile \"/usr/local/lib/python2.7/site-packages/google/protobuf/internal/python_message.py\", line 669, in field_setter\r\nnew_value = type_checker.CheckValue(new_value)\r\nFile \"/usr/local/lib/python2.7/site-packages/google/protobuf/internal/type_checkers.py\", line 176, in CheckValue\r\nraise TypeError(message)\r\nTypeError: None has type , but expected one of: (, )\r\n2016-08-13 01:53:52,730 [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\nFile \"/usr/local/lib/python2.7/site-packages/raven/transport/threaded.py\", line 174, in send_sync\r\nsuper(ThreadedHTTPTransport, self).send(data, headers)\r\nFile \"/usr/local/lib/python2.7/site-packages/raven/transport/http.py\", line 47, in send\r\nca_certs=self.ca_certs,\r\nFile \"/usr/local/lib/python2.7/site-packages/raven/utils/http.py\", line 66, in urlopen\r\nreturn opener.open(url, data, timeout)\r\nFile \"/usr/local/lib/python2.7/site-packages/future/backports/urllib/request.py\", line 494, in open\r\nresponse = self._open(req, data)\r\nFile \"/usr/local/lib/python2.7/site-packages/future/backports/urllib/request.py\", line 512, in _open\r\n'_open', req)\r\nFile \"/usr/local/lib/python2.7/site-packages/future/backports/urllib/request.py\", line 466, in _call_chain\r\nresult = func(*args)\r\nFile \"/usr/local/lib/python2.7/site-packages/raven/utils/http.py\", line 46, in https_open\r\nreturn self.do_open(ValidHTTPSConnection, req)\r\nFile \"/usr/local/lib/python2.7/site-packages/future/backports/urllib/request.py\", line 1284, in do_open\r\nh.request(req.get_method(), req.selector, req.data, headers)\r\nFile \"/usr/local/lib/python2.7/httplib.py\", line 1057, in request\r\nself._send_request(method, url, body, headers)\r\nFile \"/usr/local/lib/python2.7/httplib.py\", line 1097, in _send_request\r\nself.endheaders(body)\r\nFile \"/usr/local/lib/python2.7/httplib.py\", line 1053, in endheaders\r\nself._send_output(message_body)\r\nFile \"/usr/local/lib/python2.7/httplib.py\", line 895, in _send_output\r\nmsg += message_body\r\nUnicodeDecodeError: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128)\r\n2016-08-13 01:53:52,730 [sentry.errors.uncaught] [ERROR] [u\"TypeError: None has type , but expected one of: (, )\", u' File \"pokecli.py\", line 521, in ', u' File \"pokecli.py\", line 95, in main', u' File \"pokemongo_bot/__init.py\", line 441, in tick', u' File \"pokemongo_bot/cell_workers/evolve_pokemon.py\", line 28, in work', u' File \"pgoapi/pgoapi.py\", line 122, in function', u' File \"pokemongo_bot/api_wrapper.py\", line 106, in call', u' File \"pokemongo_bot/api_wrapper.py\", line 63, in _call', u' File \"pgoapi/pgoapi.py\", line 220, in call', u' File \"pgoapi/rpc_api.py\", line 126, in request', u' File \"pgoapi/rpc_api.py\", line 216, in _build_main_request', u' File \"/usr/local/lib/python2.7/site-packages/google/protobuf/internal/python_message.py\", line 669, in field_setter', u' File \"/usr/local/lib/python2.7/site-packages/google/protobuf/internal/type_checkers.py\", line 176, in CheckValue']\r\n</pre>"},"comment":{"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/comments/239693860","html_url":"https://github.com/PokemonGoF/PokemonGo-Bot/issues/3851#issuecomment-239693860","issue_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/3851","id":239693860,"user":{"login":"IanFang","id":4743898,"avatar_url":"https://avatars.githubusercontent.com/u/4743898?v=3","gravatar_id":"","url":"https://api.github.com/users/IanFang","html_url":"https://github.com/IanFang","followers_url":"https://api.github.com/users/IanFang/followers","following_url":"https://api.github.com/users/IanFang/following{/other_user}","gists_url":"https://api.github.com/users/IanFang/gists{/gist_id}","starred_url":"https://api.github.com/users/IanFang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IanFang/subscriptions","organizations_url":"https://api.github.com/users/IanFang/orgs","repos_url":"https://api.github.com/users/IanFang/repos","events_url":"https://api.github.com/users/IanFang/events{/privacy}","received_events_url":"https://api.github.com/users/IanFang/received_events","type":"User","site_admin":false},"created_at":"2016-08-14T20:07:39Z","updated_at":"2016-08-14T20:07:39Z","body":"The problem is gone. No idea why. Thank you guys!"}}
{"actor":{"display_login":"IanFang"}}