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

Fix auth error #114

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Fix auth error #114

wants to merge 3 commits into from

Conversation

matlink
Copy link
Contributor

@matlink matlink commented Feb 26, 2020

@gurnec
Copy link
Contributor

gurnec commented Feb 28, 2020

I just submitted PR #116 to hopefully fix downloads of purchased apps (my PR works for me anyways). If I apply both #116 and your #114, purchased app downloads go back to broken for me (and #114 alone does not fix them for me).

I'm just adding this comment as an FYI... sorry that it's not much help.

(The reason I even found your PR is that the error message I was getting is identical to the one in #113, "Error while retrieving information from server. DF-DFERH-01", although the traceback in #113 seems to be related to gplaycli's --update; not, as it was for me, downloads of purchased apps.)

@matlink
Copy link
Contributor Author

matlink commented Feb 28, 2020

It looks like using credentials requires to use 'GoogleLogin auth=%s' while using tokens requires to have 'Bearer %s' in the Authentication header https://github.com/whyorean/playstore-api-v2/blob/master/src/main/java/com/dragons/aurora/playstoreapiv2/GooglePlayAPI.java#L331

@matlink
Copy link
Contributor Author

matlink commented Feb 28, 2020

@gurnec I've pushed a commit which should fix errors when using credentials. Could you test it please?

@gurnec
Copy link
Contributor

gurnec commented Mar 9, 2020

Sorry for the delay... but in short, your update did restore the ability to download when using credentials for me.

Just to be clear, I took your fix-auth branch, rebased it onto the current googleplay-api master (664c399), and ran gplaycli -d com.andrewshu.android.redditdonation (that's a paid app) which worked as expected. My config file contains:

[Credentials]
token=False
[email protected]
gmail_password=the-app-password

I should also mention that I don't understand what this branch was intended to fix, it's beyond me 😛, so I've no comment on whether or not it works... only that it's not breaking what little I tested.

@lkeai2007
Copy link

hello,could you please tell me How to save gsfId and authSubToken

@smfahadhassan
Copy link

hello,could you please tell me How to save gsfId and authSubToken

api = GooglePlayAPI(locale="en_US", timezone="UTC")
gsfId = api.gsfId
authSubToken = api.authSubToken

print(gsfId)
print(authSubToken)

thats how you can get your gsfId and authSubToken..

@fahadakbar24
Copy link

The issue is still persisting even with this pull request, when listing apps under a category:

Traceback (most recent call last):
File "-----------\googleplay-api\test\test.py", line 43, in
catList = server.list(cat)
File "-----------\googleplay-api\gpapi\googleplay.py", line 455, in list
data = self.executeRequestApi2(path)
File "-----------\googleplay-api\gpapi\googleplay.py", line 339, in executeRequestApi2
raise RequestError(message.commands.displayErrorMessage)
gpapi.googleplay.RequestError: 'Error retrieving information from server. DF-DFERH-01'

@LosevMikhail
Copy link

@fahadakbar24 have u found any workarounds to fix list()? thx

@fahadakbar24
Copy link

Enabling 2 Factor Authentication and using app specific password is working

@fahadakbar24 have u found any workarounds to fix list()? thx

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

Successfully merging this pull request may close these issues.

6 participants