PokemonGoF / PokemonGo-Bot

The Pokemon Go Bot, baking with community.
MIT License
3.87k stars 1.54k forks source link

Bot is constantly relogging when hits desired lvl #5217

Closed Shentang closed 8 years ago

Shentang commented 8 years ago

Expected Behavior

Bot should stop and not restart upon hitting desired lvl

Actual Behavior

Bot constantly restarts when hitting desired lvl

Your FULL config.json (remove your username, password, gmapkey and any other private info)

I'll post the part that makes the bot stop at desired level, the rest doesn't matter anyways.

  {
    "type": "CollectLevelUpReward",
    "config": {
      "collect_reward": true,
      "level_limit": 20

Output when issue occurred

" You have reached your target level! Exiting now."

Steps to Reproduce

  1. Set "level_limit" in config to something like 1 in task CollectLevelUpReward
  2. Start the bot

    Other Information

OS: Debian Branch: Master Python Version: 2.7

Bot log

2016-09-05 18:40:46,645 [ cli] [INFO] PokemonGO Bot v1.0 2016-09-05 18:40:46,651 [ cli] [INFO] commit: ca94424f 2016-09-05 18:40:46,655 [ cli] [INFO] Configuration initialized 2016-09-05 18:40:46,655 [pokemongo_bot.health_record.bot_event] [INFO] Health check is enabled. For more information: 2016-09-05 18:40:46,655 [pokemongo_bot.health_record.bot_event] [INFO] https://github.com/PokemonGoF/PokemonGo-Bot/tree/dev#analytics 2016-09-05 18:40:46,661 [requests.packages.urllib3.connectionpool] [INFO] Starting new HTTP connection (1): www.google-analytics.com (23300) wsgi starting up on http://194.28.50.34:3000 2016-09-05 18:40:46,854 [requests.packages.urllib3.connectionpool] [INFO] Starting new HTTP connection (1): 194.28.50.34 2016-09-05 18:40:46,860 [requests.packages.urllib3.connectionpool] [INFO] Starting new HTTP connection (1): 194.28.50.34 [2016-09-05 18:40:46] [SleepSchedule] [INFO] [next_sleep] Next sleep at 12:00:00, for a duration of 0:01:45 [2016-09-05 18:40:46] [PokemonGoBot] [INFO] [set_start_location] Setting start location. [2016-09-05 18:40:47] [PokemonGoBot] [INFO] [location_found] Location found: London (51.5073509, -0.1277583, 0.0) [2016-09-05 18:40:47] [PokemonGoBot] [INFO] [position_update] Now at (51.5073509, -0.1277583, 0.0) [2016-09-05 18:40:47] [PokemonGoBot] [INFO] [login_started] Login procedure started. [2016-09-05 18:40:48] [PokemonGoBot] [INFO] [login_successful] Login successful. [2016-09-05 18:40:48] [PokemonGoBot] [INFO] Found encrypt.so! Platform: linux2 encrypt.so directory: /root/bot/PokemonGo-Bot [2016-09-05 18:40:48] [PokemonGoBot] [INFO] [Errno 104] Connection reset by peer [2016-09-05 18:40:49] [PokemonGoBot] [INFO] Level: 17 (Next Level: 15310 XP) (Total: 144690 XP) [2016-09-05 18:40:49] [PokemonGoBot] [INFO] Pokemon Captured: 248 | Pokestops Visited: 550 [2016-09-05 18:40:49] [PokemonGoBot] [INFO] [2016-09-05 18:40:49] [PokemonGoBot] [INFO] --- xxxxxx --- [2016-09-05 18:40:49] [PokemonGoBot] [INFO] Pokemon Bag: 43/250 [2016-09-05 18:40:49] [PokemonGoBot] [INFO] Items: 322/350 [2016-09-05 18:40:49] [PokemonGoBot] [INFO] Stardust: 29002 | Pokecoins: 0 [2016-09-05 18:40:49] [PokemonGoBot] [INFO] PokeBalls: 7 | GreatBalls: 147 | UltraBalls: 0 | MasterBalls: 0 [2016-09-05 18:40:49] [PokemonGoBot] [INFO] RazzBerries: 72 | BlukBerries: 0 | NanabBerries: 0 [2016-09-05 18:40:49] [PokemonGoBot] [INFO] LuckyEgg: 2 | Incubator: 3 | TroyDisk: 3 [2016-09-05 18:40:49] [PokemonGoBot] [INFO] Potion: 6 | SuperPotion: 13 | HyperPotion: 30 | MaxPotion: 0 [2016-09-05 18:40:49] [PokemonGoBot] [INFO] Incense: 6 | IncenseSpicy: 0 | IncenseCool: 0 [2016-09-05 18:40:49] [PokemonGoBot] [INFO] Revive: 31 | MaxRevive: 0 [2016-09-05 18:40:49] [PokemonGoBot] [INFO] [2016-09-05 18:40:49] [PokemonGoBot] [INFO] Pokemon: [2016-09-05 18:40:49] [PokemonGoBot] [INFO] #13 Weedle: (CP 120, IV 0.53) [2016-09-05 18:40:49] [PokemonGoBot] [INFO] #17 Pidgeotto: (CP 296, IV 0.29) | (CP 402, IV 0.16) | (CP 213, IV 0.56) [2016-09-05 18:40:49] [PokemonGoBot] [INFO] #19 Rattata: (CP 246, IV 0.58) | (CP 217, IV 0.36) | (CP 10, IV 0.49) | (CP 31, IV 0.11) | (CP 52, IV 0.56) | (CP 10, IV 0.56) | (CP 93, IV 0.4) [2016-09-05 18:40:49] [PokemonGoBot] [INFO] #20 Raticate: (CP 366, IV 0.38) | (CP 18, IV 0.47) | (CP 97, IV 0.47) | (CP 286, IV 0.36) [2016-09-05 18:40:49] [PokemonGoBot] [INFO] #21 Spearow: (CP 253, IV 0.44) [2016-09-05 18:40:49] [PokemonGoBot] [INFO] #22 Fearow: (CP 609, IV 0.62) [2016-09-05 18:40:49] [PokemonGoBot] [INFO] #41 Zubat: (CP 74, IV 0.4) | (CP 149, IV 0.4) [2016-09-05 18:40:49] [PokemonGoBot] [INFO] #48 Venonat: (CP 43, IV 0.69) [2016-09-05 18:40:49] [PokemonGoBot] [INFO] #54 Psyduck: (CP 451, IV 0.29) [2016-09-05 18:40:49] [PokemonGoBot] [INFO] #74 Geodude: (CP 180, IV 0.44) [2016-09-05 18:40:49] [PokemonGoBot] [INFO] #79 Slowpoke: (CP 180, IV 0.58) [2016-09-05 18:40:49] [PokemonGoBot] [INFO] #92 Gastly: (CP 172, IV 0.44) [2016-09-05 18:40:49] [PokemonGoBot] [INFO] #96 Drowzee: (CP 410, IV 0.53) | (CP 441, IV 0.53) | (CP 255, IV 0.53) | (CP 14, IV 0.67) | (CP 162, IV 0.53) [2016-09-05 18:40:49] [PokemonGoBot] [INFO] #97 Hypno: (CP 703, IV 0.6) [2016-09-05 18:40:49] [PokemonGoBot] [INFO] #98 Krabby: (CP 338, IV 0.78) [2016-09-05 18:40:49] [PokemonGoBot] [INFO] #124 Jynx: (CP 518, IV 0.76) | (CP 376, IV 0.82) [2016-09-05 18:40:49] [PokemonGoBot] [INFO] #129 Magikarp: (CP 94, IV 0.62) [2016-09-05 18:40:49] [PokemonGoBot] [INFO] [2016-09-05 18:40:49] [RandomAlivePause] [INFO] [next_random_alive_pause] Next random alive pause at 19:49:18, for a duration of 0:04:41 [2016-09-05 18:40:49] [RandomPause] [INFO] [next_random_pause] Next random pause at 20:35:08, for a duration of 0:06:13 [2016-09-05 18:40:49] [RecycleItems] [INFO] [next_force_recycle] Next forced item recycle at 18:42:14 [2016-09-05 18:40:51] [pokemongo_bot.health_record.bot_event] [INFO] Health check is enabled. For more information: [2016-09-05 18:40:51] [pokemongo_bot.health_record.bot_event] [INFO] https://github.com/PokemonGoF/PokemonGo-Bot/tree/dev#analytics [2016-09-05 18:40:51] [PokemonGoBot] [INFO] [bot_start] Starting bot... [2016-09-05 18:40:52] [CollectLevelUpReward] [INFO] [level_up_reward] Received level up reward: You have reached your target level! Exiting now. Mon Sep 5 18:40:52 CEST 2016 Pokebot Stopped. Press any button or wait 20 seconds to continue.

sohje commented 8 years ago

Provide bot logs.

Shentang commented 8 years ago

Provided bot logs @sohje

davidspeijer commented 8 years ago

I had the same issue in the past.

Shentang commented 8 years ago

The best here would be killing the bot completely or ability to switch auth to another account - but first option would be more than enough.

In the current state it's much more likely to get banned just for logging in every 20 seconds..

YvesHenri commented 8 years ago

I'm closing this as it might have already been fixed (too old). If it isn't, please reopen a new one.