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

ServerBusyOrOfflineException every 10 Minutes

Open IcicleTF opened this issue 10 years ago • 43 comments

Expected Behavior

Bot runs uninterrupted.

Actual Behavior

After 10 minutes (almost on the dot): Server seems to be busy or offline - try again - 1/5 Server seems to be busy or offline - try again - 2/5 Server seems to be busy or offline - try again - 3/5 Server seems to be busy or offline - try again - 4/5 Server seems to be busy or offline - try again - 5/5 Trackback (most recent call last): File "D:\Github\PokemonGo-Bot\pokecli.py", line 490, in File "D:\Github\PokemonGo-Bot\pokecli.py", line 81, in main File "D:\Github\PokemonGo-Bot\pokecli.py", line 89, in report_summary File "D:\Github\PokemonGo-Bot\pokemongo_bot\metrics.py, line 75, in capture_stats File "D:\Github\PokemonGo-Bot\pokemongo_bot\api_wrapper.py", line 74, in call pgoapi.exceptions.ServerBusyOrOfflineException

Steps to Reproduce

Running pokecli.py with login info and default config. Pokemon are captured and forts are spun within the 10 minute period, but is disconnected afterwards.

Other Information

OS: Windows 10 Git Commit: (562959056d966e92de394955a703fec5e4fee80d)

IcicleTF avatar Jul 31 '16 05:07 IcicleTF

I'm actually seeing it every 8minutes 45 seconds +/- 3 seconds.

I setup the run.sh to track the run time, restart after a 5 minute wait and count the iterations through the loop. Sitting here watching the output while doing other random crap it's been 8min 45sec for the disconnect with minor timing slides....

raxxon avatar Jul 31 '16 05:07 raxxon

It's odd how consistent the disconnects are. I'd expect them to much more scattered were it an actual problem with the servers.

IcicleTF avatar Jul 31 '16 05:07 IcicleTF

I've been screwing about with the configs for the past few hours thinking it was something I had setup/tweaked wrong.... Nothing I'm doing in the configs seems to make a difference. And I don't think it's a memory issue... python never exceeds 100mb of RAM, I have 128gb in the system... Something is breaking, but the details are a little thin as to where to poke....

raxxon avatar Jul 31 '16 05:07 raxxon

Yeah same here. Pretty damn annoying. I usually make it 15 minutes. I need to write a script that just restarts it every 14 minutes.

CattDamon avatar Jul 31 '16 06:07 CattDamon

Confirmed! Mine crash every 20 mins

I guess the issue is making too much API calls

xc-mezcal avatar Jul 31 '16 06:07 xc-mezcal

I'm currently set to a 5 minimum, 12 max delay and I'm getting the same "timeout" as I was at the defaults of 1 and 4.... Not sure if it's "too many API calls"...

raxxon avatar Jul 31 '16 06:07 raxxon

@raxxon

That 5,12 is a misleading set. It only affects capture/release stuff. :D

xc-mezcal avatar Jul 31 '16 06:07 xc-mezcal

Well that's kinda odd... I'm watching the timestamps and all actions are at those time limits... I know it's going to make a few more calls that aren't getting events logged, but if it's just making a chain series of requests without a timer control then what's the point of having the delays for capture/release?

raxxon avatar Jul 31 '16 06:07 raxxon

The master does not have this problem. My dev was crashing so often but the master is rock solid.

CattDamon avatar Jul 31 '16 06:07 CattDamon

i have problem same too...

i try change branch to master, but this issue same on my branch master

unbirabka avatar Jul 31 '16 07:07 unbirabka

This commit from 2 days ago does not have the issue and is rock solid 50716223fece99832b11d643f0347fe6eec52655. I'm trying to narrow down the exact commit this started for me. It is within four commits past this one for sure.

Ok I have narrowed it down. The bug was introduced with commit 2805cb75be3d30de272095675316f1bf9138b639

