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

Using 0 count pokeballs leading to potential ban #359

Open
uksparky opened this issue Sep 1, 2016 · 0 comments
Open

Using 0 count pokeballs leading to potential ban #359

uksparky opened this issue Sep 1, 2016 · 0 comments
Labels

Comments

@uksparky
Copy link

uksparky commented Sep 1, 2016

Expected Behavior

Should not use pokeballs with a zero count, use a better available ball or give up.

Actual Behavior

Tries to use pokeball that does not exist, leads to error and warning about being banned. Log below:

[2016-09-01 23:24:12] [Catch] A wild Drowzee appeared! [CP 620] [Potential 0.44]
[2016-09-01 23:24:20] [Catch] Using Great Ball... (0 left!)
[2016-09-01 23:24:33] [Catch] Using Great Ball... (0 left!)
Traceback (most recent call last):
File "pokecli.py", line 88, in
main()
File "pokecli.py", line 80, in main
bot.run()
File "/Users/mick/Documents/OpenPoGoBot/pokemongo_bot/bot.py", line 140, in run
self.stepper.current_lng
File "/Users/mick/Documents/OpenPoGoBot/pokemongo_bot/bot.py", line 160, in work_on_cells
self.fire("pokemon_found", encounters=encounters)
File "/Users/mick/Documents/OpenPoGoBot/pokemongo_bot/bot.py", line 166, in fire
self.event_manager.fire_with_context(event, self, _args, *_kwargs)
File "/Users/mick/Documents/OpenPoGoBot/pokemongo_bot/event_manager.py", line 118, in fire_with_context
return self.fire(event_name, _args, *_kwargs)
File "/Users/mick/Documents/OpenPoGoBot/pokemongo_bot/event_manager.py", line 112, in fire
return self.events[event_name].fire(_args, *_kwargs)
File "/Users/mick/Documents/OpenPoGoBot/pokemongo_bot/event_manager.py", line 68, in fire
return_dict = listener(**listener_args)
File "./plugins/catch_pokemon/init.py", line 98, in pokemon_found
should_continue_throwing = self.throw_pokeball(bot, encounter_id, pokeball, spawn_point_id, pokemon, pos)
File "./plugins/catch_pokemon/init.py", line 117, in throw_pokeball
response = bot.api_wrapper.call()
File "/Users/mick/Documents/OpenPoGoBot/api/init.py", line 132, in call
raise AccountBannedException()
api.exceptions.AccountBannedException: [API] Status code 3 received. This may mean that your account is permanently banned. See https://www.reddit.com/r/pokemongodev/comments/4xkqmq/new_ban_types_and_their_causes/ for details.

Steps to Reproduce

Just usual usage when no great balls have been found in pokestops leading to exhaustion.

Other Information

OS: Mac
Git Commit:

@niicojs niicojs added the bug label Sep 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants