PokeGOAPI-Java icon indicating copy to clipboard operation
PokeGOAPI-Java copied to clipboard

Error Login

Open jchunly opened this issue 10 years ago • 5 comments

hi i am trying to connect to the api and gives me error when I want to sign on the line...

PokemonGo go = new PokemonGo(new PtcCredentialProvider(http, ExampleLoginDetails.LOGIN, ExampleLoginDetails.PASSWORD), http);

the username and password are correct and tells me it can not retrieve the token, there is another way that I can connect.?

jchunly avatar Jul 29 '16 10:07 jchunly

What error the example is giving to you ? There is a way to login via google here.

vmarchaud avatar Jul 29 '16 10:07 vmarchaud

om.pokegoapi.exceptions.LoginFailedException: Failed to fetch token 07-29 13:19:58.087 26461 26480 D Julian com.jchunly.pokenotificator2 at com.pokegoapi.auth.PtcCredentialProvider.login(PtcCredentialProvider.java:219) 07-29 13:19:58.087 26461 26480 D Julian com.jchunly.pokenotificator2 at com.pokegoapi.auth.PtcCredentialProvider.(PtcCredentialProvider.java:101)

I changed the login username and password for my password

in the jar file cant import GoogleUserCredentialProvider

sorry dor my english. i am spanish

jchunly avatar Jul 29 '16 11:07 jchunly

Use a browser to try to login at https://sso.pokemon.com/sso/login

if you are not able to login probably your account was banned, I dont know why but some of my accout got banned and I was receiving this same error

bolds07 avatar Jul 29 '16 13:07 bolds07

Yeah try another account, for sure the problem isnt the lib but your account or the PTC servers.

vmarchaud avatar Jul 29 '16 13:07 vmarchaud

estoy intentando conectarme con GoogleUserCredentialProvider

ya hos comento. gracias por la ayuda

jchunly avatar Jul 29 '16 14:07 jchunly