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

Recycle item currently breaks the bot on latest dev #3130

Closed
surewhynotmon opened this issue Aug 8, 2016 · 4 comments
Closed

Recycle item currently breaks the bot on latest dev #3130

surewhynotmon opened this issue Aug 8, 2016 · 4 comments

Comments

@surewhynotmon
Copy link

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
d0f60a2

@surewhynotmon
Copy link
Author

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

@surewhynotmon
Copy link
Author

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

@RedViper9
Copy link
Contributor

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.

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

3 participants
@RedViper9 @surewhynotmon and others