Code Monkey home page Code Monkey logo

Comments (32)

snirad avatar snirad commented on June 12, 2024 3

I made a pull request that could fix the issue:
#69

you can use the fork untill the fix get pushed to the main repo if you'd like..
https://github.com/snirad/node-google-play

from node-google-play.

testableapple avatar testableapple commented on June 12, 2024 1

@dweinstein thank you,
I updated google-play-cli to 4.5.0 and gpapi to 4.4.0 and all working awesome

from node-google-play.

sharifStrudent avatar sharifStrudent commented on June 12, 2024 1

I fixed it by using completeDownloadInfo instead of deliveryData.
Thank You @dweinstein .

from node-google-play.

sharifStrudent avatar sharifStrudent commented on June 12, 2024

Hi
Now request download url doesn't work at all.

Retruned response:
{"downloadSize":null,"signature":null,"downloadUrl":null,"additionalFile":[],"downloadAuthCookie":[],"forwardLocked":null,"refundTimeout":null,"serverInitiated":null,"postInstallRefundWindowMillis":null,"immediateStartNeeded":null,"patchData":null,"encryptionParams":null,"gzippedDownloadUrl":null,"gzippedDownloadSize":null,"splitDeliveryData":[],"installLocation":null}

please help.

from node-google-play.

honktang avatar honktang commented on June 12, 2024

same problem

from node-google-play.

Kaggggggga avatar Kaggggggga commented on June 12, 2024

Hi
It seems now the "purchase" api response with a "encodedDeliveryToken" which will be used in "delivery" api to get download url.
However, the "delivery" api requires a "st" parameter, any idea how to get it?

Thanks.

from node-google-play.

archon810 avatar archon810 commented on June 12, 2024

Same problem.

from node-google-play.

jacobhub avatar jacobhub commented on June 12, 2024

same for me too

from node-google-play.

stas-smedia avatar stas-smedia commented on June 12, 2024

same here

from node-google-play.

stas-smedia avatar stas-smedia commented on June 12, 2024

@snirad
i'm getting the following error
AssertionError: expected appDeliveryData

from node-google-play.

snirad avatar snirad commented on June 12, 2024

I tested about 10 different apk's and it seem to be working.

could it be that the apk you are trying to get is not available on play store ?

from node-google-play.

sharifStrudent avatar sharifStrudent commented on June 12, 2024

@snirad
First of all thank you.
After change api to your code, sometimes downloadUrl request show error: expected appDeliveryData but sometimes work correctly!

from node-google-play.

sharifStrudent avatar sharifStrudent commented on June 12, 2024

Complete Error:

{ AssertionError: expected appDeliveryData
    at C:\Program Files\nodejs\node_modules\gpapi\lib\api.js:419:9
    at tryCatcher (C:\Program Files\nodejs\node_modules\bluebird\js\release\util
.js:16:23)
    at Promise._settlePromiseFromHandler (C:\Program Files\nodejs\node_modules\b
luebird\js\release\promise.js:512:31)
    at Promise._settlePromise (C:\Program Files\nodejs\node_modules\bluebird\js\
release\promise.js:569:18)
    at Promise._settlePromise0 (C:\Program Files\nodejs\node_modules\bluebird\js
\release\promise.js:614:10)
    at Promise._settlePromises (C:\Program Files\nodejs\node_modules\bluebird\js
\release\promise.js:693:18)
    at Promise._fulfill (C:\Program Files\nodejs\node_modules\bluebird\js\releas
e\promise.js:638:18)
    at Promise._resolveCallback (C:\Program Files\nodejs\node_modules\bluebird\j
s\release\promise.js:432:57)
    at Promise._settlePromiseFromHandler (C:\Program Files\nodejs\node_modules\b
luebird\js\release\promise.js:524:17)
    at Promise._settlePromise (C:\Program Files\nodejs\node_modules\bluebird\js\
release\promise.js:569:18)
    at Promise._settlePromise0 (C:\Program Files\nodejs\node_modules\bluebird\js
\release\promise.js:614:10)
    at Promise._settlePromises (C:\Program Files\nodejs\node_modules\bluebird\js
\release\promise.js:693:18)
    at Promise._fulfill (C:\Program Files\nodejs\node_modules\bluebird\js\releas
e\promise.js:638:18)
    at Promise._resolveCallback (C:\Program Files\nodejs\node_modules\bluebird\j
s\release\promise.js:432:57)
    at Promise._settlePromiseFromHandler (C:\Program Files\nodejs\node_modules\b
luebird\js\release\promise.js:524:17)
    at Promise._settlePromise (C:\Program Files\nodejs\node_modules\bluebird\js\
release\promise.js:569:18)
  name: 'AssertionError',
  actual: null,
  expected: true,
  operator: '==',
  message: 'expected appDeliveryData',
  generatedMessage: false } 

