Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

server says: BadAuthentication' #260

Open
5 tasks
mfrattola opened this issue May 21, 2020 · 24 comments
Open
5 tasks

server says: BadAuthentication' #260

mfrattola opened this issue May 21, 2020 · 24 comments

Comments

@mfrattola
Copy link

mfrattola commented May 21, 2020

I WON'T ANSWER IF YOU DON'T PROVIDE SUCH DETAILS. COPY-PASTING IS NOT ENOUGH, I'M NOT A JEDI (YET).

Please provide those informations:

  • Operating System Debian 10.4
  • Python version when running gplaycli Python3.7.3
  • GPlayCli version via gplaycli -v GPlayCli version 3.29
  • The way you installed gplaycli: python3 -m pip install gplaycli --user
  • The authentication method: (own) credentials

this is the on-screen log of the session:

../.local/bin/gplaycli -s firefox -c config.ae -v

[INFO] GPlayCli version 3.29 [Python3.7.3]
[INFO] Configuration file is ['config.ae']
[INFO] Device is bacon
[INFO] Using credentials to connect to API
[INFO] Using plaintext password
[ERROR] Bad authentication, login or password incorrect ('server says: BadAuthentication')


config file:

[Credentials]
token=false
gmail_address=ae.xxxxxxxx@google.com
gmail_password=xxxxxxxxxx

[Cache]
token=~/.cache/gplaycli/token

[Locale]
locale=en_GB
timezone=CEST


I verified the credentials. If you need anything else, just let me know. Thank you.

@sharifStrudent
Copy link

sharifStrudent commented May 21, 2020

I faced same error on other repository today:
dweinstein/node-google-play#123

@mfrattola
Copy link
Author

mfrattola commented May 22, 2020

Same error with racoon

@m5x
Copy link

m5x commented May 25, 2020

Getting this error as well.

1 similar comment
@keyofd
Copy link

keyofd commented May 25, 2020

Getting this error as well.

@jr3074
Copy link

jr3074 commented May 27, 2020

same error today

@harryqt
Copy link

harryqt commented Nov 10, 2020

any fix?

@mfrattola
Copy link
Author

mfrattola commented Nov 10, 2020 via email

@sepo83
Copy link

sepo83 commented Feb 13, 2021

I might have found something...

On a fresh install (alpine; pyhton3.8) I have the same error as mentioned above. pip3 install gplaycli shows:

Requirement already satisfied: gplaycli in /gplaycli (3.29)
Requirement already satisfied: matlink-gpapi>=0.4.4.4 in /usr/lib/python3.8/site-packages (from gplaycli) (0.4.4.5)
Requirement already satisfied: pyaxmlparser in /usr/lib/python3.8/site-packages (from gplaycli) (0.3.24)
Requirement already satisfied: protobuf>=3.5.2 in /usr/lib/python3.8/site-packages (from matlink-gpapi>=0.4.4.4->gplaycli) (3.14.0)
Requirement already satisfied: cryptography>=2.2 in /usr/lib/python3.8/site-packages (from matlink-gpapi>=0.4.4.4->gplaycli) (3.3.2)
Requirement already satisfied: requests in /usr/lib/python3.8/site-packages (from matlink-gpapi>=0.4.4.4->gplaycli) (2.25.1)
Requirement already satisfied: six>=1.4.1 in /usr/lib/python3.8/site-packages (from cryptography>=2.2->matlink-gpapi>=0.4.4.4->gplaycli) (1.15.0)
Requirement already satisfied: cffi>=1.12 in /usr/lib/python3.8/site-packages (from cryptography>=2.2->matlink-gpapi>=0.4.4.4->gplaycli) (1.14.4)
Requirement already satisfied: pycparser in /usr/lib/python3.8/site-packages (from cffi>=1.12->cryptography>=2.2->matlink-gpapi>=0.4.4.4->gplaycli) (2.20)
Requirement already satisfied: click>=6.7 in /usr/lib/python3.8/site-packages (from pyaxmlparser->gplaycli) (7.1.2)
Requirement already satisfied: lxml in /usr/lib/python3.8/site-packages (from pyaxmlparser->gplaycli) (4.6.2)
Requirement already satisfied: chardet<5,>=3.0.2 in /usr/lib/python3.8/site-packages (from requests->matlink-gpapi>=0.4.4.4->gplaycli) (4.0.0)
Requirement already satisfied: idna<3.2,>=2.5 in /usr/lib/python3.8/site-packages (from requests->matlink-gpapi>=0.4.4.4->gplaycli) (3.1)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/lib/python3.8/site-packages (from requests->matlink-gpapi>=0.4.4.4->gplaycli) (1.26.2)

