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

Error during renewing session #2748

Closed
raxxon opened this issue Aug 7, 2016 · 9 comments
Closed

Error during renewing session #2748

raxxon opened this issue Aug 7, 2016 · 9 comments
Labels

Comments

@raxxon
Copy link

raxxon commented Aug 7, 2016

Received the following failure in the log, bot logged back in without completely crashing, but can't spin. Looks like it had a moment where it thought it was back at the start point of my loop and tried to spin the stops there and then moved on, but still getting spin errors as it passes other pokestops....

2016-08-07 05:18:13,228 [RecycleItems] [INFO] [item_discarded] Discarded 1x Potion (maximum 0).
Traceback (most recent call last):
File "/usr/lib/python2.7/logging/init.py", line 851, in emit
msg = self.format(record)
File "/usr/lib/python2.7/logging/init.py", line 724, in format
return fmt.format(record)
File "/usr/lib/python2.7/logging/init.py", line 464, in format
record.message = record.getMessage()
File "/usr/lib/python2.7/logging/init.py", line 328, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Logged from file init.py, line 550
2016-08-07 05:18:34,700 [PokemonGoBot] [INFO] [login_started] Login procedure started.
2016-08-07 05:18:35,196 [PokemonGoBot] [INFO] [login_successful] Login successful.

@KotZer
Copy link

KotZer commented Aug 7, 2016

Exactly the same problem for me. Happened two times after 29 minutes.

@raxxon
Copy link
Author

raxxon commented Aug 7, 2016

Hrm. Mine was almost 34 minutes... I'll see if it happens again...

@KotZer
Copy link

KotZer commented Aug 7, 2016

I think it is discussed here #2698 and solved with the latest commit.

@raxxon
Copy link
Author

raxxon commented Aug 7, 2016

Yep, 30 minutes and it popped the error.... I'll do a pull and see if that commit is in and resolves things...

@raxxon
Copy link
Author

raxxon commented Aug 7, 2016

Attempted to apply suggested fix, no change, error after 30 min runtime.

@geek-man
Copy link
Contributor

geek-man commented Aug 7, 2016

@raxxon Which fix did you apply? Fixing the logging turned out to be pointless. The second change of activate_signature did the trick for me. Haven't had the issue since adding that in.

@raxxon
Copy link
Author

raxxon commented Aug 7, 2016

The activate signature call in init

@geek-man
Copy link
Contributor

geek-man commented Aug 7, 2016

Did you also fix the logging call that causes the exception? Might need both to be fixed for it to work. Would make sense that if the exception is thrown first, then activate signature doesn't get called.

@brantje
Copy link
Contributor

brantje commented Aug 7, 2016

Seems to happen after ~30 min. I can confirm this.

2016-08-07 13:59:00,412 [MoveToFort] [INFO] [moving_to_lured_fort] Moving towards pokestop Huntington Falls Rock - 0.08km (attraction of lure 0.08km)
Traceback (most recent call last):
  File "/usr/lib/python2.7/logging/__init__.py", line 850, in emit
    msg = self.format(record)
  File "/usr/lib/python2.7/logging/__init__.py", line 723, in format
    return fmt.format(record)
  File "/usr/lib/python2.7/logging/__init__.py", line 464, in format
    record.message = record.getMessage()
  File "/usr/lib/python2.7/logging/__init__.py", line 328, in getMessage
    msg = msg % self.args
TypeError: not all arguments converted during string formatting
Logged from file __init__.py, line 550
2016-08-07 13:59:12,660 [PokemonGoBot] [INFO] [login_started] Login procedure started.
2016-08-07 13:59:14,487 [PokemonGoBot] [INFO] [login_successful] Login successful.

Looks like the session has ended, and extended, however throwing that error isn't nice.

@brantje brantje added the Bug label Aug 7, 2016
@brantje brantje changed the title Non-fatal error, possible soft-ban? Error during renewing session Aug 7, 2016
hoanghuynh pushed a commit to hoanghuynh/PokemonGo-Bot that referenced this issue Sep 28, 2016
* added javascript styling rules

* use nodejs 4.4.7 instead of 0.10.x
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

5 participants
@geek-man @KotZer @brantje @raxxon and others