-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bot Crashes (when evolving Pokemon?) #3078
Comments
As there have been many updates since this issue was posted, I'm assuming this issue has been resolved. If I'm wrong, please reopen. |
Please reopen Expected BehaviorKeep running Actual BehaviorBot crashes after the summary is printed Steps to ReproduceRun the bot for about 1 hour and it happens Other InformationRun in docker built with given Dockfile 2016-08-13 01:53:52,722 [ cli] [INFO] |
I think the current work around is to use a script that relaunches the bot if it exits with an error. |
No problem when using the master branch. Only happen with the dev branch. Now trying the --restart=always option of docker run command as a work around. Not sure if it will work as expected. Will update the result. |
@IanFang your issue is different to this one, please create a separate issue for it (after updating and trying again of course) |
Expected Behavior
Continue Running
Actual Behavior
Bot crashes
Steps to Reproduce
Start Bot and Run
Other Information
OS: Debian GNU/Linux
Git Commit: 7cc524e
Python Version: Python 2.7.12
Traceback (most recent call last): File "pokecli.py", line 503, in <module> main() File "pokecli.py", line 89, in main bot.tick() File "/home/[user]/PokemonGo/PokemonGo-Bot/pokemongo_bot/__init__.py", line 434, in tick if worker.work() == WorkerResult.RUNNING: File "/home/[user]/PokemonGo/PokemonGo-Bot/pokemongo_bot/cell_workers/evolve_pokemon.py", line 28, in work response_dict = self.api.get_inventory() File "/home/[user]/PokemonGo/PokemonGo-Bot/src/pgoapi/pgoapi/pgoapi.py", line 122, in function return request.call() File "/home/[user]/PokemonGo/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 106, in call result = self._call() File "/home/[user]/PokemonGo/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 63, in _call return PGoApiRequest.call(self) File "/home/[user]/PokemonGo/PokemonGo-Bot/src/pgoapi/pgoapi/pgoapi.py", line 220, in call response = request.request(self._api_endpoint, self._req_method_list, self.get_position()) File "/home/[user]/PokemonGo/PokemonGo-Bot/src/pgoapi/pgoapi/rpc_api.py", line 126, in request request_proto = self._build_main_request(subrequests, player_position) File "/home/[user]/PokemonGo/PokemonGo-Bot/src/pgoapi/pgoapi/rpc_api.py", line 216, in _build_main_request request.auth_info.token.contents = self._auth_provider.get_access_token() File "/usr/local/lib/python2.7/dist-packages/google/protobuf/internal/python_message.py", line 669, in field_setter new_value = type_checker.CheckValue(new_value) File "/usr/local/lib/python2.7/dist-packages/google/protobuf/internal/type_checkers.py", line 176, in CheckValue raise TypeError(message) TypeError: None has type <type 'NoneType'>, but expected one of: (<type 'str'>, <type 'unicode'>) 2016-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/) Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/raven/transport/threaded.py", line 174, in send_sync super(ThreadedHTTPTransport, self).send(data, headers) File "/usr/local/lib/python2.7/dist-packages/raven/transport/http.py", line 47, in send ca_certs=self.ca_certs, File "/usr/local/lib/python2.7/dist-packages/raven/utils/http.py", line 66, in urlopen return opener.open(url, data, timeout) File "/usr/local/lib/python2.7/dist-packages/future/backports/urllib/request.py", line 494, in open response = self._open(req, data) File "/usr/local/lib/python2.7/dist-packages/future/backports/urllib/request.py", line 512, in _open '_open', req) File "/usr/local/lib/python2.7/dist-packages/future/backports/urllib/request.py", line 466, in _call_chain result = func(*args) File "/usr/local/lib/python2.7/dist-packages/raven/utils/http.py", line 46, in https_open return self.do_open(ValidHTTPSConnection, req) File "/usr/local/lib/python2.7/dist-packages/future/backports/urllib/request.py", line 1284, in do_open h.request(req.get_method(), req.selector, req.data, headers) File "/usr/lib/python2.7/httplib.py", line 1057, in request self._send_request(method, url, body, headers) File "/usr/lib/python2.7/httplib.py", line 1097, in _send_request self.endheaders(body) File "/usr/lib/python2.7/httplib.py", line 1053, in endheaders self._send_output(message_body) File "/usr/lib/python2.7/httplib.py", line 895, in _send_output msg += message_body UnicodeDecodeError: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128) 2016-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']
The text was updated successfully, but these errors were encountered: