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

gpapi.googleplay.LoginError: 'server says: UNKNOWN_ERR' #217

Closed
LXQBer opened this issue Aug 30, 2019 · 6 comments
Closed

gpapi.googleplay.LoginError: 'server says: UNKNOWN_ERR' #217

LXQBer opened this issue Aug 30, 2019 · 6 comments

Comments

@LXQBer
Copy link

LXQBer commented Aug 30, 2019

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:

  • [windows ] Operating System (ie Ubuntu 16.04)
  • [python3+ ] Python version when running gplaycli (should be 3+)
  • [3.25 ] GPlayCli version via gplaycli -v
  • [ pip3 install gplaycli] The way you installed gplaycli: git clone, git clone and setup.py, pip install gplaycli, apt install gplaycli, ...
  • [gplaycli.conf ] The authentication method: (own) credentials or (own) token.

After testing many times, I suddenly reported an error. gpapi. googleplay. LoginError:'server says: UNKNOWN_ERR'. I can't log in. I don't know how to modify it.

@delthas
Copy link

delthas commented Aug 30, 2019

Hi, this recent issue is probably due to a change in how Google validates authentication requests. See NoMore201/googleplay-api#93.

The way it's done is that gplaycli gets an authentication token from a server hosted at matlink.fr, which runs an instance of the token dispenser, which uses the play-store-api library to make the request. The way to fix it is to fix the play-store-api library (I made a PR that needs to be merged), then update the token dispenser repository to use the newer play-store-api library, then ask matlink to update his token dispenser server instance.

If you're in a hurry, you can rebuild the token dispenser with the fixed play-store-api version, and run a local token dispenser instance. In that case make sure to change the token_url=https://matlink.fr/token/email/gsfid field in your gplaycli.conf.

@LXQBer
Copy link
Author

LXQBer commented Aug 30, 2019

嗨,这个最近的问题可能是由于Google验证身份验证请求的方式发生了变化。见NoMore201 / googleplay-api#93

它的工作方式是gplaycli从matlink.fr托管的服务器获取一个身份验证令牌,该服务器运行令牌分配器的一个实例,实例使用play-store-api库来发出请求。修复它的方法是修复play-store-api库(我制作了一个需要合并的PR),然后更新令牌分配器存储库以使用更新的play-store-api库,然后请求matlink更新他的令牌分配服务器实例。

如果您赶时间,可以使用固定的play-store-api版本重建令牌分配器,并运行本地令牌分配器实例。在这种情况下,请务必更改token_url=https://matlink.fr/token/email/gsfid您的字段gplaycli.conf

Thank you very much for your answer, I have found a solution, thank you very much!!!

@xulifan
Copy link

xulifan commented Aug 30, 2019

嗨,这个最近的问题可能是由于Google验证身份验证请求的方式发生了变化。见NoMore201 / googleplay-api#93
它的工作方式是gplaycli从matlink.fr托管的服务器获取一个身份验证令牌,该服务器运行令牌分配器的一个实例,实例使用play-store-api库来发出请求。修复它的方法是修复play-store-api库(我制作了一个需要合并的PR),然后更新令牌分配器存储库以使用更新的play-store-api库,然后请求matlink更新他的令牌分配服务器实例。
如果您赶时间,可以使用固定的play-store-api版本重建令牌分配器,并运行本地令牌分配器实例。在这种情况下,请务必更改token_url=https://matlink.fr/token/email/gsfid您的字段gplaycli.conf

Thank you very much for your answer, I have found a solution, thank you very much!!!

Hi, Could you please share your solution? I have the same problem. Thanks.

@matlink
Copy link
Owner

matlink commented Sep 7, 2019

PLease try again with gplaycli 3.26 and tell me if it is still not working.

@matlink matlink closed this as completed Sep 7, 2019
@kyak
Copy link

kyak commented Nov 11, 2019

Hi!

I seem to have the same issue now with 3.26:

[Arch Linux]
[Python 3.7.4]
[GPlayCli version 3.26]
[AUR]
[login/app password (two-factor auth set up)]

Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/gplaycli/gplaycli.py", line 446, in connect_credentials
self.api.login(email=self.gmail_address, password=password)
File "/usr/lib/python3.7/site-packages/gpapi/googleplay.py", line 224, in login
raise LoginError("server says: " + params["error"])
gpapi.googleplay.LoginError: 'server says: UNKNOWN_ERR'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/bin/gplaycli", line 11, in
load_entry_point('GPlayCli==3.26', 'console_scripts', 'gplaycli')()
File "/usr/lib/python3.7/site-packages/gplaycli/gplaycli.py", line 709, in main
cli.prepare_analyse_apks()
File "/usr/lib/python3.7/site-packages/gplaycli/gplaycli.py", line 502, in prepare_analyse_apks
to_update = self.analyse_local_apks(list_of_apks, download_folder)
File "/usr/lib/python3.7/site-packages/gplaycli/hooks.py", line 8, in check_connection
self.connect()
File "/usr/lib/python3.7/site-packages/gplaycli/gplaycli.py", line 420, in connect
return self.connect_credentials()
File "/usr/lib/python3.7/site-packages/gplaycli/gplaycli.py", line 448, in connect_credentials
logger.error("Bad authentication, login or password incorrect (%s)", login_error)
NameError: name 'login_error' is not defined

@kyak
Copy link

kyak commented Nov 17, 2019

@matlink This is still an issue with 3.26. Please let me know if you need more information to figure out the cause of the problem. I haven't been able to update my apks in days now :(

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

5 participants