KeyError: 'GET_INVENTORY'
Expected Behavior
The application to work
Actual Behavior
(PokemonGo-Bot) jonas@moon:~/PokemonGo-Bot⟫ ./pokecli.py --config config.json
[2016-08-02 06:50:01] [x] PokemonGO Bot v1.0
[2016-08-02 06:50:01] [x] Configuration initialized
[2016-08-02 06:50:01]
[2016-08-02 06:50:01] [x] Address found: Belgium, Kortrijk
[2016-08-02 06:50:01] [x] Position in-game set as: (50.8194776, 3.2577263, 0.0)
[2016-08-02 06:50:01]
Traceback (most recent call last):
File "./pokecli.py", line 220, in <module>
main()
File "./pokecli.py", line 206, in main
bot.start()
File "/home/jonas/PokemonGo-Bot/pokemongo_bot/__init__.py", line 31, in start
self._setup_api()
File "/home/jonas/PokemonGo-Bot/pokemongo_bot/__init__.py", line 159, in _setup_api
balls_stock = self.pokeball_inventory()
File "/home/jonas/PokemonGo-Bot/pokemongo_bot/__init__.py", line 234, in pokeball_inventory
inventory_dict = inventory_req['responses']['GET_INVENTORY'][
KeyError: 'GET_INVENTORY'
Steps to Reproduce
./pokecli.py --config config.json
Other Information
OS: Linux moon 3.13.0-85-generic #129-Ubuntu SMP Thu Mar 17 20:50:15 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Git Commit: 4182e93f9bfbe471d07b74e95c55cdfbacda127b
Python Version: Python 2.7.6
Happened to me in master branch few days ago. I just launched the bot again and it worked.
Issue: #1491
works in dev.
Hello, I read in several posts that say, in dev works. But I can download dev ??? that command must write ??
@INGCRENGIFO read the wiki..
please close @MFizz is right
@maestroi I do that? https://github.com/PokemonGoF/PokemonGo-Bot/wiki/Develop-PokemonGo-Bot
@INGCRENGIFO go to your bot directory then write:
git checkout dev
then
pip install -r requirements.txt
then you should be good to go
@INGCRENGIFO for new clone:
git clone -b dev https://github.com/PokemonGoF/PokemonGo-Bot.git
@maestroi Thank you very much, sorry if my questions seem simple but the language barrier makes me a little difficult to understand the manuals.
Thank you very much @maestroi @MFizz This new version is great !!!!!! :)
I don't understand why in master config we have "relese_under_cp" while in dev is "release_below_cp". Plus there are other differences. Am I wrong?
Also happens on dev
Had a solid run for 11 hours. Then another for 45 minutes after which it kept crashing with different KeyErrors;
Crash errors in this order:
KeyError: 'inventory_delta' KeyError: 'inventory_delta' KeyError: 'player_data'
Same config that ran just fine over 11 hours. Maybe server-response related?
Other Information
OS: Windows 10 Git Commit: b8eda52478bf216fab0561eb4fcd550a4e9721f4 Python Version: Python 2.7.12
Update: shortly after i got this traceback. 502 = Bad Gateway;
Edit: Guess: This may be related to a server rebooting, but still in the loadbalancing pool.
Edit 2: Seems to be working just fine again 2 minutes later.
Traceback (most recent call last):
File "pokecli.py", line 442, in