When I downgrade urllib3 with pip3 install --upgrade urllib3==1.24.2, the plaintext password works.

@gentoolinux
Copy link

When I downgrade urllib3 with pip3 install --upgrade urllib3==1.24.2, the plaintext password works.

Awesome! After downgrading urllib3 from 1.26.2 to 1.25.11 gplaycli is working for me again, too.

Thanks to your hint, I have found this issue: urllib3/urllib3#2101
Obviously the issue can be fixed by adjusting the supported cipher suites.
I did not had time to check how to apply this to gplaycli.

@BiatuAutMiahn
Copy link

Confirmed

@shalva97
Copy link

shalva97 commented May 2, 2021

same here, no matter what it always says [ERROR] Bad authentication, login or password incorrect ('server says: BadAuthentication')

@fontanon
Copy link

I might have found something...

On a fresh install (alpine; pyhton3.8) I have the same error as mentioned above. pip3 install gplaycli shows:

Requirement already satisfied: gplaycli in /gplaycli (3.29)
Requirement already satisfied: matlink-gpapi>=0.4.4.4 in /usr/lib/python3.8/site-packages (from gplaycli) (0.4.4.5)
Requirement already satisfied: pyaxmlparser in /usr/lib/python3.8/site-packages (from gplaycli) (0.3.24)
Requirement already satisfied: protobuf>=3.5.2 in /usr/lib/python3.8/site-packages (from matlink-gpapi>=0.4.4.4->gplaycli) (3.14.0)
Requirement already satisfied: cryptography>=2.2 in /usr/lib/python3.8/site-packages (from matlink-gpapi>=0.4.4.4->gplaycli) (3.3.2)
Requirement already satisfied: requests in /usr/lib/python3.8/site-packages (from matlink-gpapi>=0.4.4.4->gplaycli) (2.25.1)
Requirement already satisfied: six>=1.4.1 in /usr/lib/python3.8/site-packages (from cryptography>=2.2->matlink-gpapi>=0.4.4.4->gplaycli) (1.15.0)
Requirement already satisfied: cffi>=1.12 in /usr/lib/python3.8/site-packages (from cryptography>=2.2->matlink-gpapi>=0.4.4.4->gplaycli) (1.14.4)
Requirement already satisfied: pycparser in /usr/lib/python3.8/site-packages (from cffi>=1.12->cryptography>=2.2->matlink-gpapi>=0.4.4.4->gplaycli) (2.20)
Requirement already satisfied: click>=6.7 in /usr/lib/python3.8/site-packages (from pyaxmlparser->gplaycli) (7.1.2)
Requirement already satisfied: lxml in /usr/lib/python3.8/site-packages (from pyaxmlparser->gplaycli) (4.6.2)
Requirement already satisfied: chardet<5,>=3.0.2 in /usr/lib/python3.8/site-packages (from requests->matlink-gpapi>=0.4.4.4->gplaycli) (4.0.0)
Requirement already satisfied: idna<3.2,>=2.5 in /usr/lib/python3.8/site-packages (from requests->matlink-gpapi>=0.4.4.4->gplaycli) (3.1)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/lib/python3.8/site-packages (from requests->matlink-gpapi>=0.4.4.4->gplaycli) (1.26.2)

When I downgrade urllib3 with pip3 install --upgrade urllib3==1.24.2, the plaintext password works.

