PokemonGoBot icon indicating copy to clipboard operation
PokemonGoBot copied to clipboard

token config error

Open hifiaz opened this issue 10 years ago • 13 comments

Exception in thread "main" java.lang.NoSuchMethodError: java.io.BufferedReader.lines()Ljava/util/stream/Stream; at ink.abb.pogo.scraper.Settings.writeToken(Settings.kt:139) at ink.abb.pogo.scraper.MainKt.main(Main.kt:105)

hifiaz avatar Jul 26 '16 02:07 hifiaz

You gotta remove the token from config.properties. Set it back to token= instead of token=whatevertokenitmaybe

Letrico avatar Jul 26 '16 02:07 Letrico

I have to manually delete the auto added token every hour or so for it to log in again. For some reason the generated token expires and isn't renewed.

ansalls avatar Jul 26 '16 03:07 ansalls

@ansalls Which version are you using? I have left my bot running for close to 12 hours while sleeping without a problem.

Letrico avatar Jul 26 '16 03:07 Letrico

0.4.2.

This is what's generated until I go delete the token that's generated by the jar

Logging in to game server... Logged in as ***** with token TGT-6278608-qNnorOciMNXAbXLl6H3TPYISnQvpcC4kjb2xA666wnlHc7bcLQ-sso.pokemon.com D/RequestHandler: Authenticated with static token D/RequestHandler: Authenticated with static token Exception in thread "main" com.pokegoapi.exceptions.LoginFailedException: Error in API Url at com.pokegoapi.main.RequestHandler.sendServerRequests(RequestHandler.java:149) at com.pokegoapi.api.player.PlayerProfile.updateProfile(PlayerProfile.java:79) at com.pokegoapi.api.player.PlayerProfile.(PlayerProfile.java:67) at com.pokegoapi.api.PokemonGo.(PokemonGo.java:66) at ink.abb.pogo.scraper.MainKt.main(Main.kt:107)

ansalls avatar Jul 26 '16 03:07 ansalls

@ansalls is that after you try to rerun the bot again? The bot should be able to auto login by itself every ~20 minutes

Letrico avatar Jul 26 '16 03:07 Letrico

Yes. I tried rerunning it multiple times and it was through trial and error that I found the token to be the issue.

ansalls avatar Jul 26 '16 03:07 ansalls

@ansalls I know for sure is when the token is expired, I have to manually remove them before starting the bot again but once it runs, it will auto renew the token as long as the bot is running.

But I'm using google auth, are you using PTC/google?

Letrico avatar Jul 26 '16 03:07 Letrico

Mine, as far as I can tell, does NOT auto renew. It could be that I'm using PTC.

ansalls avatar Jul 26 '16 03:07 ansalls

yea i've this problem too bro.

miracho avatar Jul 26 '16 04:07 miracho

I've have had this issue about expiring token all the time, seems that it is PTC related then only :( Hope a fix might come for it

GeitV avatar Jul 26 '16 04:07 GeitV

try again bro. it is fixed.

miracho avatar Jul 26 '16 04:07 miracho

Alright, thanks for headsup, will try :)

GeitV avatar Jul 26 '16 05:07 GeitV

You should remove the Token from your post

pashorizer avatar Jul 26 '16 07:07 pashorizer