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

[ERROR] IndexError: list index out of range

Open ghost opened this issue 10 years ago • 46 comments

Traceback (most recent call last): File "pokecli.py", line 503, in main() File "pokecli.py", line 75, in main bot.start() File "/root/PokemonGo-Bot/pokemongo_bot/init.py", line 75, in start self._setup_api() File "/root/PokemonGo-Bot/pokemongo_bot/init.py", line 678, in _setup_api self.update_web_location() File "/root/PokemonGo-Bot/pokemongo_bot/init.py", line 492, in update_web_location gym_longitude=fort.get('longitude') File "/root/PokemonGo-Bot/src/pgoapi/pgoapi/pgoapi.py", line 122, in function return request.call() File "/root/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 106, in call result = self._call() File "/root/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 63, in _call return PGoApiRequest.call(self) File "/root/PokemonGo-Bot/src/pgoapi/pgoapi/pgoapi.py", line 220, in call response = request.request(self._api_endpoint, self._req_method_list, self.get_position()) File "/root/PokemonGo-Bot/src/pgoapi/pgoapi/rpc_api.py", line 129, in request response_dict = self._parse_main_response(response, subrequests) File "/root/PokemonGo-Bot/src/pgoapi/pgoapi/rpc_api.py", line 359, in _parse_main_response response_proto_dict = self._parse_sub_responses(response_proto, subrequests, response_proto_dict) File "/root/PokemonGo-Bot/src/pgoapi/pgoapi/rpc_api.py", line 376, in _parse_sub_responses request_entry = subrequests_list[i] IndexError: list index out of range

what this is? :/

ghost avatar Aug 08 '16 18:08 ghost

I just got the same thing.

Works on iOS app still, so not a ban.

SpencerCarstens avatar Aug 08 '16 18:08 SpencerCarstens

Getting this aswell. Bot runs for like 1 Minute, then exits with IndexError on that subrequests_list

Works for me now, seems to be server issues. (Germany)

tarpan2 avatar Aug 08 '16 18:08 tarpan2

Same, no changes in code or config

Kassadd avatar Aug 08 '16 18:08 Kassadd

me also get

2016-08-09 02:32:27,094 [PokemonGoBot] [INFO] Found encrypt.so! Platform: darwin Bot root directory: /Users/z4q/Code/pokemongo/bot01 2016-08-09 02:32:27,095 [PokemonGoBot] [INFO] 2016-08-09 02:32:31,235 [PokemonGoBot] [INFO] [bot_start] Starting bot... 2016-08-09 02:32:31,998 [ cli] [INFO] 2016-08-09 02:32:31,999 [ cli] [INFO] Ran for 0:00:08 2016-08-09 02:32:31,999 [ cli] [INFO] Total XP Earned: 0 Average: 0.00/h 2016-08-09 02:32:31,999 [ cli] [INFO] Travelled 0.00km 2016-08-09 02:32:31,999 [ cli] [INFO] Visited 0 stops 2016-08-09 02:32:31,999 [ cli] [INFO] Encountered 0 pokemon, 0 caught, 0 released, 0 evolved, 0 never seen before 2016-08-09 02:32:31,999 [ cli] [INFO] Threw 0 pokeballs 2016-08-09 02:32:31,999 [ cli] [INFO] Earned 0 Stardust 2016-08-09 02:32:31,999 [ cli] [INFO] 2016-08-09 02:32:31,999 [ cli] [INFO] Highest CP Pokemon: 2016-08-09 02:32:32,000 [ cli] [INFO] Most Perfect Pokemon: Traceback (most recent call last): File "pokecli.py", line 502, in main() File "pokecli.py", line 133, in main raise e IndexError: list index out of range

z4q avatar Aug 08 '16 18:08 z4q

me2 error appears since 10min ago no changed were made

Philipp59 avatar Aug 08 '16 18:08 Philipp59

Same here, just to note, I get the same error also on pokemongo-map-node, but pokemongo-bot, which is java, works fine.

EDIT: Which means this error can't be fixed here, it is probably an API problem.

omeryagmurlu avatar Aug 08 '16 18:08 omeryagmurlu

still error on me

ghost avatar Aug 08 '16 18:08 ghost

using latest dev version

ghost avatar Aug 08 '16 18:08 ghost

perhaps servers unstable. please have some patience and try later :)

stefansaraev avatar Aug 08 '16 18:08 stefansaraev

