Fail on launch (Servers to busy?); 'bool' object has no attribute '__getitem__'
Expected Behavior
Start being a bot.
Actual Behavior
Crashing
Steps to Reproduce
Just launch the bot.
Other Information
OS: Linux, Ubuntu Git Commit: c7ab5b03cb93b5393bebbc383545a50e8519e57a
Stacktrace
ubuntu@hostname:~/PokemonGo-Bot$ python pokecli.py
[2016-07-28 16:06:25] [x] PokemonGO Bot v1.0
[2016-07-28 16:06:25] [x] Configuration initialized
[2016-07-28 16:06:25] [x] Coordinates found in passed in location, not geocoding.
[2016-07-28 16:06:25]
[2016-07-28 16:06:25] [x] Address found: 52.257067, 5.224954
[2016-07-28 16:06:25] [x] Position in-game set as: (52.257067, 5.224954, 0.0)
[2016-07-28 16:06:25]
Traceback (most recent call last):
File "pokecli.py", line 220, in <module>
main()
File "pokecli.py", line 206, in main
bot.start()
File "/home/ubuntu/PokemonGo-Bot/pokemongo_bot/__init__.py", line 31, in start
self._setup_api()
File "/home/ubuntu/PokemonGo-Bot/pokemongo_bot/__init__.py", line 151, in _setup_api
player = response_dict['responses']['GET_PLAYER']['player_data']
TypeError: 'bool' object has no attribute '__getitem__'
It's a server problem. Servers off Pokemon Go are unstable at the moment. Im waiting as well.
same here
@Roydeking52 Ah oke.
Would be nice if we can make some sort of checking. If its a timeout to go check at a service which checks if its down or not? So we can provide a better error message?
yes that would be great.
Dealt with this earlier this morning. Make sure you don't have any rogue/zombie shell sessions that might have any remnants of the script running. I had to kill all shell sessions and restarting the bot got me up and running again.
I know but the server are unstable a lot of ppl are reporting that, im using CentOS
Just a moment ago i got this message:
[2016-07-28 16:40:25] Login Error, server busy
(Still not running though) (Edit 2 minutes later, its running now 😄 )
try again.
@Roydeking52 then build a quick bash script to run the script, timeout for x minutes, then run the script again. Then you don't have to ever worry about running the script manually each time it fails due to server related issues.
It will start again from where it initially started. Isn't it strange it will immediately jump back to that position? Would be cool to save last position walked to or last in game position and start again from there. That will also help preventing detection?
@RolfKoenders it says here: https://github.com/PokemonGoF/PokemonGo-Bot/wiki/Configuration-files that when the location_cache is set to true "Bot will start at last known location if you do not have location set in the config" but I don't know how to make it cache a location.