KeyError: 'profile' when running
Traceback (most recent call last):
File "pokecli.py", line 120, in <module>
main()
File "pokecli.py", line 114, in main
bot.start()
File "/home/xxx/PokemonGo-Bot/bot.py", line 24, in start
self._setup_api()
File "/home/xxx/PokemonGo-Bot/bot.py", line 155, in _setup_api
player = response_dict['responses']['GET_PLAYER']['profile']
KeyError: 'profile'
I'm having this error whenever i'm trying to run the client , the response doesn't have any "profile" but a "player_data" , so this makes me wondering , is this bot outdated?
this happen, when servers are flaky and do not deliver proper response. I tried to debug into this, but when I ran it again, it worked.
If somebody has content of the response, please post it here
I think it has been changed to player_data already to accommodate the new API, or am I confusing this with something else? Maybe it would help if people checked the issues when pushing fixes.
another idea: Did complete the initial setup in the app? Or just create an account and throw that one into the bot?
WIthout proper setting up, this data might be not complete, thus the key errors
This is due to an API change.
Please use the latest dev version.