yeriomin / play-store-api

Google Play Store protobuf API wrapper in java
GNU General Public License v3.0
324 stars 131 forks source link

bulkDetails response is empty #18

Closed anod closed 6 years ago

anod commented 6 years ago

Hi

BulkDetailsResponse is success, but empty.

packageNames size = 324

I/DebugHttpClientAdapter: Requesting https://android.clients.google.com/fdfe/bulkDetails I/DebugHttpClientAdapter: HTTP result code 200

result = {BulkDetailsResponse@5331} entry_ = {ProtobufArrayList@5334} size = 0 memoizedSerializedSize = -1 unknownFields = {UnknownFieldSetLite@5335} memoizedHashCode = 0 shadow$klass = {Class@5332} "" shadow$monitor = -2050010224

Other APIs like search and details are working.

Did you notice this one? Do you think there is may be a throttle?

yeriomin commented 6 years ago

Did you notice this one?

Yep.

Do you think there is may be a throttle?

No, just an API change.

anod commented 6 years ago

Request format was changed, this worked for me:


    message BulkDetailsRequestDocProperties
    {
    }

    message BulkDetailsRequestDoc
    {
        required string docid = 1;
        required int32 versionCode = 2;
        required int32 num2 = 3;
        required BulkDetailsRequestDocProperties properties = 7;
    }

    message BulkDetailsRequest
    {
        repeated BulkDetailsRequestDoc docs = 8;
    }

In addition I had to update "x-dfe-encoded-targets" header as well

yeriomin commented 6 years ago

Thanks for sharing. Updating "x-dfe-encoded-targets" was enough for me.