google-play-scraper: Cannot read property '4' of null in gplay.app

  • Operating System:Windows 10
  • Node version: v10.15.0
  • google-play-scraper version: last version

Description:

I get that error for somme app ids like : -air.com.peppapig.paintbox “the exemple” -com.netmarble.mherosgb -com.wb.goog.injustice

Example code:

// Put code to reproduce the issue here
gplay
    .app({
        appId: "air.com.peppapig.paintbox"
    })
    .then(console.log, console.log);

### Error message:
Cannot read property '4' of null 

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 2
  • Comments: 15 (1 by maintainers)

Most upvoted comments

@facundoolano / @icarcal We’ve been seeing this error coming up in our logs recently.

https://github.com/facundoolano/google-play-scraper/pull/409 was merged 2 days ago which seems to have changed the mappings for comments from ds:18 to ds:17.

The ds:18 field seemed to be part of the original fix for this issue in https://github.com/facundoolano/google-play-scraper/pull/389

Has this regressed or is the store returning multiple different shapes for different app listings?

Any help here would be appreciated.

@gabidabet and @s-h-a-d-o-w thanks for reporting. Yes, gplay changed the structure for comments.

I’ll send a PR to fix this, ASAP