google-play-scraper icon indicating copy to clipboard operation
google-play-scraper copied to clipboard

Error using app function

Open mlatif01 opened this issue 1 year ago • 1 comments

  • Operating System: Mac OS Sonoma 14.5
  • Node version: 16.20.1
  • google-play-scraper version: 9.0.0

Description:

Error when using .app function

Example code:

return gplay.app({ appId: appId }).then(function(info) {
            return info;
        })
        .catch(function(err) {
            return null;
        });

Error message:

"Error requesting Google Play:The \"listener\" argument must be of type function. Received an instance of Object"

I was previously getting this error on version 6.0.3. I upgraded to 9.0.0 as it still allows for using require however I am now getting the error above. I would be grateful if anyone has any ideas on how to fix this.

mlatif01 avatar Jul 15 '24 14:07 mlatif01

I'm not able to reproduce this issue.

I confirmed that version 16.20.1 of Node was being used, and executed the following script:

const results = gplay.app({ appId: 'com.brave.browser' })
  .then(function (info) { return info; })
  .catch(function () { return null; });

console.log(await results);

image

jonathansampson avatar Aug 08 '24 19:08 jonathansampson