PokemonGo-Bot icon indicating copy to clipboard operation
PokemonGo-Bot copied to clipboard

KeyError: returns

Open Jacquelinett opened this issue 10 years ago • 8 comments

Expected Behavior

Not crashing

Actual Behavior

Crashing

Steps to Reproduce

Just run the bot

Other Information

OS: Ubuntu 16

From git log: ec2b7add95da6bc580035d8d4c472c1d41e439a6

Traceback (most recent call last): File "pokecli.py", line 220, in main() File "pokecli.py", line 206, in main bot.start() File "/home/jacqueline/Documents/Projects/PokemonGo-Bot/pokemongo_bot/init.py", line 31, in start self._setup_api() File "/home/jacqueline/Documents/Projects/PokemonGo-Bot/pokemongo_bot/init.py", line 186, in _setup_api self.update_inventory() File "/home/jacqueline/Documents/Projects/PokemonGo-Bot/pokemongo_bot/init.py", line 208, in update_inventory response = self.api.call() File "/home/jacqueline/Documents/Projects/PokemonGo-Bot/src/pgoapi/pgoapi/pgoapi.py", line 80, in call response = request.request(api_endpoint, self._req_method_list, player_position) File "/home/jacqueline/Documents/Projects/PokemonGo-Bot/src/pgoapi/pgoapi/rpc_api.py", line 93, in request response_dict = self._parse_main_response(response, subrequests) File "/home/jacqueline/Documents/Projects/PokemonGo-Bot/src/pgoapi/pgoapi/rpc_api.py", line 201, in _parse_main_response response_proto_dict = self._parse_sub_responses(response_proto, subrequests, response_proto_dict) File "/home/jacqueline/Documents/Projects/PokemonGo-Bot/src/pgoapi/pgoapi/rpc_api.py", line 208, in _parse_sub_responses del response_proto_dict['returns'] KeyError: 'returns'

Saw another person with the same issue that seemed to be solved by getting the latest commit and reinstall requirement, already done that but still doesn't work

Jacquelinett avatar Jul 28 '16 21:07 Jacquelinett

#1491

banksymate avatar Jul 28 '16 21:07 banksymate

Run git log -n 1 --pretty=format:"%H"' and send the output, you didn't specify it in the post.

banksymate avatar Jul 28 '16 21:07 banksymate

Updated

Jacquelinett avatar Jul 28 '16 21:07 Jacquelinett

Most likely a problem with Pokemon GO servers being down, it's happening to multiple people. Assuming your output is a little bit different than #1491 because of you being on master branch.

banksymate avatar Jul 28 '16 21:07 banksymate

I'm getting this same error. I updated the requirements and still nothing.

CattDamon avatar Jul 29 '16 00:07 CattDamon

I switched to Dev branch and update requirement and get the new config and it work

Jacquelinett avatar Jul 29 '16 00:07 Jacquelinett

Please close this issue then.

To fix: Switch to dev branch. (git clone -b dev https://github.com/PokemonGoF/PokemonGo-Bot) cd PokemonGo-Bot pip install -r requirements.txt Edit your config(s) and try running.

banksymate avatar Jul 29 '16 01:07 banksymate

Well okay, it mean it is only fixed on the dev branch though, master is still messed up.

But if you want me to to close it I will.

Jacquelinett avatar Jul 29 '16 01:07 Jacquelinett