Open cstayyab opened 4 years ago
For me anyways, this issue only affects free apps. Downloads of paid apps continue to work.
The culprit appears to be here:
The commit history says:
This function is needed by the purchase API to insert app into user's
library. Without this, new apps won't be downloaded
This no longer appears to be the case. After removing this line, I ran four tests, all of which acted as expected:
gpapi.googleplay.RequestError: 'App not purchased'
Inside the log()
function, a request is made to the LOG_URL
. Currently the response always has (for me anyways) an HTTP 400 status code, along with html content containing:
400. That's an error.
The server cannot process the request because it is malformed. It should not be retried. That's all we know.
An attempt is made to treat the html content as a protobuf, which generates that exception.
@cstayyab If you remove the line mentioned above, does it work for you?
I think it would be safe to just remove the log()
function entirely... but I don't know if it might break things for others.
Ha..! Nice find @gurnec, that does fix it for me too.
@cstayyab If you remove the line mentioned above, does it work for you?
Yes, it works. Thanks. Can someone generate a PR for this?
Gentle ping @NoMore201 - would be great to have this fixed without needing manual edits / installing forks. Cheers 🙂
When given command to download APK (e.g. com.facebook.katana)
Following error from generated protobuf python file is shown: