PokemonGoBot icon indicating copy to clipboard operation
PokemonGoBot copied to clipboard

Google token error.

Open Agora0129 opened this issue 10 years ago • 3 comments

Description: I have to keep redoing the device add into google for it to work.

Steps to reproduce:

  1. Enter in device code.
  2. Erase token and then try again.

Expected behavior: Logs in fine without needing to enter device

Actual behavior: Throws an exception

Stacktrace (If it's a crash): Exception in thread "main" java.lang.IllegalStateException: if (token.contains("poke…eshToken(token) } must not be null at ink.abb.pogo.scraper.MainKt.main(Main.kt:90)

Version: 0.4.0

Agora0129 avatar Jul 24 '16 21:07 Agora0129

You used the wrong/invalid token, don't use the huge token. Use the one on the line: Logged in as __ with token ___

Forty-Tw0 avatar Jul 24 '16 21:07 Forty-Tw0

i don't see any other field that has a token in the properties file? Is it somewhere else?

Agora0129 avatar Jul 24 '16 21:07 Agora0129

Thanks @Forty-Tw0 . I know how to solve this now. @Agora0129 When you first time use google.com/device log in the bot, there is token shows in the cmd. it is like: Logged in as __ with token ___ .

The Token is very short. You need to write this short token into config.properties files at "token =" field manually.

Then next time you can log in without erasing token or inputing device code again.

li24yang75 avatar Jul 25 '16 19:07 li24yang75