PokemonGoBot icon indicating copy to clipboard operation
PokemonGoBot copied to clipboard

Invalid credential

Open etkstim opened this issue 8 years ago • 41 comments

Description:

I have insert in config.properties this line:

# PTC/Google login credentials
[email protected]

# Choose plaintext or base64'd password
password=mypassword
base64_password=

# Token to login directly
token=
latitude=39.8089707
longitude=16.1503722

I have error of invalid credentials, but my credentials are right

Version: pogo.scraper-all-0.5.0-alpha2

Operating System: Windows 8.1

Java version: [Full output of java -version] 1.8.0_73b02

etkstim avatar Jul 28 '16 18:07 etkstim

Have you tried logging into the app, and seeing if you are still able to access your account?

rirze avatar Jul 28 '16 18:07 rirze

Yes! I have able to log from app without problem :)

etkstim avatar Jul 28 '16 18:07 etkstim

Same issue, still doesn't work to me with Google Login (0.5.0-alpha2), it returns:

Server refused your login credentials. Are they correct?

Tried two different Google accounts and one PTC, the PTC works fine.

Edit: able to login and play using the app.

boreip avatar Jul 28 '16 18:07 boreip

I think that problem is two step authentication. Try to disable it and log on server

etkstim avatar Jul 28 '16 18:07 etkstim

Is your token field empty? If not delete the token and retry

mluigi avatar Jul 28 '16 18:07 mluigi

mine says get user to go to :null press :null what do i do?

LOLwhat123 avatar Jul 28 '16 18:07 LOLwhat123

I have resolved problem with disable of two step auth

etkstim avatar Jul 28 '16 18:07 etkstim

go to :null press :null

This is a bug and will hopefully be fixed and reuploaded soon. That's all I get too and there is no token in my config and 2 step auth is turned off.

SSminowjohnson avatar Jul 28 '16 18:07 SSminowjohnson

I don't have 2 step auth and having the same issue with Google Login

boreip avatar Jul 28 '16 18:07 boreip

That's exactly what I wrote. It's not just you, it's a current issue in 0.4.3 and 0.4.2. Hopefully a fix is soon uploaded for those of us that don't wish to use 0.5.0.

SSminowjohnson avatar Jul 28 '16 18:07 SSminowjohnson

It's happening to me with 0.4.3, 0.5.0-alpha and 0.5.0-alpha2

boreip avatar Jul 28 '16 18:07 boreip

my servers are still working and thanks man

LOLwhat123 avatar Jul 28 '16 18:07 LOLwhat123

is anyone actually botting on there main?

LOLwhat123 avatar Jul 28 '16 18:07 LOLwhat123

If you want to use 2-factor authorization, you need to create an app password, not sure if this will work, but it should. Go to this and enter you email and password if need be. Expand drop down menu for 'Select app', select 'other', enter "Bot on windows" or whatever then press generate, make sure you copy it to clipboard.

Replace the password you are using in the config (Your main google password) with the password you just generated.

OmarElsebai avatar Jul 28 '16 18:07 OmarElsebai

one last question where do i go to do :null lol

LOLwhat123 avatar Jul 28 '16 19:07 LOLwhat123

It's a bug, version 0.5.0 alpha 2 has the fix.

OmarElsebai avatar Jul 28 '16 19:07 OmarElsebai

alpha 2 has a bug too lol

LOLwhat123 avatar Jul 28 '16 19:07 LOLwhat123

There is a reason it's alpha. Lol

OmarElsebai avatar Jul 28 '16 19:07 OmarElsebai

true lol oh well i can wait :D whoever is coding it is doing a great job. PTC works perfect tho wish i could link my gmail to ptc

LOLwhat123 avatar Jul 28 '16 19:07 LOLwhat123

Getting #592 here.

tayjaf avatar Jul 28 '16 21:07 tayjaf

@tayjaf Are you using 2 step authorization?

OmarElsebai avatar Jul 28 '16 22:07 OmarElsebai

@omar972 No.

tayjaf avatar Jul 28 '16 22:07 tayjaf

@tayjaf If you have a token in the config as well as your username and password, delete the username and password. If you don't have a token, you can generate one using curl or just use an older build of the bot to generate a token.

OmarElsebai avatar Jul 28 '16 23:07 OmarElsebai

same issue, unfortunately i have no idea how to generate a token using curl, i tried to google it but no luck

SiriusCrypto avatar Jul 29 '16 01:07 SiriusCrypto

Well, google how to install curl and then use the command curl "https://android.clients.google.com/auth" --data "Email=REPLACE_WITH_EMAIL&Passwd=REPLACE_WITH_PASSWORD&service=ac2dm&add_account=1" There should be a line "token=..................................." that would be it.

OmarElsebai avatar Jul 29 '16 01:07 OmarElsebai

For those of you not wanting to use curl (personally had issues with google's android auth link) and have cloned the source code you can replace the credentials property located on line 33 of the settings.kt with:

credentials = GoogleAutoCredentials("YOUREMAILHERE", "YOURPASSWORDHERE"),

This unfortunately was the only thing to resolve the problem of "not having the right credentials" with google authentication that I have been getting on all versions of this project. Currently only have errors with walkingloop occasionally, but that is a different matter entirely. Hope this helps some people.

zjkipping avatar Jul 31 '16 00:07 zjkipping

I'm getting the same issue on Pokemon Account, not Google Account.

Killertom63 avatar Jul 31 '16 20:07 Killertom63

@Killertom63 If you are still having troubles and are willing to edit the source code, try what I commented earlier except for the PTC credentials on line 33 in the settings.kt file: credentials = PtcCredentials("YOURUSERNAME", "YOURPASSWORD"), This might work as a potential workaround if you are cloning the source code. 100% works for google login for me (I just stash this code and update to develop periodically), I do not have a PTC login to test with though. Otherwise make 100% sure you are putting in the correct info for the PTC login. Hope this helps.

zjkipping avatar Jul 31 '16 20:07 zjkipping

@zjkipping still same problem for google login. I've changed like you sayd:

credentials = GoogleAutoCredentials("mywmail", "mypassword"),

but still having back this message:

31 Jul 22:44:29: Logging in to game server... 31 Jul 22:44:30: Server refused your login credentials. Are they correct?

1

Evuse avatar Jul 31 '16 20:07 Evuse

@Evuse Make sure you do not have 2 step authorization for your google account or if you do get the proper password to bypass it/turn it off, Also make sure you rebuilt the source code. After that I have no clue unfortunately, this seems to have worked for my set of issues.

zjkipping avatar Jul 31 '16 20:07 zjkipping