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

Fail on launch (Servers to busy?); 'bool' object has no attribute '__getitem__'

Open RolfKoenders opened this issue 10 years ago • 11 comments

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__'

RolfKoenders avatar Jul 28 '16 16:07 RolfKoenders

It's a server problem. Servers off Pokemon Go are unstable at the moment. Im waiting as well.

RoykeHD avatar Jul 28 '16 16:07 RoykeHD

same here

kscheung1228 avatar Jul 28 '16 16:07 kscheung1228

@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?

RolfKoenders avatar Jul 28 '16 16:07 RolfKoenders

yes that would be great.

RoykeHD avatar Jul 28 '16 16:07 RoykeHD

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.

sangwon04 avatar Jul 28 '16 16:07 sangwon04

I know but the server are unstable a lot of ppl are reporting that, im using CentOS

RoykeHD avatar Jul 28 '16 16:07 RoykeHD

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 😄 )

RolfKoenders avatar Jul 28 '16 16:07 RolfKoenders

try again.

RoykeHD avatar Jul 28 '16 16:07 RoykeHD

@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.

sangwon04 avatar Jul 28 '16 16:07 sangwon04

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 avatar Jul 29 '16 08:07 RolfKoenders

@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.

dneern avatar Jul 30 '16 02:07 dneern