jekirl / poketrainer

The original Pokemon Go bot
Other
120 stars 56 forks source link

Login error with most recent dev build #413

Closed fil676 closed 8 years ago

fil676 commented 8 years ago

I can log into the account normally (so it's not a server issue) but not with the bot after switching to the newest dev build.

G:\Projects\poketrainer-develop
> python pokecli.py -i 0
2016-08-03 16:13:06,709 [   pokecli] [ INFO] Your given location: 787 5th Ave, New York, NY 10022, USA
2016-08-03 16:13:06,710 [   pokecli] [ INFO] lat/long/alt: 40.7646716 -73.9724913 0.0
2016-08-03 16:13:06,730 [auth_google] [ INFO] Google login for: xxx@gmail.com
2016-08-03 16:13:07,387 [auth_google] [ INFO] Google Login successful.
2016-08-03 16:13:07,388 [    pgoapi] [ INFO] Starting RPC login sequence (app simulation)
2016-08-03 16:13:09,665 [    pgoapi] [ERROR] Login failed - unexpected server response!
2016-08-03 16:13:09,667 [   pokecli] [ERROR] Retrying Login in 30 seconds

My config.json is as such:

{
  "accounts": [
    {
      "auth_service": "google",
      "username": "xxx@gmail.com",
      "password": "xxx",
      "location": "40.764882, -73.972777",
      "GMAPS_API_KEY": "x",
      "BEHAVIOR": {
        "USE_GOOGLE": false,
        "STEP_SIZE": 100,
        "WANDER_STEPS": 0,
        "EXPERIMENTAL": false,
        "SKIP_VISITED_FORT_DURATION": 600,
        "SPIN_ALL_FORTS": true,
        "STAY_WITHIN_PROXIMITY": 9999,
        "AUTO_USE_LUCKY_EGG": false,
        "EXTRA_WAIT" : 0.3,
        "SLEEP_MULT" : 1.5
      },
{
      "auth_service": "ptc",
      "username": "someusername",
      "password": "password",
      "location": "xxx",
      "BEHAVIOR": {
        "USE_GOOGLE": false
      }
fil676 commented 8 years ago

Ok, that spacing before the last "use_google" is what caused the error. That should be corrected in the example config.

rirze commented 8 years ago

@fil676 Just for future reference, this problem wouldn't be solved by changing anything in the config. It's more likely you ran into a busy server time, and the login fixed itself over time.