from node-google-play.

stas-smedia avatar stas-smedia commented on June 12, 2024

@snirad
hi :)
i've tried package: com.facebook.katana and the version code 70506845

from node-google-play.

imKota avatar imKota commented on June 12, 2024

@snirad
i tested your version, and get errors.

on app id: com.symudolcreadigol.prosiectx - errors

➜  gp-get-sha1 com.symudolcreadigol.prosiectx
AssertionError [ERR_ASSERTION]: expected appDeliveryData
➜  gp-download-info com.symudolcreadigol.prosiectx
AssertionError [ERR_ASSERTION]: expected appDeliveryData
➜  gp-download-meta com.symudolcreadigol.prosiectx
AssertionError [ERR_ASSERTION]: expected appDeliveryData

on app id: com.facebook.katana - working

➜  gp-download-meta com.facebook.katana

{
  "appCategory": [],
  "certificateHash": [],
  "certificateSet": [
    "8a3c4b262d721acd49a4bf97d5213199c86fa2b9"
  ],
  "email": "[email protected]",
  "minDownloadCount": 1000000000,
  "name": "Facebook",
  "packageName": "com.facebook.katana",
  "price": [
    "Free"
  ],
  "vendor": "Facebook",
  "website": "https://www.facebook.com/facebook",
  "sha1": "66c690c1e77d778d6291f7041412eaf563a0219e",
  "versionCode": 70897377,
  "size": 90384755
}
➜  gp-download-info com.facebook.katana
{"downloadSize":{"low":90384755,"high":0,"unsigned":false},"signature":"xxxxxxxxxxx","downloadUrl":"https://android.clients.google.com/market/download/Download?packageName=com.facebook.katana&versionCode=70897377&ssl=1&token=xxxxxxxxxxx-xxxxxxxxxxx-xxxxxxxxxxx-xxxxxxxxxxx-xxxxxxxxxxx&did=0&cpn=A4PXntthyAq_IBix","additionalFile":[],"downloadAuthCookie":[{"name":"a","value":"42"}],"forwardLocked":false,"refundTimeout":null,"serverInitiated":true,"postInstallRefundWindowMillis":null,"immediateStartNeeded":null,"patchData":null,"encryptionParams":null,"gzippedDownloadUrl":"https://android.clients.google.com/market/download/Download?packageName=com.facebook.katana&versionCode=70897377&ssl=1&token=xxxxxxxxxxx-xxxxxxxxxxx-xxxxxxxxxxx-xxxxxxxxxxx-xxxxxxxxxxx-xxxxxxxxxxx-xxxxxxxxxxx&cf=2&did=0&cpn=8muKr1OfimaQbwsj","gzippedDownloadSize":{"low":75982020,"high":0,"unsigned":false},"splitDeliveryData":[],"installLocation":2}
➜  gp-get-sha1 com.facebook.katana
66c690c1e77d778d6291f7041412eaf563a0219e

from node-google-play.

snirad avatar snirad commented on June 12, 2024

@imKota Looks like a problem with the apk in google store,
https://play.google.com/store/apps/details?id=com.symudolcreadigol.prosiectx
Dont think the device we are using to simulate the request for this apk is supported by this app.

from node-google-play.

imKota avatar imKota commented on June 12, 2024

@snirad Thanks for the quick response!
Tomorrow I'll try to register an account via VPN, and try to download the application. The results will be reported:)

from node-google-play.

serbanica avatar serbanica commented on June 12, 2024

same issue here, @snirad 's PR fixes it

from node-google-play.

jacobhub avatar jacobhub commented on June 12, 2024

I am also getting the 'expected appDeliveryData' error, on some packages:

