facundoolano / google-play-scraper

Node.js scraper to get data from Google Play
MIT License
2.3k stars 626 forks source link

google play scrape error TypeError: Cannot read property 'replace' of undefined #499

Closed gitRedgieGravador closed 2 years ago

gitRedgieGravador commented 2 years ago

Example code:

gplay.app({ appId: 'com.anasamhs.gardenmatch' }).then((res) => {
        console.log(res)
    })

Error message:

google play scrape error TypeError: Cannot read property 'replace' of undefined
    at Object.descriptionText [as fun] (/home/jonathan/axonite/axonite-scala-bridge/node_modules/google-play-scraper/lib/app.js:182:50)
    at R.map (/home/jonathan/axonite/axonite-scala-bridge/node_modules/google-play-scraper/lib/app.js:176:17)
    at XWrap.f (/home/jonathan/axonite/axonite-scala-bridge/node_modules/ramda/dist/ramda.js:5955:28)
    at XWrap.@@transducer/step (/home/jonathan/axonite/axonite-scala-bridge/node_modules/ramda/dist/ramda.js:392:25)
    at _arrayReduce (/home/jonathan/axonite/axonite-scala-bridge/node_modules/ramda/dist/ramda.js:5137:46)
    at _reduce (/home/jonathan/axonite/axonite-scala-bridge/node_modules/ramda/dist/ramda.js:5167:24)
    at map (/home/jonathan/axonite/axonite-scala-bridge/node_modules/ramda/dist/ramda.js:5954:20)
    at /home/jonathan/axonite/axonite-scala-bridge/node_modules/ramda/dist/ramda.js:586:23
    at Object.f2 [as map] (/home/jonathan/axonite/axonite-scala-bridge/node_modules/ramda/dist/ramda.js:473:22)
    at extractFields (/home/jonathan/axonite/axonite-scala-bridge/node_modules/google-play-scraper/lib/app.js:170:12)
icarcal commented 2 years ago

Hey @gitRedgieGravador I believe this PR #498 fixes this issue and it's already merged. Needs only publish on npm

gitRedgieGravador commented 2 years ago

@icarcal thanks.. few minutes ago I was able to see the update you've done thanks a lot I will be waiting for the npm to be published.

1004885516 commented 2 years ago

When will NPM be released

lau1944 commented 2 years ago

+1