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

'bool' object has no attribute '__getitem__'

Open sangwon04 opened this issue 10 years ago • 8 comments

Expected Behavior

Bot ran just fine for the past 12 hours. Now starting it results in an immediate crash.

Actual Behavior

[2016-07-28 07:18:22] [x] PokemonGO Bot v1.0 [2016-07-28 07:18:22] [x] Configuration initialized [2016-07-28 07:18:22] [2016-07-28 07:18:22] [x] Address found: Wapato Park [2016-07-28 07:18:22] [x] Position in-game set as: (47.1962005, -122.4553895, 0.0) [2016-07-28 07:18:22] Traceback (most recent call last): File "pokecli.py", line 220, in main() File "pokecli.py", line 206, in main bot.start() File "C:\Users\Joseph\PokemonGo-Bot\pokemongo_bot__init__.py", line 31, in start self.setup_api() File "C:\Users\Joseph\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'

Steps to Reproduce

Just run the bot.

Other Information

OS: Windows 10 Git Commit: c7ab5b03cb93b5393bebbc383545a50e8519e57a

sangwon04 avatar Jul 28 '16 14:07 sangwon04

Servers are acting iffy. Already discussed in https://github.com/PokemonGoF/PokemonGo-Bot/issues/915

I have confirmed myself that writing a small script to keep retrying to login will eventually work.

NicholasMoser avatar Jul 28 '16 14:07 NicholasMoser

The file I created didn't delete and I just had to delete it to make the bot work correctly.

Messingaroung2323 avatar Jul 28 '16 14:07 Messingaroung2323

Try this batch script:

@echo off :begin pokecli.py timeout 180 goto begin

Edit: 3 minutes might be overkill, change it to whatever you want.

NicholasMoser avatar Jul 28 '16 14:07 NicholasMoser

Then how am I able to log on from my mobile device?

sangwon04 avatar Jul 28 '16 14:07 sangwon04

@Messingaround2323 what file?

sangwon04 avatar Jul 28 '16 14:07 sangwon04

¯_(ツ)_/¯ Try the script for a while and see if it works for you like it did for myself.

NicholasMoser avatar Jul 28 '16 14:07 NicholasMoser

I do have a batch script similar to yours. Only difference is mine sleeps for 5 instead of 180.

sangwon04 avatar Jul 28 '16 14:07 sangwon04

Disregard. There was a zombie cmd process running in the background I had to kill.

sangwon04 avatar Jul 28 '16 14:07 sangwon04