50716223fece99832b11d643f0347fe6eec52655 - works flawless for 24+ hours tested 2805cb75be3d30de272095675316f1bf9138b639 - crashes after 10 mins 14 seconds with:

[01:04:59] -- Recycled 1x Revive (keeps only 20 maximum)

[01:07:10] [x] Next egg incubates in 9.27 km [01:07:13] Something rustles nearby! [01:07:14] A Wild Golbat appeared! [CP 516] [Potential 0.58] [01:07:14] IV [Stamina/Attack/Defense] = [8/13/5] [01:07:17] Catch Rate with normal Pokeball is low (18.93%). Throwing Razz Berry... (14 left!) [01:07:17] Catch Rate with normal Pokeball has increased to 28.40% [01:07:17] Using Greatball (chance: 40.52%)... (73 left!) [01:07:18] [-] Attempted to capture Golbat - failed.. trying again! [01:07:20] Catch Rate with normal Pokeball is low (28.40%). Throwing Razz Berry... (14 left!) [01:07:20] Server seems to be busy or offline - try again - 1/5 [01:07:21] Server seems to be busy or offline - try again - 2/5 [01:07:22] Server seems to be busy or offline - try again - 3/5 [01:07:23] Server seems to be busy or offline - try again - 4/5 [01:07:24] Server seems to be busy or offline - try again - 5/5 Traceback (most recent call last): File "pokecli.py", line 389, in File "pokecli.py", line 68, in main File "C:\PokemonGo-Bot\pokemongo_bot__init__.py", line 89, in tick File "C:\PokemonGo-Bot\pokemongo_bot\cell_workers\catch_visible_pokemon_worker.py", line 37, in work File "C:\PokemonGo-Bot\pokemongo_bot\cell_workers\catch_visible_pokemon_worker.py", line 49, in catch_pokemon File "C:\PokemonGo-Bot\pokemongo_bot\cell_workers\pokemon_catch_worker.py", line 114, in work File "C:\PokemonGo-Bot\pokemongo_bot\api_wrapper.py", line 74, in call NameError: global name 'ServerBusyOrOfflineException' is not defined

crowbarto avatar Jul 31 '16 08:07 crowbarto

but after branch dev update branch master same issue too, and always server busy,

i try to change vps or ip public and gmail account but same too

unbirabka avatar Jul 31 '16 08:07 unbirabka

I cant even get initial login to work, https://github.com/PokemonGoF/PokemonGo-Bot/commit/50716223fece99832b11d643f0347fe6eec52655 dosnt work either

MartinTerp avatar Jul 31 '16 08:07 MartinTerp

commit 50716223fece99832b11d643f0347fe6eec52655 doesnt have the bug, then commit after that one 2805cb75be3d30de272095675316f1bf9138b639 has it and every commit since

gregtampa avatar Jul 31 '16 08:07 gregtampa

I don't have this issue on the latest dev. Using Google to login.

SteffanLong avatar Jul 31 '16 09:07 SteffanLong

whats your id.? ptc or google.?

On Jul 31, 2016 16:08, "Steffan Long" [email protected] wrote:

I don't have this issue on the latest dev.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/PokemonGoF/PokemonGo-Bot/issues/2009#issuecomment-236419445, or mute the thread https://github.com/notifications/unsubscribe-auth/ATrzCiG1xXPkOGU2JJWOqq5jzmO3L1-oks5qbGX0gaJpZM4JY9oP .

unbirabka avatar Jul 31 '16 09:07 unbirabka

Mine is a google login with the bug. I have not tried with a ptc login yet.

crowbarto avatar Jul 31 '16 09:07 crowbarto

Mine's google as well....

raxxon avatar Jul 31 '16 09:07 raxxon

5071622 does not work for me. Using google with app password

tvb avatar Jul 31 '16 09:07 tvb

@akbaribnu Currently using Google. Also, using bdaddec9ee64691e5b0a8bda55bf76f83442232f

IcicleTF avatar Jul 31 '16 09:07 IcicleTF