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

Recycle item currently breaks the bot on latest dev

Open surewhynotmon opened this issue 10 years ago • 3 comments

Expected Behavior

Recycle item should work and not break the whole program

Actual Behavior

Recycle item rpc call not working properly

Steps to Reproduce

Simply starting the bot and spin a pokestop

Other Information

raceback (most recent call last): File "pokecli.py", line 503, in main() File "pokecli.py", line 89, in main bot.tick() File "pokemongo_bot/init.py", line 443, in tick if worker.work() == WorkerResult.RUNNING: File "pokemongo_bot/cell_workers/recycle_items.py", line 37, in work response_dict_recycle = self.send_recycle_item_request(item_id=item_id, count=items_recycle_count) File "pokemongo_bot/cell_workers/recycle_items.py", line 64, in send_recycle_item_request count=count File "src/pgoapi/pgoapi/pgoapi.py", line 121, in function return request.call() File "pokemongo_bot/api_wrapper.py", line 106, in call result = self._call() File "pokemongo_bot/api_wrapper.py", line 63, in _call return PGoApiRequest.call(self) File "src/pgoapi/pgoapi/pgoapi.py", line 219, in call response = request.request(self._api_endpoint, self._req_method_list, self.get_position()) File "src/pgoapi/pgoapi/rpc_api.py", line 128, in request response_dict = self._parse_main_response(response, subrequests) File "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 "src/pgoapi/pgoapi/rpc_api.py", line 376, in _parse_sub_responses request_entry = subrequests_list[i] IndexError: list index out of range

Python 2.7.11 on Ubuntu d0f60a221a8af7eaf7b41ffeeb756a636032534e

surewhynotmon avatar Aug 08 '16 19:08 surewhynotmon

@GitPupper thanks for the reply. What exactly is the change? Can't see the diff set since config.json is new file.

surewhynotmon avatar Aug 08 '16 20:08 surewhynotmon

@GitPupper seems like you changed something about keeping pokemons...which have no impact on the item filter.

surewhynotmon avatar Aug 08 '16 20:08 surewhynotmon

As there have been many updates since this issue was posted, I'm assuming this issue has been resolved. If I'm wrong, please reopen.

RedViper9 avatar Aug 11 '16 09:08 RedViper9