This worked for me.

@gentoolinux
Copy link

Finally I managed to take a deeper look at this issue.
The issue can not be fixed in gplaycli. It needs to be fixed in googleplay-api.
I was able to resolve the issue using to following (quick and dirty) patch: gentoolinux/googleplay-api@6e4c7a4

@onny
Copy link

onny commented Jun 27, 2021

Finally I managed to take a deeper look at this issue.
The issue can not be fixed in gplaycli. It needs to be fixed in googleplay-api.
I was able to resolve the issue using to following (quick and dirty) patch: gentoolinux/googleplay-api@6e4c7a4

Have you opened a pull request? Thanks for your work!

@matlink
Copy link
Owner

matlink commented Jun 28, 2021

Thank you for investingating it. I could pin the urllib version as a temporary fix.

@sudofox
Copy link

sudofox commented Aug 17, 2021

I could pin the urllib version as a temporay fix

How are we doing here? I'm trying to write a utility to automatically generate diffs between app versions when a new one is released, but this seems to be standing in the way

NateEag added a commit to NateEag/gplaycli that referenced this issue Mar 11, 2022
This lets you use the CLI tool of your choice to supply username and
password, thereby letting you avoid storing your gmail username and
password in plain text in the config file.

POC because the code is brittle, ugly, undocumented, and untested.

That last is of course the major crime, and is because I got
authentication errors from Google Play no matter what I tried.

I tried two different versions of urllib as described in this issue:

matlink#260

as well as using an app password rather than my usual normal password.

Alas, despite all that, I got nowhere, and so I threw my hands in the
air and gave up.
@besendorf
Copy link

Is there any news on this issue? This has already lead other projects like exodus to maintain their own version of gplayapi: Exodus-Privacy/exodus@685ae5c

@besendorf
Copy link

I forked the projected and the library used by it. I also uploaded it to pypi. You can check it out here or just do pip install gplaycli2

@muzzyrost
Copy link

Same issue again on both login types with MFA and without it.

gplaycli -v -s youtube
[INFO] GPlayCli version 3.29 [Python3.9.5]
[INFO] Configuration file is /home/ub/.local/etc/gplaycli/gplaycli.conf
[INFO] Device is bacon
[INFO] Using credentials to connect to API
[INFO] Using plaintext password
Traceback (most recent call last):
  File "/home/ub/.local/bin/gplaycli", line 8, in <module>
    sys.exit(main())
  File "/home/ub/.local/lib/python3.9/site-packages/gplaycli/gplaycli.py", line 651, in main
    cli.search(args.search, not args.paid)
  File "/home/ub/.local/lib/python3.9/site-packages/gplaycli/hooks.py", line 8, in check_connection
    ok, err = self.connect()
  File "/home/ub/.local/lib/python3.9/site-packages/gplaycli/gplaycli.py", line 415, in connect
    ok, err = self.connect_credentials()
  File "/home/ub/.local/lib/python3.9/site-packages/gplaycli/gplaycli.py", line 448, in connect_credentials
    self.api.login(email=self.gmail_address, password=password)
  File "/home/ub/.local/lib/python3.9/site-packages/gpapi/googleplay.py", line 262, in login
    raise SecurityCheckError("Security check is needed, try to visit "
gpapi.googleplay.SecurityCheckError: 'Security check is needed, try to visit https://accounts.google.com/b/0/DisplayUnlockCaptcha to unlock, or setup an app-specific password'

@aerickson
Copy link

@besendorf is your fork still working for you? Getting 'bad authentication' even when using an app password. Thanks!

@besendorf
Copy link

@besendorf is your fork still working for you? Getting 'bad authentication' even when using an app password. Thanks!

Unfortunatly not but this still works for me:
https://github.com/89z/googleplay
however it's not as easy to use

@MC874
Copy link

MC874 commented Nov 27, 2022

The repository is gone, do You have backup or alternatives? @besendorf

@MC874
Copy link

MC874 commented Nov 28, 2022

Thanks, will try @9hk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests