PokemonGo-Bot: KeyError: 'GET_INVENTORY'

Expected Behavior

Actual Behavior

Traceback (most recent call last):
  File "./pokecli.py", line 357, in <module>
    main()
  File "./pokecli.py", line 68, in main
    bot.tick()
  File "/home/lunik/PokemonGo-Bot/pokemongo_bot/__init__.py", line 64, in tick
    if worker(self).work() == WorkerResult.RUNNING:
  File "/home/lunik/PokemonGo-Bot/pokemongo_bot/cell_workers/recycle_items_worker.py", line 14, in work
    item_count_dict = self.bot.item_inventory_count('all')
  File "/home/lunik/PokemonGo-Bot/pokemongo_bot/__init__.py", line 361, in item_inventory_count
    'GET_INVENTORY']['inventory_delta']['inventory_items']
KeyError: 'GET_INVENTORY'

Steps to Reproduce

run ./run.sh in dev branch

Other Information

OS: Ubuntu Git Commit: c11af09b64df4be77257207dfd147649489c776e

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 10
  • Comments: 35 (3 by maintainers)

Most upvoted comments

after the pulling commit 47cf9db seems to be working fine now

Not sure about that, this only happened after I ran a pull request, and another account of mine running via the main branch is running fine.

And this commit did have a change to the init.py file and they introduced an api wrapper file

https://github.com/PokemonGoF/PokemonGo-Bot/commit/c11af09b64df4be77257207dfd147649489c776e

The servers are fine now, there were unstable a few hours ago but you can still run any api call you want(manually) if I can run an api call but the bot cant, its a problem with the code

Yup https://github.com/PokemonGoF/PokemonGo-Bot/commit/47cf9db53d986f78cf0cce8a2c6aa5863c29a7c8 fixes this, deffintly something with the newly added api_wrapper(since it was the only change) Totally a server issue right?/s