PokemonGoBot icon indicating copy to clipboard operation
PokemonGoBot copied to clipboard

Error logging in

Open Rishabhpatted24 opened this issue 10 years ago • 42 comments

I use google , This is what i am getting today http://prntscr.com/byj9gc using 0.4.3

Rishabhpatted24 avatar Jul 28 '16 09:07 Rishabhpatted24

The servers are down, always check http://ispokemongodownornot.com if you have login problems. Closing.

mluigi avatar Jul 28 '16 09:07 mluigi

servers are ok bro. but google is reply "null" codes.

miracho avatar Jul 28 '16 09:07 miracho

Try the 0.5.0 version, and tell me if there are still problems.

mluigi avatar Jul 28 '16 09:07 mluigi

This is a thing I get (which the author might mean)

28 Jul 11:54:23: Error running loop WalkingLoop!
com.pokegoapi.exceptions.RemoteServerException: com.google.protobuf.InvalidProtocolBufferException: Contents of buffer are null
        at com.pokegoapi.api.map.Map.getMapObjects(Map.java:307)
        at com.pokegoapi.api.map.Map.getMapObjects(Map.java:270)
        at com.pokegoapi.api.map.Map.getMapObjects(Map.java:205)
        at com.pokegoapi.api.map.Map.getMapObjects(Map.java:195)
        at com.pokegoapi.api.map.Map.getCatchablePokemon(Map.java:103)
        at ink.abb.pogo.scraper.util.map.MapKt.getCatchablePokemon(Map.kt:15)
        at ink.abb.pogo.scraper.tasks.Walk$walk$1.invoke(Walk.kt:82)
        at ink.abb.pogo.scraper.tasks.Walk$walk$1.invoke(Walk.kt:21)
        at ink.abb.pogo.scraper.Bot$runLoop$1.invoke(Bot.kt:139)
        at ink.abb.pogo.scraper.Bot$runLoop$1.invoke(Bot.kt:32)
        at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:18)
Caused by: com.google.protobuf.InvalidProtocolBufferException: Contents of buffer are null
        at com.pokegoapi.main.ServerRequest.getData(ServerRequest.java:66)
        at com.pokegoapi.api.map.Map.getMapObjects(Map.java:305)
        ... 10 more

maybe they changed their protobufs?

I am on the latest dev-branch (0.5 alpha)

tessi avatar Jul 28 '16 09:07 tessi

Same issue here on 0.4.3, servers are good to go, the app is working fine.

boreip avatar Jul 28 '16 10:07 boreip

Getting errors too. Keep on going though. cccc

Arihiza avatar Jul 28 '16 10:07 Arihiza

function to fix (in main.kt) must be smthing like this

fun getAuth(settings: Settings, http: OkHttpClient): CredentialProvider {
    val username = settings.username
    val password = settings.password

    val token = settings.token()

    val auth = if (username.contains('@')) {
        try {
            val token = GoogleAutoCredentialProvider(http, username, password)
        } catch (e: LoginFailedException) {
            throw e
        } catch (e: RemoteServerException) {
            throw e
        } catch (e: Exception) {
            // sometimes throws ArrayIndexOutOfBoundsException or other RTE's
            throw RemoteServerException(e)
        }
    } else {
        try {
            PtcCredentialProvider(http, username, password, time)
        } catch (e: LoginFailedException) {
            throw e
        } catch (e: RemoteServerException) {
            throw e
        } catch (e: Exception) {
            // sometimes throws ArrayIndexOutOfBoundsException or other RTE's
            throw RemoteServerException(e)
        }
    }

    return auth
}

karael avatar Jul 28 '16 10:07 karael

Same issue on 0.5.0-alpha.

screenshot

boreip avatar Jul 28 '16 10:07 boreip

Im getting the same trying to login, and working fine on the phone.

frozen-commit avatar Jul 28 '16 10:07 frozen-commit

I'm getting the same error with google logins.

java -jar pogo.scraper-all-0.5.0-alpha.jar 28 lug 12:18:11: Logging in to game server... D/GoogleCredentialProvider: 0 D/GoogleCredentialProvider: Get user to go to:null and enter code:null

With all version. 0.3 0.4 0.5. With the zipped version and with the github version :(

Evuse avatar Jul 28 '16 10:07 Evuse

get the new config file https://raw.githubusercontent.com/jabbink/PokemonGoBot/master/config.properties.template For the protobuf errors, go here #562

mluigi avatar Jul 28 '16 10:07 mluigi

Already used the last config file on 0.5.0-alpha.

boreip avatar Jul 28 '16 10:07 boreip

@pr0ves api have been update (login function has changed) so it's not about config problem. update

karael avatar Jul 28 '16 10:07 karael

Also, the stacktrace i posted above resolved itself. ¯\_(ツ)_/¯

tessi avatar Jul 28 '16 10:07 tessi

Last version with last config file, even trying #562. No way to make it works

Evuse avatar Jul 28 '16 10:07 Evuse

same issue, getting D/GoogleCredentialProvider: Get user to go to:null and enter code:null

SiriusCrypto avatar Jul 28 '16 10:07 SiriusCrypto

Seen in another post with the same issue someone say. "the Google Rocket API project is at limit. There will be no more new device id for a while for google account. Try login with your PTC account or create a new one" Perhaps it's the same here.

frozen-commit avatar Jul 28 '16 10:07 frozen-commit

What do you mean? i've always used my google account. is not a new one!

Evuse avatar Jul 28 '16 10:07 Evuse

guys, please #545 also, google accounts needs the new API...there is nothing we can do, just wait for a new release. And PTC login servers are down... Just chill qhuhcuc

Coldasicex avatar Jul 28 '16 10:07 Coldasicex

It is working for me atm using my google account on 0.4.3.

Arihiza avatar Jul 28 '16 10:07 Arihiza