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

Error using app function #681

Closed
mlatif01 opened this issue Jul 15, 2024 · 1 comment
Closed

Error using app function #681

mlatif01 opened this issue Jul 15, 2024 · 1 comment

Comments

@mlatif01
Copy link

mlatif01 commented Jul 15, 2024

  • 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.

@jonathansampson
Copy link
Contributor

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

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

3 participants