Skip to content

1 hour running crash - None has type <type 'NoneType'>, but expected one of: (<type 'str'>, <type 'unicode'>) #3181

@noncicredo

Description

@noncicredo

Expected Behavior

Bot should run without crashing

Actual Behavior

Bot stops running and crashes after 1 hour, giving this error

Traceback (most recent call last):
File "pokecli.py", line 521, in
main()
File "pokecli.py", line 95, in main
bot.tick()
File "/Users/Alessio/PokemonGo-Bot/pokemongo_bot/init.py", line 441, in tick
if worker.work() == WorkerResult.RUNNING:
File "/Users/Alessio/PokemonGo-Bot/pokemongo_bot/cell_workers/evolve_pokemon.py", line 28, in work
response_dict = self.api.get_inventory()
File "/Users/Alessio/PokemonGo-Bot-Desktop/gofbot/src/pgoapi/pgoapi/pgoapi.py", line 122, in function
return request.call()
File "/Users/Alessio/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 106, in call
result = self._call()
File "/Users/Alessio/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 63, in _call
return PGoApiRequest.call(self)
File "/Users/Alessio/PokemonGo-Bot-Desktop/gofbot/src/pgoapi/pgoapi/pgoapi.py", line 220, in call
response = request.request(self._api_endpoint, self._req_method_list, self.get_position())
File "/Users/Alessio/PokemonGo-Bot-Desktop/gofbot/src/pgoapi/pgoapi/rpc_api.py", line 126, in request
request_proto = self._build_main_request(subrequests, player_position)
File "/Users/Alessio/PokemonGo-Bot-Desktop/gofbot/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/site-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/site-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'>)

I've also tried ALL the trick found about that, even adding the token on line 94, but nothing worked

Steps to Reproduce

Let the bot running until the user stops it

Other Information

OS: OSX
Last dev commit
Python Version: 2.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions