Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List index error during searching map cells (Just Need New Pgoapi) #3193

Closed
shivamkalra opened this issue Aug 9, 2016 · 17 comments
Closed

Comments

@shivamkalra
Copy link

shivamkalra commented Aug 9, 2016

Error Traceback

Traceback (most recent call last):                                                                                                                                                                                                                                     [103/1848]
  File "pokecli.py", line 521, in <module>
    main()
  File "pokecli.py", line 81, in main
    bot.start()
  File "/users/s6kalra/sources/PokemonGo-Bot/pokemongo_bot/__init__.py", line 82, in start
    self._setup_api()
  File "/users/s6kalra/sources/PokemonGo-Bot/pokemongo_bot/__init__.py", line 690, in _setup_api
    self.update_web_location()
  File "/users/s6kalra/sources/PokemonGo-Bot/pokemongo_bot/__init__.py", line 492, in update_web_location
    cells = self.find_close_cells(*location)
  File "/users/s6kalra/sources/PokemonGo-Bot/pokemongo_bot/__init__.py", line 541, in find_close_cells
    response_dict = self.get_map_objects(lat, lng, timestamp, cellid)
  File "/users/s6kalra/sources/PokemonGo-Bot/pokemongo_bot/__init__.py", line 1082, in get_map_objects
    cell_id=cellid
  File "/users/s6kalra/sources/PokemonGo-Bot/bot/src/pgoapi/pgoapi/pgoapi.py", line 122, in function
    return request.call()
  File "/users/s6kalra/sources/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 106, in call
    result = self._call()
  File "/users/s6kalra/sources/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 63, in _call
    return PGoApiRequest.call(self)
  File "/users/s6kalra/sources/PokemonGo-Bot/bot/src/pgoapi/pgoapi/pgoapi.py", line 220, in call
    response = request.request(self._api_endpoint, self._req_method_list, self.get_position())
  File "/users/s6kalra/sources/PokemonGo-Bot/bot/src/pgoapi/pgoapi/rpc_api.py", line 129, in request
    response_dict = self._parse_main_response(response, subrequests)
  File "/users/s6kalra/sources/PokemonGo-Bot/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 "/users/s6kalra/sources/PokemonGo-Bot/bot/src/pgoapi/pgoapi/rpc_api.py", line 376, in _parse_sub_responses
    request_entry = subrequests_list[i]
IndexError: list index out of range

Steps to Reproduce

Running with pokemongo map support, seems like some bad data in map cell causing this?

Must mention that I had to re-login on my phone application and then it started happening. May be some server side change occurred?

Other Information

OS: Arch Linux
Git Commit: a2b9fe9
Python Version: 2.7.9

@andyjunzi
Copy link

same

2 similar comments
@stephanlin
Copy link

same

@superxu
Copy link

superxu commented Aug 9, 2016

same

@middleagedman
Copy link
Contributor

Api block wave 2 incoming :(

@kittinan
Copy link

kittinan commented Aug 9, 2016

+1 save problem

OS: Ubuntu 14.04
Git Commit: a2b9fe9
Python Version: 2.7.6

@shivamkalra
Copy link
Author

@middleagedman Pokemon map is working fine. Perhaps something else?

@mjmadsen
Copy link
Contributor

mjmadsen commented Aug 9, 2016

Looks like server troubles. http://downdetector.com/status/pokemon-go

One bot is working fine (which usually means server problems).

@shivamkalra shivamkalra changed the title Bot crashes right after login and searching List index error during searching map cells Aug 9, 2016
@bigkraig
Copy link
Contributor

bigkraig commented Aug 9, 2016

fix in pogodevorg/pgoapi#59

@mjmadsen
Copy link
Contributor

mjmadsen commented Aug 9, 2016

Yeah, this is a combination of server problems and the app project not handling errors well.

@tidusvn05
Copy link

same

@bigkraig
Copy link
Contributor

bigkraig commented Aug 9, 2016

You can do this until they fix pgoapi

diff --git a/requirements.txt b/requirements.txt
index f6a22a0..c4a2544 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,6 +1,6 @@
 numpy==1.11.0
 networkx==1.11
--e git+https://github.com/keyphact/pgoapi.git@249d3be7fbbdabc7f9adea17cbc899d6549e47a2#egg=pgoapi
+-e git+https://github.com/Quantra/pgoapi.git@65f5cdfc8c3dc965b6f648243064ea9cc18b6abb#egg=pgoapi
 geopy==1.11.0
 protobuf==3.0.0b4
 requests==2.10.0

@tidusvn05
Copy link

confirmed!, server trouble, now i run fine!
thank you!

@shivamkalra
Copy link
Author

shivamkalra commented Aug 9, 2016

Can confirm @bigkraig 's version of pgoapi fixed it.
For any one with immediate fix run:

pip uninstall pgoapi && pip install -e git+https://github.com/keyphact/pgoapi.git#egg=pgoapi

@shivamkalra shivamkalra changed the title List index error during searching map cells List index error during searching map cells (Just Need New Pgoapi) Aug 9, 2016
@kittinan
Copy link

kittinan commented Aug 9, 2016

confirm after upgrade pgoapi bot working now

@stephanlin
Copy link

confirm after upgrade pgoapi bot working now +1

@BenjDG
Copy link

BenjDG commented Aug 9, 2016

COME ON. USE THAT $200 MILLION ON BETTER SERVERS! lol. :)

@pranavperfect
Copy link

bot working after pgoapi update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests