Skip to content
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

KeyError: returns #1490

Closed
Jacquelinett opened this issue Jul 28, 2016 · 8 comments
Closed

KeyError: returns #1490

Jacquelinett opened this issue Jul 28, 2016 · 8 comments

Comments

@Jacquelinett
Copy link

Jacquelinett commented Jul 28, 2016

Expected Behavior

Not crashing

Actual Behavior

Crashing

Steps to Reproduce

Just run the bot

Other Information

OS: Ubuntu 16

From git log:
ec2b7ad

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

@banksymate
Copy link

#1491

@banksymate
Copy link

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

@Jacquelinett
Copy link
Author

Updated

@banksymate
Copy link

banksymate commented Jul 28, 2016

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.

@CattDamon
Copy link

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

@Jacquelinett
Copy link
Author

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

@banksymate
Copy link

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.

@Jacquelinett
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants