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

"Malformed request" #21

Open
tygh-cpu opened this issue Aug 30, 2019 · 5 comments
Open

"Malformed request" #21

tygh-cpu opened this issue Aug 30, 2019 · 5 comments

Comments

@tygh-cpu
Copy link

Malformed request error

@SeBsZ
Copy link

SeBsZ commented Aug 30, 2019

Same issue here, anyone know how to fix? Some more details from the dispenser log here:

2019-08-30 02:54:58:860 -0700 INFO com.github.yeriomin.tokendispenser.Server - xxx@gmail.com found 2019-08-30 02:54:58:872 -0700 INFO com.github.yeriomin.tokendispenser.Server - Requesting: https://android.clients.google.com/auth 2019-08-30 02:54:59:103 -0700 WARN com.github.yeriomin.tokendispenser.Server - com.github.yeriomin.playstoreapi.GooglePlayException: Malformed request

@archon810
Copy link

Solution here? matlink/gplaycli#217

@delthas
Copy link

delthas commented Sep 3, 2019

Adapted from my comment at matlink/gplaycli#217 (comment) :

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

The token dispenser uses the play-store-api library to make the request to the Google servers. The "good" 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.

If you're in a hurry, you can clone my fixed play-store-api version, mvn install it so that it replaces the play store api library in your Maven repository, then force recompile your token dispenser with mvn clean package.

Edit: You also need to update the play-store-api dependency in the pom.xml to 0.44.2 (the latest version).

@SeBsZ
Copy link

SeBsZ commented Oct 3, 2019

@delthas, thanks for those instructions. I'm giving this a try. You mention running mvn install on your fixed play-store-api version, but that doesn't work since there is no pom.xml in play-store-api. What I did was I ran mvn install:install-file -Dfile=play-store-api-0.44.2.jar -DgroupId=com.github.yeriomin -DartifactId=play-store-api -Dversion=0.44.2 -Dpackaging=jar on the jar file, after building it using gradlew as per the instructions in the repo. Is that correct, or was there a better way?

It's difficult to verify that mvn install or mvn clean package on token-dispenser actually uses the modified play-store-api and not the one from Yeriomin or Matlink (I'm using Matlink's token-dispenser fork that you worked on as well).

@bugoverfl0w
Copy link

Any update for this issue huhu :(

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