{"action":"created","issue":{"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/3078","repository_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot","labels_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/3078/labels{/name}","comments_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/3078/comments","events_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/3078/events","html_url":"https://github.com/PokemonGoF/PokemonGo-Bot/issues/3078","id":169942659,"number":3078,"title":"Bot Crashes (when evolving Pokemon?)","user":{"login":"mlussi","id":58949,"avatar_url":"https://avatars.githubusercontent.com/u/58949?v=3","gravatar_id":"","url":"https://api.github.com/users/mlussi","html_url":"https://github.com/mlussi","followers_url":"https://api.github.com/users/mlussi/followers","following_url":"https://api.github.com/users/mlussi/following{/other_user}","gists_url":"https://api.github.com/users/mlussi/gists{/gist_id}","starred_url":"https://api.github.com/users/mlussi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlussi/subscriptions","organizations_url":"https://api.github.com/users/mlussi/orgs","repos_url":"https://api.github.com/users/mlussi/repos","events_url":"https://api.github.com/users/mlussi/events{/privacy}","received_events_url":"https://api.github.com/users/mlussi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-08T14:52:36Z","updated_at":"2016-08-13T03:59:40Z","closed_at":null,"body":"### Expected Behavior\r\nContinue Running\r\n\r\n### Actual Behavior\r\nBot crashes\r\n\r\n### Steps to Reproduce\r\nStart Bot and Run\r\n\r\n### Other Information\r\nOS: Debian GNU/Linux\r\nGit Commit: 7cc524ed80a918170efcd782829ed6a94e2c4674\r\nPython Version: Python 2.7.12\r\n\r\n\r\n\r\n```Traceback (most recent call last):\r\n  File \"pokecli.py\", line 503, in <module>\r\n    main()\r\n  File \"pokecli.py\", line 89, in main\r\n    bot.tick()\r\n  File \"/home/[user]/PokemonGo/PokemonGo-Bot/pokemongo_bot/__init__.py\", line 434, in tick\r\n    if worker.work() == WorkerResult.RUNNING:\r\n  File \"/home/[user]/PokemonGo/PokemonGo-Bot/pokemongo_bot/cell_workers/evolve_pokemon.py\", line 28, in work\r\n    response_dict = self.api.get_inventory()\r\n  File \"/home/[user]/PokemonGo/PokemonGo-Bot/src/pgoapi/pgoapi/pgoapi.py\", line 122, in function\r\n    return request.call()\r\n  File \"/home/[user]/PokemonGo/PokemonGo-Bot/pokemongo_bot/api_wrapper.py\", line 106, in call\r\n    result = self._call()\r\n  File \"/home/[user]/PokemonGo/PokemonGo-Bot/pokemongo_bot/api_wrapper.py\", line 63, in _call\r\n    return PGoApiRequest.call(self)\r\n  File \"/home/[user]/PokemonGo/PokemonGo-Bot/src/pgoapi/pgoapi/pgoapi.py\", line 220, in call\r\n    response = request.request(self._api_endpoint, self._req_method_list, self.get_position())\r\n  File \"/home/[user]/PokemonGo/PokemonGo-Bot/src/pgoapi/pgoapi/rpc_api.py\", line 126, in request\r\n    request_proto = self._build_main_request(subrequests, player_position)\r\n  File \"/home/[user]/PokemonGo/PokemonGo-Bot/src/pgoapi/pgoapi/rpc_api.py\", line 216, in _build_main_request\r\n    request.auth_info.token.contents = self._auth_provider.get_access_token()\r\n  File \"/usr/local/lib/python2.7/dist-packages/google/protobuf/internal/python_message.py\", line 669, in field_setter\r\n    new_value = type_checker.CheckValue(new_value)\r\n  File \"/usr/local/lib/python2.7/dist-packages/google/protobuf/internal/type_checkers.py\", line 176, in CheckValue\r\n    raise TypeError(message)\r\nTypeError: None has type <type 'NoneType'>, but expected one of: (<type 'str'>, <type 'unicode'>)\r\n2016-08-08 16:04:28,938 [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 \"/usr/local/lib/python2.7/dist-packages/raven/transport/threaded.py\", line 174, in send_sync\r\n    super(ThreadedHTTPTransport, self).send(data, headers)\r\n  File \"/usr/local/lib/python2.7/dist-packages/raven/transport/http.py\", line 47, in send\r\n    ca_certs=self.ca_certs,\r\n  File \"/usr/local/lib/python2.7/dist-packages/raven/utils/http.py\", line 66, in urlopen\r\n    return opener.open(url, data, timeout)\r\n  File \"/usr/local/lib/python2.7/dist-packages/future/backports/urllib/request.py\", line 494, in open\r\n    response = self._open(req, data)\r\n  File \"/usr/local/lib/python2.7/dist-packages/future/backports/urllib/request.py\", line 512, in _open\r\n    '_open', req)\r\n  File \"/usr/local/lib/python2.7/dist-packages/future/backports/urllib/request.py\", line 466, in _call_chain\r\n    result = func(*args)\r\n  File \"/usr/local/lib/python2.7/dist-packages/raven/utils/http.py\", line 46, in https_open\r\n    return self.do_open(ValidHTTPSConnection, req)\r\n  File \"/usr/local/lib/python2.7/dist-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\n2016-08-08 16:04:28,991 [sentry.errors.uncaught] [ERROR] [u\"TypeError: None has type <type 'NoneType'>, but expected one of: (<type 'str'>, <type 'unicode'>)\", u'  File \"pokecli.py\", line 503, in <module>', u'  File \"pokecli.py\", line 89, in main', u'  File \"pokemongo_bot/__init__.py\", line 434, 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/dist-packages/google/protobuf/internal/python_message.py\", line 669, in field_setter', u'  File \"usr/local/lib/python2.7/dist-packages/google/protobuf/internal/type_checkers.py\", line 176, in CheckValue']```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/comments/239600447","html_url":"https://github.com/PokemonGoF/PokemonGo-Bot/issues/3078#issuecomment-239600447","issue_url":"https://api.github.com/repos/PokemonGoF/PokemonGo-Bot/issues/3078","id":239600447,"user":{"login":"RedViper9","id":20653340,"avatar_url":"https://avatars.githubusercontent.com/u/20653340?v=3","gravatar_id":"","url":"https://api.github.com/users/RedViper9","html_url":"https://github.com/RedViper9","followers_url":"https://api.github.com/users/RedViper9/followers","following_url":"https://api.github.com/users/RedViper9/following{/other_user}","gists_url":"https://api.github.com/users/RedViper9/gists{/gist_id}","starred_url":"https://api.github.com/users/RedViper9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RedViper9/subscriptions","organizations_url":"https://api.github.com/users/RedViper9/orgs","repos_url":"https://api.github.com/users/RedViper9/repos","events_url":"https://api.github.com/users/RedViper9/events{/privacy}","received_events_url":"https://api.github.com/users/RedViper9/received_events","type":"User","site_admin":false},"created_at":"2016-08-13T03:59:40Z","updated_at":"2016-08-13T03:59:40Z","body":"I think the current work around is to use a script that relaunches the bot if it exits with an error."}}
{"actor":{"display_login":"RedViper9"}}