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

KeyError: 'profile' when running

Open GhaziBenDahmane opened this issue 10 years ago • 4 comments

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?

GhaziBenDahmane avatar Jul 22 '16 12:07 GhaziBenDahmane

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

berend avatar Jul 22 '16 13:07 berend

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.

ferbeb avatar Jul 22 '16 15:07 ferbeb

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

berend avatar Jul 22 '16 15:07 berend

This is due to an API change.

Please use the latest dev version.

jtdroste avatar Jul 22 '16 16:07 jtdroste