Download error:
{ AssertionError: expected appDeliveryData
at /home/ubuntu/gpapi-server/node_modules/gpapi/lib/api.js:419:9
at tryCatcher (/home/ubuntu/gpapi-server/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/ubuntu/gpapi-server/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/home/ubuntu/gpapi-server/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/home/ubuntu/gpapi-server/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/home/ubuntu/gpapi-server/node_modules/bluebird/js/release/promise.js:693:18)
at Promise._fulfill (/home/ubuntu/gpapi-server/node_modules/bluebird/js/release/promise.js:638:18)
at Promise._resolveCallback (/home/ubuntu/gpapi-server/node_modules/bluebird/js/release/promise.js:432:57)
at Promise._settlePromiseFromHandler (/home/ubuntu/gpapi-server/node_modules/bluebird/js/release/promise.js:524:17)
at Promise._settlePromise (/home/ubuntu/gpapi-server/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/home/ubuntu/gpapi-server/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/home/ubuntu/gpapi-server/node_modules/bluebird/js/release/promise.js:693:18)
at Promise._fulfill (/home/ubuntu/gpapi-server/node_modules/bluebird/js/release/promise.js:638:18)
at Promise._resolveCallback (/home/ubuntu/gpapi-server/node_modules/bluebird/js/release/promise.js:432:57)
at Promise._settlePromiseFromHandler (/home/ubuntu/gpapi-server/node_modules/bluebird/js/release/promise.js:524:17)
at Promise._settlePromise (/home/ubuntu/gpapi-server/node_modules/bluebird/js/release/promise.js:569:18)
name: 'AssertionError',

from node-google-play.

snirad avatar snirad commented on June 12, 2024

@jacobhub I've seen it happen mostly when application is not supported either by geo or device.

from node-google-play.

snirad avatar snirad commented on June 12, 2024

Hi,

I changed the flow for getDownloadInfo, looks like if your account trying to download a new apk
getting downloadInfo from delivery url will fail. however, if you try to get purchase url, and then delivery, it should succeed.

try and see if it works for you.

from node-google-play.

jacobhub avatar jacobhub commented on June 12, 2024

now getting this error ( package 'com.facebook.lite' ):

Download error:
{ Error
at handleErr (/home/ubuntu/gpapiserv/node_modules/gpapi/lib/api.js:248:39)
at /home/ubuntu/gpapiserv/node_modules/gpapi/lib/api.js:253:28
at tryCatcher (/home/ubuntu/gpapiserv/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/ubuntu/gpapiserv/node_modules/bluebird/js/release/promise.js:509:35)
at Promise._settlePromise (/home/ubuntu/gpapiserv/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/home/ubuntu/gpapiserv/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/home/ubuntu/gpapiserv/node_modules/bluebird/js/release/promise.js:693:18)
at Promise._fulfill (/home/ubuntu/gpapiserv/node_modules/bluebird/js/release/promise.js:638:18)
at PromiseArray._resolve (/home/ubuntu/gpapiserv/node_modules/bluebird/js/release/promise_array.js:126:19)
at PromiseArray._promiseFulfilled (/home/ubuntu/gpapiserv/node_modules/bluebird/js/release/promise_array.js:144:14)
at PromiseArray._iterate (/home/ubuntu/gpapiserv/node_modules/bluebird/js/release/promise_array.js:114:31)
at PromiseArray.init [as _init] (/home/ubuntu/gpapiserv/node_modules/bluebird/js/release/promise_array.js:78:10)
at Promise._settlePromise (/home/ubuntu/gpapiserv/node_modules/bluebird/js/release/promise.js:566:21)
at Promise._settlePromise0 (/home/ubuntu/gpapiserv/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/home/ubuntu/gpapiserv/node_modules/bluebird/js/release/promise.js:693:18)
at Promise._fulfill (/home/ubuntu/gpapiserv/node_modules/bluebird/js/release/promise.js:638:18)
message: 'Google Play purchases are not supported in your country. Unfortunately you will not be able to complete purchases.',
name: 'RequestError',
statusCode: 403,

from node-google-play.

snirad avatar snirad commented on June 12, 2024

@jacobhub doing this using the previous patch worked for you ?
-it worked for me using a new account. so i think its expected behavior, seeing the message you got

message: 'Google Play purchases are not supported in your country. Unfortunately you will not be able to complete purchases.',

from node-google-play.

NathanManning avatar NathanManning commented on June 12, 2024

@dweinstein, where are we at with the pull? Is there something blocking it?

from node-google-play.

dweinstein avatar dweinstein commented on June 12, 2024

I don't think the PR maintains API compatibility and I haven't had the time to sort thru it yet.

from node-google-play.

stas-smedia avatar stas-smedia commented on June 12, 2024

@snirad, any idea why i'm getting AssertionError [ERR_ASSERTION]: expected appDeliveryData for com.facebook.katana ? if i'm running the details function it works as expected just download is broken

from node-google-play.

stas-smedia avatar stas-smedia commented on June 12, 2024

is there any progress on this issue?

from node-google-play.

testableapple avatar testableapple commented on June 12, 2024

+1

from node-google-play.

dweinstein avatar dweinstein commented on June 12, 2024

try v4.3.2

from node-google-play.

sharifStrudent avatar sharifStrudent commented on June 12, 2024

Thank you @dweinstein but doesn't work!

from node-google-play.

dweinstein avatar dweinstein commented on June 12, 2024

Double check that your login information is for a recent device such as nexus on 6.0.1 and that you are getting the android ID as described in the README

from node-google-play.

sharifStrudent avatar sharifStrudent commented on June 12, 2024

I update gpapi to 4.4.0 and use GSFID of Android 6.1 but when use api.deliveryData(pkg, vc). get the error

expected appDeliveryData

from node-google-play.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.