google-play-scraper: Crash on mapping app details

  • Operating System: Windows/Linux
  • Node version: 16.0.8
  • google-play-scraper version: 8.0.4

Description:

Library crashes on mapping app details

Example code:

const gplay = require('google-play-scraper');
//...
const app = await gplay.app({
    appId: id,
    country: store
});

Error message:

TypeError: Cannot read property 'replace' of undefined at Object.descriptionText [as fun] (/workspace/node_modules/google-play-scraper/lib/mappers/details.js:125:51)
at /workspace/node_modules/google-play-scraper/lib/utils/scriptData.js:52:19
at XWrap.f (/workspace/node_modules/ramda/dist/ramda.js:5955:28)
at XWrap.@@transducer/step (/workspace/node_modules/ramda/dist/ramda.js:392:25)
at _arrayReduce (/workspace/node_modules/ramda/dist/ramda.js:5137:46)
at _reduce (/workspace/node_modules/ramda/dist/ramda.js:5167:24)
at map (/workspace/node_modules/ramda/dist/ramda.js:5954:20)
at /workspace/node_modules/ramda/dist/ramda.js:586:23
at Object.f2 [as map] (/workspace/node_modules/ramda/dist/ramda.js:473:22)
at extractFields (/workspace/node_modules/google-play-scraper/lib/utils/scriptData.js:40:14)

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 22 (7 by maintainers)

Most upvoted comments

@adrien1251

“google-play-scraper”: “github:facundoolano/google-play-scraper”

works for me

please update npm package, I have tried to put "google-play-scraper": "github:facundoolano/google-play-scraper" instead of "google-play-scraper": "^8.0.4" but getting same error 😕

I won’t be around a computer for a couple of weeks so no new npm version until then, you can just use the github commit in your package.json in the meantime

I just published a new version of the package. Closing this issue, let me now if the problem persists.

I believe the #498 PR also fixes this issue