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

NoPlayerPositionSetException() after re-logging in #4358

Closed
glennvgastel opened this issue Aug 20, 2016 · 3 comments
Closed

NoPlayerPositionSetException() after re-logging in #4358

glennvgastel opened this issue Aug 20, 2016 · 3 comments
Labels

Comments

@glennvgastel
Copy link
Contributor

Expected Behavior

Metrics should be shown after re-login

Actual Behavior

NoPlayerPositionSetException() after re-logging in

Output when issue occurred

2016-08-20 15:18:23,154 [PokemonGoBot] [INFO] [api_error] Session stale, re-logging in.
2016-08-20 15:18:23,171 [PokemonGoBot] [INFO] [login_started] Login procedure started.
Traceback (most recent call last):
  File "pokecli.py", line 674, in <module>
    main()
  File "pokecli.py", line 176, in main
    report_summary(bot)
  File "pokecli.py", line 211, in report_summary
    metrics.capture_stats()
  File "pokemongo_bot\metrics.py", line 84, in capture_stats
    response_dict = request.call()
  File "pokemongo_bot\api_wrapper.py", line 217, in call
    if not self.can_call():
  File "pokemongo_bot\api_wrapper.py", line 118, in can_call
    raise NoPlayerPositionSetException()
pgoapi.exceptions.NoPlayerPositionSetException

Steps to Reproduce

Get a stale session

Other Information

OS:
Windows 10
Branch:
dev
Git Commit:
cc3b4c9
Python Version:
2.7

@net8q
Copy link
Contributor

net8q commented Aug 20, 2016

Confirmed here, there's a double exception during the summary report, original exception is :

File "./pokecli.py", line 677, in
main()
File "./pokecli.py", line 118, in main
bot.tick()
File "./pokemongo_bot/init.py", line 538, in tick
self.check_session(self.position[0:2])
File "./pokemongo_bot/init.py", line 690, in check_session
self.login()
File "./pokemongo_bot/init.py", line 714, in login
str(self.config.password)):
File "./pokemongo_bot/api_wrapper.py", line 77, in login
ret_value = PGoApi.login(self, *args)
File "pgobot/src/pgoapi/pgoapi/pgoapi.py", line 179, in login
response = self.app_simulation_login()
File "pgobot/src/pgoapi/pgoapi/pgoapi.py", line 156, in app_simulation_login
response = request.call()
File "pgobot/src/pgoapi/pgoapi/pgoapi.py", line 215, in call
raise NoPlayerPositionSetException()
pgoapi.exceptions.NoPlayerPositionSetException

@glennvgastel
Copy link
Contributor Author

Looking at the code, it seems the altitude is missing after the relog, I'll check out if I can fix that.

@mjmadsen
Copy link
Contributor

Should be fixed with #4364 on dev branch.

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

3 participants