same here, last 10 minutes it crashed out, Traceback (most recent call last): File "pokecli.py", line 502, in main() File "pokecli.py", line 133, in main raise e IndexError: list index out of range 2016-08-08 20:42:12,175 [sentry.errors] [ERROR] Sentry responded with an error: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128) (url: https://app.getsentry.com/api/90254/store/) Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/raven/transport/threaded.py", line 174, in send_sync super(ThreadedHTTPTransport, self).send(data, headers) File "/usr/local/lib/python2.7/site-packages/raven/transport/http.py", line 47, in send ca_certs=self.ca_certs, File "/usr/local/lib/python2.7/site-packages/raven/utils/http.py", line 66, in urlopen return opener.open(url, data, timeout) File "/Library/Python/2.7/site-packages/future/backports/urllib/request.py", line 494, in open response = self._open(req, data) File "/Library/Python/2.7/site-packages/future/backports/urllib/request.py", line 512, in _open '_open', req) File "/Library/Python/2.7/site-packages/future/backports/urllib/request.py", line 466, in _call_chain result = func(*args) File "/usr/local/lib/python2.7/site-packages/raven/utils/http.py", line 46, in https_open return self.do_open(ValidHTTPSConnection, req) File "/Library/Python/2.7/site-packages/future/backports/urllib/request.py", line 1284, in do_open h.request(req.get_method(), req.selector, req.data, headers) File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1057, in request self._send_request(method, url, body, headers) File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1097, in _send_request self.endheaders(body) File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1053, in endheaders self._send_output(message_body) File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 895, in _send_output msg += message_body UnicodeDecodeError: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128) 2016-08-08 20:42:12,176 [sentry.errors.uncaught] [ERROR] [u'IndexError: list index out of range', u' File "pokecli.py", line 502, in ', u' File "pokecli.py", line 133, in main']

rosalf avatar Aug 08 '16 18:08 rosalf

unknown 7 incoming : D

Philipp59 avatar Aug 08 '16 18:08 Philipp59

@ocoot could you change the title to something like 'IndexError: list index out of range'? Perhaps more of those affected can see this and share info

mrthrowaway avatar Aug 08 '16 18:08 mrthrowaway

Same here, this is super weird. Here is what happens on my three bots A, B, C.

A: Ran fine throughout this episode without any problem: B and C: Crashed simultaneously when receiving an abnormally short response from the server.

I then tried to restart B and C a couple times and they kept receiving too short responses. I setup the bot to keep trying after 30 sec when that happened, but always receiving these shorter responses. Then I waited for 5-10 min, and now I can use B again but not C yet.

So to me it's clear: Niantic is playing with our bots using the couple fields of the API that we still haven't figured out to see what accounts and how many are dropping. The fact that A kept running is maybe because they changed the server response only on a limited set of accounts, so as to not disturb / flag their test to strongly. But, hey I might be completely wrong.

Mine ran for 2.5 hours before this showed up. Connection issues with the servers. If I run it again the error comes immediately. So it's probably (hopefully) something that will sort itself out.

2016-08-08 20:25:16,149 [  SpinFort] [INFO] [spun_pokestop] Spun pokestop Alien et Femme. Experience awarded: 50. Items awarded: {u'Pokeball': 3}
2016-08-08 20:25:19,187 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Majoor Bosshardtburgh - 0.06km (attraction of lure 0.14km)
2016-08-08 20:25:45,314 [pokemongo_bot.api_wrapper] [WARNING] Server seems to be busy or offline - try again - 4/15
2016-08-08 20:25:46,532 [pokemongo_bot.api_wrapper] [WARNING] Server seems to be busy or offline - try again - 5/15
2016-08-08 20:25:48,188 [pokemongo_bot.api_wrapper] [WARNING] Server seems to be busy or offline - try again - 6/15
2016-08-08 20:26:31,415 [       cli] [INFO]
2016-08-08 20:26:31,419 [       cli] [INFO] Ran for 2:25:53
2016-08-08 20:26:31,420 [       cli] [INFO] Total XP Earned: 10650  Average: 4380.44/h
2016-08-08 20:26:31,421 [       cli] [INFO] Travelled 1.66km
2016-08-08 20:26:31,422 [       cli] [INFO] Visited 41 stops
2016-08-08 20:26:31,422 [       cli] [INFO] Encountered 40 pokemon, 40 caught, 41 released, 0 evolved, 0 never seen before
2016-08-08 20:26:31,423 [       cli] [INFO] Threw 40 pokeballs
2016-08-08 20:26:31,424 [       cli] [INFO] Earned 4673 Stardust
2016-08-08 20:26:31,424 [       cli] [INFO]
2016-08-08 20:26:31,425 [       cli] [INFO] Highest CP Pokemon: Pidgeotto [CP: 765] [IV: 8/3/5] Potential: 0.36
2016-08-08 20:26:31,425 [       cli] [INFO] Most Perfect Pokemon: Magikarp [CP: 97] [IV: 12/15/13] Potential: 0.89
Traceback (most recent call last):
  File "pokecli.py", line 503, in <module>
    main()
  File "pokecli.py", line 89, in main
    bot.tick()
  File "/home/bjorn/dev/PokemonGo-Bot/pokemongo_bot/__init__.py", line 434, in tick
    if worker.work() == WorkerResult.RUNNING:
  File "/home/bjorn/dev/PokemonGo-Bot/pokemongo_bot/cell_workers/move_to_fort.py", line 82, in work
    if not step_walker.step():
  File "/home/bjorn/dev/PokemonGo-Bot/pokemongo_bot/step_walker.py", line 57, in step
    self.bot.heartbeat()
  File "/home/bjorn/dev/PokemonGo-Bot/pokemongo_bot/__init__.py", line 978, in heartbeat
    self.update_web_location()  # updates every tick
  File "/home/bjorn/dev/PokemonGo-Bot/pokemongo_bot/__init__.py", line 492, in update_web_location
    gym_longitude=fort.get('longitude')
  File "/home/bjorn/dev/PokemonGo-Bot/src/pgoapi/pgoapi/pgoapi.py", line 122, in function
    return request.call()
  File "/home/bjorn/dev/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 106, in call
    result = self._call()
  File "/home/bjorn/dev/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 63, in _call
    return PGoApiRequest.call(self)
  File "/home/bjorn/dev/PokemonGo-Bot/src/pgoapi/pgoapi/pgoapi.py", line 220, in call
    response = request.request(self._api_endpoint, self._req_method_list, self.get_position())
  File "/home/bjorn/dev/PokemonGo-Bot/src/pgoapi/pgoapi/rpc_api.py", line 129, in request
    response_dict = self._parse_main_response(response, subrequests)
  File "/home/bjorn/dev/PokemonGo-Bot/src/pgoapi/pgoapi/rpc_api.py", line 359, in _parse_main_response
    response_proto_dict = self._parse_sub_responses(response_proto, subrequests, response_proto_dict)
  File "/home/bjorn/dev/PokemonGo-Bot/src/pgoapi/pgoapi/rpc_api.py", line 376, in _parse_sub_responses
    request_entry = subrequests_list[i]
IndexError: list index out of range

scarfield avatar Aug 08 '16 18:08 scarfield

No, I don't think it is a server issue. I think that they are actively messing with it, probably experimenting their next API modification, and making sure it weeds out the intended "customers".

its working again now btw

error again. lol oke need to sleep now until the problem gone

ghost avatar Aug 08 '16 18:08 ghost

Like I said, it seems to be account dependent (my bot C still crashes on this). So, I fear that this is a prelude to the worse, and we might need the magic of 'wchill' (one of the core devs of last API fix for those who don't know) sooner than we might have liked...

Same problem here

2016-08-08 15:54:49,498 [       cli] [INFO] 
2016-08-08 15:54:49,498 [       cli] [INFO] Ran for 0:00:06
2016-08-08 15:54:49,499 [       cli] [INFO] Total XP Earned: 0  Average: 0.00/h
2016-08-08 15:54:49,499 [       cli] [INFO] Travelled 0.00km
2016-08-08 15:54:49,499 [       cli] [INFO] Visited 0 stops
2016-08-08 15:54:49,499 [       cli] [INFO] Encountered 0 pokemon, 0 caught, 0 released, 0 evolved, 0 never seen before
2016-08-08 15:54:49,499 [       cli] [INFO] Threw 0 pokeballs
2016-08-08 15:54:49,499 [       cli] [INFO] Earned 0 Stardust
2016-08-08 15:54:49,499 [       cli] [INFO] 
2016-08-08 15:54:49,499 [       cli] [INFO] Highest CP Pokemon: 
2016-08-08 15:54:49,499 [       cli] [INFO] Most Perfect Pokemon: 
Traceback (most recent call last):
  File "pokecli.py", line 502, in <module>
    main()
  File "pokecli.py", line 133, in main
    raise e
IndexError: list index out of range

renatorib avatar Aug 08 '16 18:08 renatorib

@ocoot I would recommend that your remove your image in attachement. It makes your account easily identifiable. Not that Niantic would care to address botting on a case-by-case basis, but you are better off remaining stealthy I think.

ok bro. sorry :) @AllYourBasesAreBelongToUs

ghost avatar Aug 08 '16 19:08 ghost